public class DefaultPointOfServiceDao extends AbstractItemDao implements PointOfServiceDao
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultPointOfServiceDao() |
| Modifier and Type | Method and Description |
|---|---|
protected FlexibleSearchQuery |
buildQuery(GPS center,
double radius) |
protected FlexibleSearchQuery |
buildQuery(GPS center,
double radius,
BaseStoreModel baseStore) |
java.util.Collection<PointOfServiceModel> |
getAllGeocodedPOS(GPS center,
double radius)
return all POS items from the given neighborhood
|
java.util.Collection<PointOfServiceModel> |
getAllGeocodedPOS(GPS center,
double radius,
BaseStoreModel baseStore)
return all POS items from the given neighborhood belonging to given store
|
java.util.Collection<PointOfServiceModel> |
getAllPos()
return all POS items
|
java.util.Map<CountryModel,java.lang.Integer> |
getPointOfServiceCountPerCountryForStore(BaseStoreModel baseStore)
Get the count of PointOfServiceModel per country
CountryModel given a BaseStoreModel |
java.util.Map<RegionModel,java.lang.Integer> |
getPointOfServiceRegionCountForACountryAndStore(CountryModel country,
BaseStoreModel baseStore)
Get the count of
PointOfServiceModel in each region for a given country CountryModel
and BaseStoreModel |
PointOfServiceModel |
getPosByName(java.lang.String name)
Returns a Point of Service with the name given
|
java.util.List<PointOfServiceModel> |
getPosForCountry(java.lang.String countryIsoCode,
BaseStoreModel baseStore)
Gets a list of
PointOfServiceModel in a given country |
java.util.List<PointOfServiceModel> |
getPosForRegion(java.lang.String countryIsoCode,
java.lang.String regionIsoCode,
BaseStoreModel baseStore)
Gets a list of
PointOfServiceModel in a given country and region |
java.util.Collection<PointOfServiceModel> |
getPosToGeocode()
Get collection of PointOfServiceModel that need to be geocoded.
|
java.util.Collection<PointOfServiceModel> |
getPosToGeocode(int size)
Get a size limited collection of PointOfServiceModel that need to be geocoded.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.Collection<PointOfServiceModel> getAllPos()
PointOfServiceDaogetAllPos in interface PointOfServiceDaoPointOfServiceModelpublic PointOfServiceModel getPosByName(java.lang.String name)
PointOfServiceDaogetPosByName in interface PointOfServiceDaoPointOfServiceModelpublic java.util.Collection<PointOfServiceModel> getPosToGeocode(int size)
PointOfServiceDaogetPosToGeocode in interface PointOfServiceDaosize - determines how many entries are takenPointOfServiceModelpublic java.util.Collection<PointOfServiceModel> getPosToGeocode()
PointOfServiceDaogetPosToGeocode in interface PointOfServiceDaoPointOfServiceModelpublic java.util.Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius)
PointOfServiceDaogetAllGeocodedPOS in interface PointOfServiceDaocenter - of neighborhoodradius - of neighborhood in kilometersPointOfServiceModelpublic java.util.Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore)
PointOfServiceDaogetAllGeocodedPOS in interface PointOfServiceDaocenter - of neighborhoodradius - of neighborhood in kilometersbaseStore - BaseStoreModelPointOfServiceModelpublic java.util.Map<CountryModel,java.lang.Integer> getPointOfServiceCountPerCountryForStore(BaseStoreModel baseStore)
PointOfServiceDaoCountryModel given a BaseStoreModelgetPointOfServiceCountPerCountryForStore in interface PointOfServiceDaobaseStore - given BaseStoreModelPointOfServiceModel countspublic java.util.Map<RegionModel,java.lang.Integer> getPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore)
PointOfServiceDaoPointOfServiceModel in each region for a given country CountryModel
and BaseStoreModelgetPointOfServiceRegionCountForACountryAndStore in interface PointOfServiceDaocountry - given CountryModelbaseStore - given BaseStoreModelPointOfServiceModel counts per region RegionModel
for the given country CountryModel and BaseStoreModelpublic java.util.List<PointOfServiceModel> getPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)
PointOfServiceDaoPointOfServiceModel in a given countrygetPosForCountry in interface PointOfServiceDaocountryIsoCode - CountryModel:ISOCODEbaseStore - the active BaseStoreModelPointOfServiceModelpublic java.util.List<PointOfServiceModel> getPosForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode, BaseStoreModel baseStore)
PointOfServiceDaoPointOfServiceModel in a given country and regiongetPosForRegion in interface PointOfServiceDaocountryIsoCode - CountryModel:ISOCODEregionIsoCode - RegionModel:ISOCODEbaseStore - the active BaseStoreModelPointOfServiceModelprotected FlexibleSearchQuery buildQuery(GPS center, double radius)
center - radius - PointOfServiceDaoExceptionprotected FlexibleSearchQuery buildQuery(GPS center, double radius, BaseStoreModel baseStore)
Copyright © 2018 SAP SE. All Rights Reserved.