com.gisgraphy.domain.repository
Class CityDao

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by com.gisgraphy.domain.repository.GenericDao<T,Long>
              extended by com.gisgraphy.domain.repository.GenericGisDao<City>
                  extended by com.gisgraphy.domain.repository.CityDao
All Implemented Interfaces:
ICityDao, IDao<City,Long>, IGisDao<City>, org.springframework.beans.factory.InitializingBean

@Repository
public class CityDao
extends GenericGisDao<City>
implements ICityDao

A data access object for City

Author:
David Masclet

Field Summary
 
Fields inherited from class com.gisgraphy.domain.repository.GenericGisDao
GEOMETRY_TYPE, MAX_FULLTEXT_RESULTS
 
Fields inherited from class com.gisgraphy.domain.repository.GenericDao
persistentClass
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
CityDao()
          Default constructor
 
Method Summary
 List<City> listByZipCode(String zipcode, String countrycode)
           
 
Methods inherited from class com.gisgraphy.domain.repository.GenericGisDao
createGISTIndexForLocationColumn, deleteAll, deleteAll, getByFeatureId, getDirties, getEager, getNearestAndDistanceFrom, getNearestAndDistanceFrom, getNearestAndDistanceFrom, getNearestAndDistanceFromGisFeature, getNearestAndDistanceFromGisFeature, listByFeatureIds, listByName, listFromText, listFromText, remove, save, setEventManager
 
Methods inherited from class com.gisgraphy.domain.repository.GenericDao
count, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, setFlushMode
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.gisgraphy.domain.repository.IGisDao
createGISTIndexForLocationColumn, getByFeatureId, getDirties, getEager, getNearestAndDistanceFrom, getNearestAndDistanceFrom, getNearestAndDistanceFromGisFeature, getNearestAndDistanceFromGisFeature, listByFeatureIds, listByName, listFromText
 
Methods inherited from interface com.gisgraphy.domain.repository.IDao
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushMode
 

Constructor Detail

CityDao

public CityDao()
Default constructor

Method Detail

listByZipCode

public List<City> listByZipCode(String zipcode,
                                String countrycode)
Specified by:
listByZipCode in interface ICityDao
Parameters:
zipcode - the zipcode to found
countrycode - the countrycode to limit the search, if null: search in all country
Returns:
A list a city for the specified parameters, if countrycode is specified, the list should have one city. To search for name or zip code use : GenericGisDao.listFromText(String, boolean).


Copyright © 2012. All Rights Reserved.