|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatesAndCountries
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 Collection
s 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
.
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 |
---|
java.util.Collection getStates()
Collection
of State
objects
representing the active states in the system.
Collection
of State
objects
representing the active states in the system.void setStates(java.util.Collection states)
java.util.Collection getCountries()
Collection
of Country
objects
representing the active states in the system.
Collection
of Country
objects
representing the active states in the system.void setCountries(java.util.Collection countries)
java.util.Map getStateMap()
Map
, each of whose keys is a state code, and
whose values is the corresponding State
object.
Map
, each of whose keys is a state code, and
whose values is the corresponding State
object.void setStateMap(java.util.Map states)
java.util.Map getCountryMap()
Map
, each of whose keys is a country code, and
whose values is the corresponding Country
object.
Map
, each of whose keys is a country code, and
whose values is the corresponding Country
object.void setCountryMap(java.util.Map countries)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |