Class CountryBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.order.CountryBean
- All Implemented Interfaces:
BusinessObject,Country,Serializable
Object representing a country within the system.
CountryBean
is the default implementation of the Country interface for the
application.
The database stores countries in the sscCountry table, and
this interface can be used to represent a single row of that table. The
Hibernate configuration file CountryBean.hbm.xml maps that
table's columns to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate Stringprivate intprivate intprivate booleanprivate Stringprivate static final longprivate Collection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()intintbooleangetName()voidsetAllowOtherStates(boolean allowOtherStates) voidvoidsetCountryID(int countryID) voidsetCountryOrder(int countryOrder) voidsetIsActive(boolean isActive) voidvoidsetStates(Collection states) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
countryID
private int countryID -
code
-
name
-
countryOrder
private int countryOrder -
allowOtherStates
private boolean allowOtherStates -
isActive
private boolean isActive -
states
-
-
Constructor Details
-
CountryBean
public CountryBean()
-
-
Method Details
-
getAllowOtherStates
public boolean getAllowOtherStates()- Specified by:
getAllowOtherStatesin interfaceCountry
-
setAllowOtherStates
public void setAllowOtherStates(boolean allowOtherStates) - Specified by:
setAllowOtherStatesin interfaceCountry
-
getCode
-
setCode
-
getCountryOrder
public int getCountryOrder()- Specified by:
getCountryOrderin interfaceCountry
-
setCountryOrder
public void setCountryOrder(int countryOrder) - Specified by:
setCountryOrderin interfaceCountry
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActivein interfaceCountry
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActivein interfaceCountry
-
getName
-
setName
-
getCountryID
public int getCountryID()- Specified by:
getCountryIDin interfaceCountry
-
setCountryID
public void setCountryID(int countryID) - Specified by:
setCountryIDin interfaceCountry
-
getStates
-
setStates
-