com.softslate.commerce.businessobjects.order
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:
OrderInitializer

Method Summary
 java.util.Collection getCountries()
          Retrieves a Collection of Country objects representing the active states in the system.
 java.util.Map getCountryMap()
          Retrieves a Map, each of whose keys is a country code, and whose values is the corresponding Country object.
 java.util.Map getStateMap()
          Retrieves a Map, each of whose keys is a state code, and whose values is the corresponding State object.
 java.util.Collection getStates()
          Retrieves a Collection of State objects representing the active states in the system.
 void setCountries(java.util.Collection countries)
           
 void setCountryMap(java.util.Map countries)
           
 void setStateMap(java.util.Map states)
           
 void setStates(java.util.Collection states)
           
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Method Detail

getStates

java.util.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(java.util.Collection states)

getCountries

java.util.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(java.util.Collection countries)

getStateMap

java.util.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(java.util.Map states)

getCountryMap

java.util.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(java.util.Map countries)


Copyright © SoftSlate, LLC 2003–2005