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
Modifier and TypeFieldDescriptionprivate boolean
private String
private int
private int
private boolean
private String
private static final long
private Collection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getCode()
int
int
boolean
getName()
void
setAllowOtherStates
(boolean allowOtherStates) void
void
setCountryID
(int countryID) void
setCountryOrder
(int countryOrder) void
setIsActive
(boolean isActive) void
void
setStates
(Collection states) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getAllowOtherStates
in interfaceCountry
-
setAllowOtherStates
public void setAllowOtherStates(boolean allowOtherStates) - Specified by:
setAllowOtherStates
in interfaceCountry
-
getCode
-
setCode
-
getCountryOrder
public int getCountryOrder()- Specified by:
getCountryOrder
in interfaceCountry
-
setCountryOrder
public void setCountryOrder(int countryOrder) - Specified by:
setCountryOrder
in interfaceCountry
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceCountry
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceCountry
-
getName
-
setName
-
getCountryID
public int getCountryID()- Specified by:
getCountryID
in interfaceCountry
-
setCountryID
public void setCountryID(int countryID) - Specified by:
setCountryID
in interfaceCountry
-
getStates
-
setStates
-