biz.janux.geography
Interface StateProvinceDao

All Superinterfaces:
DataAccessObject

Deprecated. use StateProvinceDaoGeneric

public interface StateProvinceDao
extends DataAccessObject

Since:
2006-02-17
Version:
$Revision: 1.3 $ - $Date: 2006-07-17 05:18:23 $
Author:
Philippe Paravicini

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

load

StateProvince load(Integer id)
                   throws EntityNotFoundException
Deprecated. 
load a StateProvince object from persistence using its id

Throws:
EntityNotFoundException

findByCode

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

Parameters:
countryCode - a two-letter ISO country code
stateCode - a country-specific state abbreviation code

findByName

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

Parameters:
countryCode - a two-letter ISO country code
stateName - the name of a state in the default system language

findByCountry

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

Parameters:
countryCode - a two-letter ISO country code


Copyright © 2005-2013 Janux. All Rights Reserved.