biz.janux.geography
Interface CityDao

All Superinterfaces:
DataAccessObject

Deprecated. use CityDaoGeneric

public interface CityDao
extends DataAccessObject

Data Access Class used to access and manage City entities

Since:
2006-02-17
Author:
Philippe Paravicini

Method Summary
 City findByName(StateProvince state, String cityName)
          Deprecated. 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)
          Deprecated. 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 load(Integer id)
          Deprecated. loads a City object from persistence using its id
 City newCity(StateProvince state, String cityName)
          Deprecated. instantiates a new City within the specified StateProvince, with the name provided
 
Methods inherited from interface org.janux.bus.persistence.DataAccessObject
delete, merge, refresh, save, saveOrUpdate, update
 

Method Detail

load

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

Parameters:
id - the internal identifier of the City
Throws:
EntityNotFoundException - if a City object with that id is not found

findByName

City findByName(StateProvince state,
                String cityName)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
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.