com.softslate.commerce.businessobjects.order
Class StateBean

java.lang.Object
  extended by com.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended by com.softslate.commerce.businessobjects.order.StateBean
All Implemented Interfaces:
BusinessObject, State, java.io.Serializable

public class StateBean
extends BaseBusinessObject
implements State, java.io.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:
Serialized Form

Field Summary
private  java.lang.String code
           
private  Country country
           
private  int countryID
           
private  boolean isActive
           
private  java.lang.String name
           
private static long serialVersionUID
           
private  int stateID
           
private  int stateOrder
           
 
Constructor Summary
StateBean()
           
 
Method Summary
 java.lang.String getCode()
           
 Country getCountry()
           
 int getCountryID()
           
 boolean getIsActive()
           
 java.lang.String getName()
           
 int getStateID()
           
 int getStateOrder()
           
 void setCode(java.lang.String code)
           
 void setCountry(Country country)
           
 void setCountryID(int countryID)
           
 void setIsActive(boolean isActive)
           
 void setName(java.lang.String name)
           
 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 Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

stateID

private int stateID

countryID

private int countryID

code

private java.lang.String code

name

private java.lang.String name

stateOrder

private int stateOrder

isActive

private boolean isActive

country

private Country country
Constructor Detail

StateBean

public StateBean()
Method Detail

getCode

public java.lang.String getCode()
Specified by:
getCode in interface State

setCode

public void setCode(java.lang.String code)
Specified by:
setCode in interface State

getCountryID

public int getCountryID()
Specified by:
getCountryID in interface State

setCountryID

public void setCountryID(int countryID)
Specified by:
setCountryID in interface State

getIsActive

public boolean getIsActive()
Specified by:
getIsActive in interface State

setIsActive

public void setIsActive(boolean isActive)
Specified by:
setIsActive in interface State

getName

public java.lang.String getName()
Specified by:
getName in interface State

setName

public void setName(java.lang.String name)
Specified by:
setName in interface State

getStateOrder

public int getStateOrder()
Specified by:
getStateOrder in interface State

setStateOrder

public void setStateOrder(int stateOrder)
Specified by:
setStateOrder in interface State

getStateID

public int getStateID()
Specified by:
getStateID in interface State

setStateID

public void setStateID(int stateID)
Specified by:
setStateID in interface State

getCountry

public Country getCountry()
Specified by:
getCountry in interface State

setCountry

public void setCountry(Country country)
Specified by:
setCountry in interface State


Copyright ? SoftSlate, LLC 2003?2005