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

public class StateBean extends BaseBusinessObject implements 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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • stateID

      private int stateID
    • countryID

      private int countryID
    • code

      private String code
    • name

      private String name
    • stateOrder

      private int stateOrder
    • isActive

      private boolean isActive
    • country

      private Country country
  • Constructor Details

    • StateBean

      public StateBean()
  • Method Details

    • getCode

      public String getCode()
      Specified by:
      getCode in interface State
    • setCode

      public void setCode(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 String getName()
      Specified by:
      getName in interface State
    • setName

      public void setName(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