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
Modifier and TypeFieldDescriptionprivate Collection
private Map
(package private) static org.apache.commons.logging.Log
private static final long
private Map
private Collection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves aCollection
ofCountry
objects representing the active states in the system.Retrieves aMap
, each of whose keys is a country code, and whose values is the correspondingCountry
object.Retrieves aMap
, each of whose keys is a state code, and whose values is the correspondingState
object.Retrieves aCollection
ofState
objects representing the active states in the system.void
setCountries
(Collection countries) void
setCountryMap
(Map countryMap) void
setStateMap
(Map stateMap) void
setStates
(Collection states) Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:StatesAndCountries
Retrieves aCollection
ofCountry
objects representing the active states in the system.- Specified by:
getCountries
in interfaceStatesAndCountries
- Returns:
- A
Collection
ofCountry
objects representing the active states in the system.
-
setCountries
- Specified by:
setCountries
in interfaceStatesAndCountries
-
getStates
Description copied from interface:StatesAndCountries
Retrieves aCollection
ofState
objects representing the active states in the system.- Specified by:
getStates
in interfaceStatesAndCountries
- Returns:
- A
Collection
ofState
objects representing the active states in the system.
-
setStates
- Specified by:
setStates
in interfaceStatesAndCountries
-
getCountryMap
Description copied from interface:StatesAndCountries
Retrieves aMap
, each of whose keys is a country code, and whose values is the correspondingCountry
object.- Specified by:
getCountryMap
in interfaceStatesAndCountries
- Returns:
- A
Map
, each of whose keys is a country code, and whose values is the correspondingCountry
object.
-
setCountryMap
- Specified by:
setCountryMap
in interfaceStatesAndCountries
-
getStateMap
Description copied from interface:StatesAndCountries
Retrieves aMap
, each of whose keys is a state code, and whose values is the correspondingState
object.- Specified by:
getStateMap
in interfaceStatesAndCountries
- Returns:
- A
Map
, each of whose keys is a state code, and whose values is the correspondingState
object.
-
setStateMap
- Specified by:
setStateMap
in interfaceStatesAndCountries
-