Interface StatesAndCountries

All Superinterfaces:
BusinessObject
All Known Implementing Classes:
StatesAndCountriesBean

public interface StatesAndCountries extends BusinessObject
Interface containing representations of the states and countries active in the store. The states and countries are listed for customers in the Struts layer as they enter in address information.

The database stores states in the sscState table, and countries in the sscCountry table. The Struts layer populates the two Collections when the application starts. The data is kept in the servlet's application scope and displayed to users filling in address information.

When the application needs to create an instance that implements StatesAndCountries, BusinessObjectFactory finds the name of the Java class to instantiate from the "statesAndCountriesImplementer" setting in the appComponents.properties file.

The default "statesAndCountriesImplementer" is StatesAndCountriesBean.

Author:
David Tobey
See Also:
  • Method Details

    • getStates

      Collection getStates()
      Retrieves a Collection of State objects representing the active states in the system.
      Returns:
      A Collection of State objects representing the active states in the system.
    • setStates

      void setStates(Collection states)
    • getCountries

      Collection getCountries()
      Retrieves a Collection of Country objects representing the active states in the system.
      Returns:
      A Collection of Country objects representing the active states in the system.
    • setCountries

      void setCountries(Collection countries)
    • getStateMap

      Map getStateMap()
      Retrieves a Map, each of whose keys is a state code, and whose values is the corresponding State object.
      Returns:
      A Map, each of whose keys is a state code, and whose values is the corresponding State object.
    • setStateMap

      void setStateMap(Map states)
    • getCountryMap

      Map getCountryMap()
      Retrieves a Map, each of whose keys is a country code, and whose values is the corresponding Country object.
      Returns:
      A Map, each of whose keys is a country code, and whose values is the corresponding Country object.
    • setCountryMap

      void setCountryMap(Map countries)