@Repository public class ZipCodeDao extends GenericDao<ZipCode,Long> implements IZipCodeDao
ZipCode Object| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger
The logger
|
persistentClass| Constructor and Description |
|---|
ZipCodeDao()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
List<ZipCode> |
getByCodeAndCountry(String code,
String countryCode) |
List<ZipCode> |
getByCodeAndCountrySmart(String code,
String countryCode)
same as
IZipCodeDao.getByCodeAndCountry(String, String) but do a starts with method if country is GB or CA |
List<ZipCode> |
listByCode(String code) |
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushModecheckDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushModepublic List<ZipCode> getByCodeAndCountry(String code, String countryCode)
getByCodeAndCountry in interface IZipCodeDaocode - the zipcode to searchcountryCode - The ISO 3166 Alpha 2 code in upper casepublic List<ZipCode> getByCodeAndCountrySmart(String code, String countryCode)
IZipCodeDaoIZipCodeDao.getByCodeAndCountry(String, String) but do a starts with method if country is GB or CAgetByCodeAndCountrySmart in interface IZipCodeDaocode - the zipcode to searchcountryCode - The ISO 3166 Alpha 2 code in upper casepublic List<ZipCode> listByCode(String code)
listByCode in interface IZipCodeDaocode - The zipcode to searchCopyright © 2015. All rights reserved.