@Transactional @Service(value="zipcodesService") public class ZipcodesBusinessService extends de.alpharogroup.db.service.jpa.AbstractBusinessService<de.alpharogroup.address.book.entities.Zipcodes,Integer,de.alpharogroup.address.book.daos.ZipcodesDao> implements ZipcodesService
ZipcodesBusinessService.| Constructor and Description |
|---|
ZipcodesBusinessService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllZipcodes()
Delete all zipcodes.
|
boolean |
existsZipcode(String zipcode)
Checks if the given zipcode string exists.
|
List<de.alpharogroup.address.book.entities.Zipcodes> |
find(de.alpharogroup.address.book.entities.Countries country)
Finds all
Zipcodes from the given Countries object. |
List<de.alpharogroup.address.book.entities.Zipcodes> |
findAll(de.alpharogroup.address.book.entities.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.
|
de.alpharogroup.address.book.entities.Zipcodes |
findCityFromZipcode(de.alpharogroup.address.book.entities.Countries country,
String zipcode)
Find the city from the given Countries object and zipcode.
|
List<de.alpharogroup.address.book.entities.Zipcodes> |
findZipcodes(String zipcode)
Find
Zipcodes objects from the given zipcode string. |
de.alpharogroup.address.book.entities.Zipcodes |
getZipcode(String zipcode,
String city)
Gets the
Zipcodes object from the given zipcode string and city. |
void |
setZipcodesDao(de.alpharogroup.address.book.daos.ZipcodesDao zipcodesDao)
Sets the specific
ZipcodesDao. |
delete, delete, delete, evict, exists, findAll, get, getDao, getQuery, load, merge, merge, refresh, save, save, saveOrUpdate, saveOrUpdate, setDaopublic void deleteAllZipcodes()
deleteAllZipcodes in interface ZipcodesServicepublic boolean existsZipcode(String zipcode)
existsZipcode in interface ZipcodesServicezipcode - the zipcodepublic List<de.alpharogroup.address.book.entities.Zipcodes> find(de.alpharogroup.address.book.entities.Countries country)
Zipcodes from the given Countries object..find in interface ZipcodesServicecountry - the countryZipcodespublic List<de.alpharogroup.address.book.entities.Zipcodes> findAll(de.alpharogroup.address.book.entities.Countries country, String zipcode, String city)
findAll in interface ZipcodesServicecountry - the countryzipcode - the zipcodecity - the cityZipcodespublic de.alpharogroup.address.book.entities.Zipcodes findCityFromZipcode(de.alpharogroup.address.book.entities.Countries country,
String zipcode)
findCityFromZipcode in interface ZipcodesServicecountry - the countryzipcode - the zipcodeZipcodespublic List<de.alpharogroup.address.book.entities.Zipcodes> findZipcodes(String zipcode)
Zipcodes objects from the given zipcode string..findZipcodes in interface ZipcodesServicezipcode - the zipcodeZipcodespublic de.alpharogroup.address.book.entities.Zipcodes getZipcode(String zipcode, String city)
Zipcodes object from the given zipcode string and city. If it does not exist
it will be create a new Zipcodes object..getZipcode in interface ZipcodesServicezipcode - the zipcodecity - the cityZipcodes@Autowired public void setZipcodesDao(de.alpharogroup.address.book.daos.ZipcodesDao zipcodesDao)
ZipcodesDao.zipcodesDao - the new ZipcodesDao.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.