@Transactional @Service(value="zipcodesDomainService") public class ZipcodesDomainService extends de.alpharogroup.service.domain.AbstractDomainService<Integer,Zipcode,de.alpharogroup.address.book.entities.Zipcodes,de.alpharogroup.address.book.daos.ZipcodesDao,ZipcodesMapper> implements ZipcodeService
ZipcodesDomainService.| Constructor and Description |
|---|
ZipcodesDomainService() |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteAllZipcodes()
Delete all zipcodes.
|
boolean |
existsZipcode(String zipcode)
Checks if the given zipcode string exists.
|
List<Zipcode> |
find(Country country)
|
List<Zipcode> |
findAll(Country country,
String zipcode,
String city)
Gets a List of
Zipcode with the given parameters that can be null if they shell be
ignored in the query. |
Zipcode |
findCityFromZipcode(Country country,
String zipcode)
|
List<Zipcode> |
findZipcodes(String zipcode)
Find
Zipcode objects from the given zipcode string. |
Zipcode |
getZipcode(String zipcode,
String city)
Gets the
Zipcode object from the given zipcode string and city. |
void |
setZipcodesDao(de.alpharogroup.address.book.daos.ZipcodesDao zipcodesDao)
Sets the specific
ZipcodesDao. |
void |
setZipcodesMapper(ZipcodesMapper mapper)
Sets the specific
ZipcodesMapper. |
create, delete, exists, findAll, getDao, getDomainObjectClass, getEntityClass, getMapper, persist, read, setDao, setMapper, updatepublic void deleteAllZipcodes()
deleteAllZipcodes in interface ZipcodeServicepublic boolean existsZipcode(String zipcode)
existsZipcode in interface ZipcodeServicezipcode - the zipcodepublic List<Zipcode> find(Country country)
find in interface ZipcodeServicecountry - the countryZipcodepublic List<Zipcode> findAll(Country country, String zipcode, String city)
Zipcode with the given parameters that can be null if they shell be
ignored in the query.findAll in interface ZipcodeServicecountry - the countryzipcode - the zipcodecity - the cityZipcodepublic Zipcode findCityFromZipcode(Country country, String zipcode)
findCityFromZipcode in interface ZipcodeServicecountry - the countryzipcode - the zipcodeZipcodepublic List<Zipcode> findZipcodes(String zipcode)
Zipcode objects from the given zipcode string.findZipcodes in interface ZipcodeServicezipcode - the zipcodeZipcodepublic Zipcode getZipcode(String zipcode, String city)
Zipcode object from the given zipcode string and city. If it does not exist
it will be create a new Zipcode object.getZipcode in interface ZipcodeServicezipcode - the zipcodecity - the cityZipcode@Autowired public void setZipcodesDao(de.alpharogroup.address.book.daos.ZipcodesDao zipcodesDao)
ZipcodesDao.zipcodesDao - the new ZipcodesDao.@Autowired public void setZipcodesMapper(ZipcodesMapper mapper)
ZipcodesMapper.mapper - the new ZipcodesMapper.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.