@Repository public class ZipCodeDao extends GenericDao<ZipCode,Long> implements IZipCodeDao
ZipCode
ObjectModifier 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, setFlushMode
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
count, deleteAll, deleteAll, exists, flushAndClear, get, getAll, getAllPaginate, getPersistenceClass, remove, save, setFlushMode
public List<ZipCode> getByCodeAndCountry(String code, String countryCode)
getByCodeAndCountry
in interface IZipCodeDao
code
- the zipcode to searchcountryCode
- The ISO 3166 Alpha 2 code in upper casepublic List<ZipCode> getByCodeAndCountrySmart(String code, String countryCode)
IZipCodeDao
IZipCodeDao.getByCodeAndCountry(String, String)
but do a starts with method if country is GB or CAgetByCodeAndCountrySmart
in interface IZipCodeDao
code
- the zipcode to searchcountryCode
- The ISO 3166 Alpha 2 code in upper casepublic List<ZipCode> listByCode(String code)
listByCode
in interface IZipCodeDao
code
- The zipcode to searchCopyright © 2015. All rights reserved.