|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
StateProvinceDaoGeneric
public interface StateProvinceDao
Method Summary | |
---|---|
StateProvince |
findByCode(String countryCode,
String stateCode)
Deprecated. retrieves a State using a country code and state code, where the country code is a standard ISO code, or returns null if a State with
that state and country code is not found |
Map<String,StateProvince> |
findByCountry(String countryCode)
Deprecated. retrieves a Map of StateProvince objects that exist within a specific Country in the system, and indexed by the code assigned to the StateProvince within that Country; ordering of the Map returned is left to the implementing class |
StateProvince |
findByName(String countryCode,
String stateName)
Deprecated. retrieves a State by performing a cap-insensitive search by name, within a country with the specified ISO country code, or returns null if a
State with that name is not found
TODO: this may have to be internationalized |
StateProvince |
load(Integer id)
Deprecated. load a StateProvince object from persistence using its id |
Methods inherited from interface org.janux.bus.persistence.DataAccessObject |
---|
delete, merge, refresh, save, saveOrUpdate, update |
Method Detail |
---|
StateProvince load(Integer id) throws EntityNotFoundException
EntityNotFoundException
StateProvince findByCode(String countryCode, String stateCode)
null
if a State with
that state and country code is not found
countryCode
- a two-letter ISO country codestateCode
- a country-specific state abbreviation codeStateProvince findByName(String countryCode, String stateName)
null
if a
State with that name is not found
TODO: this may have to be internationalized
countryCode
- a two-letter ISO country codestateName
- the name of a state in the default system languageMap<String,StateProvince> findByCountry(String countryCode)
countryCode
- a two-letter ISO country code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |