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 Summary
FieldsModifier and TypeFieldDescriptionprivate Collectionprivate Map(package private) static org.apache.commons.logging.Logprivate static final longprivate Mapprivate Collection -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves aCollectionofCountryobjects representing the active states in the system.Retrieves aMap, each of whose keys is a country code, and whose values is the correspondingCountryobject.Retrieves aMap, each of whose keys is a state code, and whose values is the correspondingStateobject.Retrieves aCollectionofStateobjects representing the active states in the system.voidsetCountries(Collection countries) voidsetCountryMap(Map countryMap) voidsetStateMap(Map stateMap) voidsetStates(Collection states) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
countries
-
states
-
countryMap
-
stateMap
-
-
Constructor Details
-
StatesAndCountriesBean
public StatesAndCountriesBean()
-
-
Method Details
-
getCountries
Description copied from interface:StatesAndCountriesRetrieves aCollectionofCountryobjects representing the active states in the system.- Specified by:
getCountriesin interfaceStatesAndCountries- Returns:
- A
CollectionofCountryobjects representing the active states in the system.
-
setCountries
- Specified by:
setCountriesin interfaceStatesAndCountries
-
getStates
Description copied from interface:StatesAndCountriesRetrieves aCollectionofStateobjects representing the active states in the system.- Specified by:
getStatesin interfaceStatesAndCountries- Returns:
- A
CollectionofStateobjects representing the active states in the system.
-
setStates
- Specified by:
setStatesin interfaceStatesAndCountries
-
getCountryMap
Description copied from interface:StatesAndCountriesRetrieves aMap, each of whose keys is a country code, and whose values is the correspondingCountryobject.- Specified by:
getCountryMapin interfaceStatesAndCountries- Returns:
- A
Map, each of whose keys is a country code, and whose values is the correspondingCountryobject.
-
setCountryMap
- Specified by:
setCountryMapin interfaceStatesAndCountries
-
getStateMap
Description copied from interface:StatesAndCountriesRetrieves aMap, each of whose keys is a state code, and whose values is the correspondingStateobject.- Specified by:
getStateMapin interfaceStatesAndCountries- Returns:
- A
Map, each of whose keys is a state code, and whose values is the correspondingStateobject.
-
setStateMap
- Specified by:
setStateMapin interfaceStatesAndCountries
-