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

Method Summary
 java.util.Collection getCountries()
           
 java.util.Collection getStates()
           
 void setCountries(java.util.Collection countries)
           
 void setStates(java.util.Collection states)
           
 
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
 

Method Detail

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. 2003–2005