com.softslate.commerce.businessobjects.order
Interface StatesAndCountries
- All Superinterfaces:
- BusinessObject
- All Known Implementing Classes:
- StatesAndCountriesBean
- public interface StatesAndCountries
- extends BusinessObject
Interface containing collections 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 npcState
table, and
countries in the npcCountry
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 npcSetting
database table.
The default "statesAndCountriesImplementer" is
StatesAndCountriesBean
.
- Author:
- David Tobey
getStates
public java.util.Collection getStates()
setStates
public void setStates(java.util.Collection states)
getCountries
public java.util.Collection getCountries()
setCountries
public void setCountries(java.util.Collection countries)
Copyright © SoftSlate, Inc. 20032005