@Transactional @Service(value="addressesService") public class AddressesBusinessService extends de.alpharogroup.db.service.jpa.AbstractBusinessService<de.alpharogroup.address.book.entities.Addresses,Integer,de.alpharogroup.address.book.daos.AddressesDao> implements AddressesService
AddressesBusinessService.| Constructor and Description |
|---|
AddressesBusinessService() |
| Modifier and Type | Method and Description |
|---|---|
de.alpharogroup.address.book.entities.Addresses |
contains(String latitude,
String longitude)
Checks if the given latitude and longitude is contained in the database.
|
de.alpharogroup.address.book.entities.Addresses |
contains(de.alpharogroup.address.book.entities.Zipcodes zipcode)
Checks if the given
Zipcodes is contained in the database and return the first
occurence. |
de.alpharogroup.address.book.entities.Addresses |
createAddress(String street,
String streetnumber,
String addressComment,
String zipcode,
String city,
String federalstate)
Creates the address.
|
de.alpharogroup.address.book.entities.Addresses |
createAddress(String street,
String streetnumber,
String addressComment,
String zipcode,
String city,
String federalstate,
String geohash,
BigDecimal latitude,
BigDecimal longitude)
Creates the address.
|
List<de.alpharogroup.address.book.entities.Addresses> |
find(de.alpharogroup.address.book.entities.Countries country,
String zipcode)
Finds a list of
Addresses from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
find(de.alpharogroup.address.book.entities.Countries country,
String zipcode,
String city)
Finds a list of
Addresses from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
find(String geohash)
Finds a list of
Addresses from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
find(String latitude,
String longitude)
Finds a list of
Addresses from the given latitude and longitude. |
List<de.alpharogroup.address.book.entities.Addresses> |
find(String geohash,
String latitude,
String longitude)
Finds a list of
Addresses from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
find(de.alpharogroup.address.book.entities.Zipcodes zipcode)
Finds a list of
Addresses from the given Zipcodes object. |
List<de.alpharogroup.address.book.entities.Addresses> |
findAddressesWithSameCityname(de.alpharogroup.address.book.entities.Countries country,
String city)
Finds a list of
Addresses that have the same cityname. |
List<de.alpharogroup.address.book.entities.Addresses> |
findAddressesWithSameZipcode(de.alpharogroup.address.book.entities.Countries country,
String zipcode)
Finds a list of
Addresses that have the same zipcode. |
List<de.alpharogroup.address.book.entities.Addresses> |
findAll(de.alpharogroup.address.book.entities.Countries country)
Find all addresses with the given country.
|
List<de.alpharogroup.address.book.entities.Zipcodes> |
findAllAddressesWithCountry(de.alpharogroup.address.book.entities.Countries country)
Find all
Zipcodes with the given country. |
de.alpharogroup.address.book.entities.Addresses |
findFirst(de.alpharogroup.address.book.entities.Countries country,
String zipcode)
Finds the first
Addresses from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
findFirstAndSecondRingNeighbourhood(String geohash)
Finds a list of
Addresses from the first and second ring neighbourhood areas of the
given geohash. |
List<de.alpharogroup.address.book.entities.Addresses> |
findFirstRingNeighbourhood(String geohash)
Finds a list of
Addresses from the first ring neighbourhood areas of the given
geohash. |
List<de.alpharogroup.address.book.entities.Addresses> |
findGeohashIsNull()
Find all addresses that have a geohash value that is null.
|
List<de.alpharogroup.address.book.entities.Addresses> |
findInvalidAddresses(de.alpharogroup.address.book.entities.Countries country,
String geohash)
Find invalid
Addresses objects from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
findInvalidAddresses(de.alpharogroup.address.book.entities.Countries country,
String geohash,
boolean not)
Find invalid
Addresses objects from the given arguments. |
List<de.alpharogroup.address.book.entities.Addresses> |
findNeighbourhood(String geohash)
Finds a list of
Addresses from the neighbourhood areas of the given geohash. |
void |
setAddressesDao(de.alpharogroup.address.book.daos.AddressesDao addressesDao)
Sets the specific
AddressesDao. |
delete, delete, delete, evict, exists, findAll, get, getDao, getQuery, load, merge, merge, refresh, save, save, saveOrUpdate, saveOrUpdate, setDaopublic de.alpharogroup.address.book.entities.Addresses contains(String latitude, String longitude)
contains in interface AddressesServicelatitude - the latitudelongitude - the longitudepublic de.alpharogroup.address.book.entities.Addresses contains(de.alpharogroup.address.book.entities.Zipcodes zipcode)
Zipcodes is contained in the database and return the first
occurence.contains in interface AddressesServicezipcode - the zipcodeAddressespublic de.alpharogroup.address.book.entities.Addresses createAddress(String street, String streetnumber, String addressComment, String zipcode, String city, String federalstate)
createAddress in interface AddressesServicestreet - the streetstreetnumber - the streetnumberaddressComment - the address commentzipcode - the zipcodecity - the cityfederalstate - the federalstatepublic de.alpharogroup.address.book.entities.Addresses createAddress(String street, String streetnumber, String addressComment, String zipcode, String city, String federalstate, String geohash, BigDecimal latitude, BigDecimal longitude)
createAddress in interface AddressesServicestreet - the streetstreetnumber - the streetnumberaddressComment - the address commentzipcode - the zipcodecity - the cityfederalstate - the federalstategeohash - the geohashlatitude - the latitudelongitude - the longitudepublic List<de.alpharogroup.address.book.entities.Addresses> find(de.alpharogroup.address.book.entities.Countries country, String zipcode)
Addresses from the given arguments.find in interface AddressesServicecountry - the countryzipcode - the zipcodeAddressespublic List<de.alpharogroup.address.book.entities.Addresses> find(de.alpharogroup.address.book.entities.Countries country, String zipcode, String city)
Addresses from the given arguments.find in interface AddressesServicecountry - the countryzipcode - the zipcodecity - the cityAddressespublic List<de.alpharogroup.address.book.entities.Addresses> find(String geohash)
Addresses from the given arguments.find in interface AddressesServicegeohash - the geohashAddressespublic List<de.alpharogroup.address.book.entities.Addresses> find(String latitude, String longitude)
Addresses from the given latitude and longitude.find in interface AddressesServicelatitude - the latitudelongitude - the longitudeAddressespublic List<de.alpharogroup.address.book.entities.Addresses> find(String geohash, String latitude, String longitude)
Addresses from the given arguments.find in interface AddressesServicegeohash - the geohashlatitude - the latitudelongitude - the longitudeAddressespublic List<de.alpharogroup.address.book.entities.Addresses> find(de.alpharogroup.address.book.entities.Zipcodes zipcode)
Addresses from the given Zipcodes object.find in interface AddressesServicezipcode - the zipcodeAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findAddressesWithSameCityname(de.alpharogroup.address.book.entities.Countries country, String city)
Addresses that have the same cityname.findAddressesWithSameCityname in interface AddressesServicecountry - the countrycity - the cityAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findAddressesWithSameZipcode(de.alpharogroup.address.book.entities.Countries country, String zipcode)
Addresses that have the same zipcode.findAddressesWithSameZipcode in interface AddressesServicecountry - the countryzipcode - the zipcodeAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findAll(de.alpharogroup.address.book.entities.Countries country)
findAll in interface AddressesServicecountry - the countrypublic List<de.alpharogroup.address.book.entities.Zipcodes> findAllAddressesWithCountry(de.alpharogroup.address.book.entities.Countries country)
Zipcodes with the given country.findAllAddressesWithCountry in interface AddressesServicecountry - the countyZipcodespublic de.alpharogroup.address.book.entities.Addresses findFirst(de.alpharogroup.address.book.entities.Countries country,
String zipcode)
Addresses from the given arguments.findFirst in interface AddressesServicecountry - the countryzipcode - the zipcodeAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findFirstAndSecondRingNeighbourhood(String geohash)
Addresses from the first and second ring neighbourhood areas of the
given geohash.findFirstAndSecondRingNeighbourhood in interface AddressesServicegeohash - the geohashAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findFirstRingNeighbourhood(String geohash)
Addresses from the first ring neighbourhood areas of the given
geohash.findFirstRingNeighbourhood in interface AddressesServicegeohash - the geohashAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findGeohashIsNull()
findGeohashIsNull in interface AddressesServiceAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findInvalidAddresses(de.alpharogroup.address.book.entities.Countries country, String geohash)
Addresses objects from the given arguments.findInvalidAddresses in interface AddressesServicecountry - the countrygeohash - the geohashpublic List<de.alpharogroup.address.book.entities.Addresses> findInvalidAddresses(de.alpharogroup.address.book.entities.Countries country, String geohash, boolean not)
Addresses objects from the given arguments.findInvalidAddresses in interface AddressesServicecountry - the countrygeohash - the geohashnot - the flag that indicates a negation from the geohash valueAddressespublic List<de.alpharogroup.address.book.entities.Addresses> findNeighbourhood(String geohash)
Addresses from the neighbourhood areas of the given geohash.findNeighbourhood in interface AddressesServicegeohash - the geohashAddresses@Autowired public void setAddressesDao(de.alpharogroup.address.book.daos.AddressesDao addressesDao)
AddressesDao.addressesDao - the new AddressesDao.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.