Class StatesAndCountriesBean

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

public class StatesAndCountriesBean extends BaseBusinessObject implements StatesAndCountries, Serializable
Object holding representations of the states and countries active in the store.

StatesAndCountriesBean is the default implementation of the StatesAndCountries interface for the application.

Author:
David Tobey
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • log

      static org.apache.commons.logging.Log log
    • countries

      private Collection countries
    • states

      private Collection states
    • countryMap

      private Map countryMap
    • stateMap

      private Map stateMap
  • Constructor Details

    • StatesAndCountriesBean

      public StatesAndCountriesBean()
  • Method Details

    • getCountries

      public Collection getCountries()
      Description copied from interface: StatesAndCountries
      Retrieves a Collection of Country objects representing the active states in the system.
      Specified by:
      getCountries in interface StatesAndCountries
      Returns:
      A Collection of Country objects representing the active states in the system.
    • setCountries

      public void setCountries(Collection countries)
      Specified by:
      setCountries in interface StatesAndCountries
    • getStates

      public Collection getStates()
      Description copied from interface: StatesAndCountries
      Retrieves a Collection of State objects representing the active states in the system.
      Specified by:
      getStates in interface StatesAndCountries
      Returns:
      A Collection of State objects representing the active states in the system.
    • setStates

      public void setStates(Collection states)
      Specified by:
      setStates in interface StatesAndCountries
    • getCountryMap

      public Map getCountryMap()
      Description copied from interface: StatesAndCountries
      Retrieves a Map, each of whose keys is a country code, and whose values is the corresponding Country object.
      Specified by:
      getCountryMap in interface StatesAndCountries
      Returns:
      A Map, each of whose keys is a country code, and whose values is the corresponding Country object.
    • setCountryMap

      public void setCountryMap(Map countryMap)
      Specified by:
      setCountryMap in interface StatesAndCountries
    • getStateMap

      public Map getStateMap()
      Description copied from interface: StatesAndCountries
      Retrieves a Map, each of whose keys is a state code, and whose values is the corresponding State object.
      Specified by:
      getStateMap in interface StatesAndCountries
      Returns:
      A Map, each of whose keys is a state code, and whose values is the corresponding State object.
    • setStateMap

      public void setStateMap(Map stateMap)
      Specified by:
      setStateMap in interface StatesAndCountries