Class StateBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.order.StateBean
- All Implemented Interfaces:
BusinessObject,State,Serializable
Object representing a state within the system.
StateBean is
the default implementation of the State interface for the
application.
The database stores states in the sscState table, and this
interface can be used to represent a single row of that table. The Hibernate
configuration file StateBean.hbm.xml maps that table's columns
to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCode()intbooleangetName()intintvoidvoidsetCountry(Country country) voidsetCountryID(int countryID) voidsetIsActive(boolean isActive) voidvoidsetStateID(int stateID) voidsetStateOrder(int stateOrder) 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:
-
stateID
private int stateID -
countryID
private int countryID -
code
-
name
-
stateOrder
private int stateOrder -
isActive
private boolean isActive -
country
-
-
Constructor Details
-
StateBean
public StateBean()
-
-
Method Details
-
getCode
-
setCode
-
getCountryID
public int getCountryID()- Specified by:
getCountryIDin interfaceState
-
setCountryID
public void setCountryID(int countryID) - Specified by:
setCountryIDin interfaceState
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActivein interfaceState
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActivein interfaceState
-
getName
-
setName
-
getStateOrder
public int getStateOrder()- Specified by:
getStateOrderin interfaceState
-
setStateOrder
public void setStateOrder(int stateOrder) - Specified by:
setStateOrderin interfaceState
-
getStateID
public int getStateID()- Specified by:
getStateIDin interfaceState
-
setStateID
public void setStateID(int stateID) - Specified by:
setStateIDin interfaceState
-
getCountry
- Specified by:
getCountryin interfaceState
-
setCountry
- Specified by:
setCountryin interfaceState
-