|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StateProvinceDaoGeneric<T extends StateProvince>
Dao used to retrieve and save StateProvince Entities
| Method Summary | |
|---|---|
StateProvince |
findByCode(String countryCode,
String stateCode)
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)
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)
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 |
| Methods inherited from interface org.janux.bus.persistence.GenericDaoWrite |
|---|
attachClean, clear, delete, evict, flush, merge, refresh, save, saveOrUpdate, update |
| Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnly |
|---|
count, findByCriteria, load |
| Method Detail |
|---|
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 code
StateProvince 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 | |||||||||