biz.janux.geography
Interface CityDaoGeneric<T extends City>

All Superinterfaces:
GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>, GenericDaoWrite<T,Integer>

public interface CityDaoGeneric<T extends City>
extends GenericDaoWrite<T,Integer>, GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>

Data Access Class used to access and manage City entities

Since:
0.4
Author:
Philippe Paravicini

Method Summary
 City findByName(StateProvince state, String cityName)
          retrieves a City within a country and state by performing a cap-insensitive search by name, or returns null if a City with that name is not found
 City findByName(String countryCode, String stateCode, String cityName)
          retrieves a City within a country and state by performing a cap-insensitive search by name, and using the ISO country code and a state code, or returns null if a City with that name is not found
 City newCity(StateProvince state, String cityName)
          instantiates a new City within the specified StateProvince, with the name provided
 
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

findByName

City findByName(StateProvince state,
                String cityName)
retrieves a City within a country and state by performing a cap-insensitive search by name, or returns null if a City with that name is not found

Parameters:
state - a StateProvince that has been persisted in the system
cityName - the name of a city in the default system language

findByName

City findByName(String countryCode,
                String stateCode,
                String cityName)
retrieves a City within a country and state by performing a cap-insensitive search by name, and using the ISO country code and a state code, or returns null if a City with that name is not found

Parameters:
countryCode - a two-letter ISO country code
stateCode - a country-specific state abbreviation code
cityName - the name of a city in the default system language

newCity

City newCity(StateProvince state,
             String cityName)
instantiates a new City within the specified StateProvince, with the name provided

Parameters:
state - a name that has been persisted in the system
cityName - the name for the new system, in the default system language


Copyright © 2005-2013 Janux. All Rights Reserved.