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()
int
boolean
getName()
int
int
void
void
setCountry
(Country country) void
setCountryID
(int countryID) void
setIsActive
(boolean isActive) void
void
setStateID
(int stateID) void
setStateOrder
(int stateOrder) 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:
-
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:
getCountryID
in interfaceState
-
setCountryID
public void setCountryID(int countryID) - Specified by:
setCountryID
in interfaceState
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceState
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceState
-
getName
-
setName
-
getStateOrder
public int getStateOrder()- Specified by:
getStateOrder
in interfaceState
-
setStateOrder
public void setStateOrder(int stateOrder) - Specified by:
setStateOrder
in interfaceState
-
getStateID
public int getStateID()- Specified by:
getStateID
in interfaceState
-
setStateID
public void setStateID(int stateID) - Specified by:
setStateID
in interfaceState
-
getCountry
- Specified by:
getCountry
in interfaceState
-
setCountry
- Specified by:
setCountry
in interfaceState
-