@Transactional @Service(value="zipcodesService") public class ZipcodesBusinessService extends hbm.service.jpa.AbstractBusinessService<Zipcodes,Integer,ZipcodesDao> implements ZipcodesService
| Constructor and Description |
|---|
ZipcodesBusinessService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllZipcodes()
Delete all zipcodes.
|
boolean |
existsZipcode(String zipcode)
Exists zipcode.
|
List<Zipcodes> |
find(Countries country)
Finds all Zipcodes from the given Countries object.
|
List<Zipcodes> |
findAll(Countries country,
String zipcode,
String city)
Gets a List from Zipcodes with the given parameters that can be
null if they shell be ignored in the query.
|
Zipcodes |
findCityFromZipcode(Countries country,
String zipcode)
Find the city from the given Countries object and zipcode.
|
List<Zipcodes> |
findZipcodes(String zipcode)
Find zipcodes.
|
Zipcodes |
getZipcode(String zipcode,
String city)
Gets the Zipcodes object from the given zipcode string and city.
|
void |
setZipcodesDao(ZipcodesDao zipcodesDao) |
delete, delete, delete, evict, exists, findAll, get, getDao, getQuery, load, merge, merge, refresh, save, save, saveOrUpdate, saveOrUpdate, setDao@Autowired public void setZipcodesDao(ZipcodesDao zipcodesDao)
public void deleteAllZipcodes()
deleteAllZipcodes in interface ZipcodesServicepublic boolean existsZipcode(String zipcode)
existsZipcode in interface ZipcodesServicezipcode - the zipcodepublic List<Zipcodes> findZipcodes(String zipcode)
findZipcodes in interface ZipcodesServicezipcode - the zipcodepublic Zipcodes getZipcode(String zipcode, String city)
getZipcode in interface ZipcodesServicezipcode - the zipcodecity - the citypublic List<Zipcodes> find(Countries country)
find in interface ZipcodesServicecountry - the countrypublic Zipcodes findCityFromZipcode(Countries country, String zipcode)
findCityFromZipcode in interface ZipcodesServicecountry - the countryzipcode - the zipcodepublic List<Zipcodes> findAll(Countries country, String zipcode, String city)
findAll in interface ZipcodesServicecountry - the countryzipcode - the zipcodecity - the cityCopyright © 2015. All rights reserved.