Class DefaultPointOfServiceDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.storelocator.impl.DefaultPointOfServiceDao
-
- All Implemented Interfaces:
Dao,PointOfServiceDao
- Direct Known Subclasses:
AcceleratorPointOfServiceDao
public class DefaultPointOfServiceDao extends AbstractItemDao implements PointOfServiceDao
DefaultPointOfServiceDao is the default implementation for PointOfServiceDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultPointOfServiceDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FlexibleSearchQuerybuildQuery(GPS center, double radius)protected FlexibleSearchQuerybuildQuery(GPS center, double radius, BaseStoreModel baseStore)java.util.Collection<PointOfServiceModel>getAllGeocodedPOS(GPS center, double radius)return all POS items from the given neighborhoodjava.util.Collection<PointOfServiceModel>getAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore)return all POS items from the given neighborhood belonging to given storejava.util.Collection<PointOfServiceModel>getAllPos()return all POS itemsjava.util.Map<CountryModel,java.lang.Integer>getPointOfServiceCountPerCountryForStore(BaseStoreModel baseStore)Get the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModeljava.util.Map<RegionModel,java.lang.Integer>getPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore)Get the count ofPointOfServiceModelin each region for a given countryCountryModelandBaseStoreModelPointOfServiceModelgetPosByName(java.lang.String name)Returns a Point of Service with the name givenjava.util.List<PointOfServiceModel>getPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)Gets a list ofPointOfServiceModelin a given countryjava.util.List<PointOfServiceModel>getPosForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode, BaseStoreModel baseStore)Gets a list ofPointOfServiceModelin a given country and regionjava.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.-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
getAllPos
public java.util.Collection<PointOfServiceModel> getAllPos()
Description copied from interface:PointOfServiceDaoreturn all POS items- Specified by:
getAllPosin interfacePointOfServiceDao- Returns:
PointOfServiceModel
-
getPosByName
public PointOfServiceModel getPosByName(java.lang.String name)
Description copied from interface:PointOfServiceDaoReturns a Point of Service with the name given- Specified by:
getPosByNamein interfacePointOfServiceDao- Returns:
PointOfServiceModel
-
getPosToGeocode
public java.util.Collection<PointOfServiceModel> getPosToGeocode(int size)
Description copied from interface:PointOfServiceDaoGet a size limited collection of PointOfServiceModel that need to be geocoded.- Specified by:
getPosToGeocodein interfacePointOfServiceDao- Parameters:
size- determines how many entries are taken- Returns:
- Collection of
PointOfServiceModel
-
getPosToGeocode
public java.util.Collection<PointOfServiceModel> getPosToGeocode()
Description copied from interface:PointOfServiceDaoGet collection of PointOfServiceModel that need to be geocoded.- Specified by:
getPosToGeocodein interfacePointOfServiceDao- Returns:
- Collection of
PointOfServiceModel
-
getAllGeocodedPOS
public java.util.Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius)
Description copied from interface:PointOfServiceDaoreturn all POS items from the given neighborhood- Specified by:
getAllGeocodedPOSin interfacePointOfServiceDao- Parameters:
center- of neighborhoodradius- of neighborhood in kilometers- Returns:
PointOfServiceModel
-
getAllGeocodedPOS
public java.util.Collection<PointOfServiceModel> getAllGeocodedPOS(GPS center, double radius, BaseStoreModel baseStore)
Description copied from interface:PointOfServiceDaoreturn all POS items from the given neighborhood belonging to given store- Specified by:
getAllGeocodedPOSin interfacePointOfServiceDao- Parameters:
center- of neighborhoodradius- of neighborhood in kilometersbaseStore-BaseStoreModel- Returns:
PointOfServiceModel
-
getPointOfServiceCountPerCountryForStore
public java.util.Map<CountryModel,java.lang.Integer> getPointOfServiceCountPerCountryForStore(BaseStoreModel baseStore)
Description copied from interface:PointOfServiceDaoGet the count of PointOfServiceModel per countryCountryModelgiven aBaseStoreModel- Specified by:
getPointOfServiceCountPerCountryForStorein interfacePointOfServiceDao- Parameters:
baseStore- givenBaseStoreModel- Returns:
- a map representing countries and store
PointOfServiceModelcounts
-
getPointOfServiceRegionCountForACountryAndStore
public java.util.Map<RegionModel,java.lang.Integer> getPointOfServiceRegionCountForACountryAndStore(CountryModel country, BaseStoreModel baseStore)
Description copied from interface:PointOfServiceDaoGet the count ofPointOfServiceModelin each region for a given countryCountryModelandBaseStoreModel- Specified by:
getPointOfServiceRegionCountForACountryAndStorein interfacePointOfServiceDao- Parameters:
country- givenCountryModelbaseStore- givenBaseStoreModel- Returns:
- a map representing store
PointOfServiceModelcounts per regionRegionModelfor the given countryCountryModelandBaseStoreModel
-
getPosForCountry
public java.util.List<PointOfServiceModel> getPosForCountry(java.lang.String countryIsoCode, BaseStoreModel baseStore)
Description copied from interface:PointOfServiceDaoGets a list ofPointOfServiceModelin a given country- Specified by:
getPosForCountryin interfacePointOfServiceDao- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
getPosForRegion
public java.util.List<PointOfServiceModel> getPosForRegion(java.lang.String countryIsoCode, java.lang.String regionIsoCode, BaseStoreModel baseStore)
Description copied from interface:PointOfServiceDaoGets a list ofPointOfServiceModelin a given country and region- Specified by:
getPosForRegionin interfacePointOfServiceDao- Parameters:
countryIsoCode- {@link CountryModel:ISOCODE}regionIsoCode- {@link RegionModel:ISOCODE}baseStore- the activeBaseStoreModel- Returns:
- list of
PointOfServiceModel
-
buildQuery
protected FlexibleSearchQuery buildQuery(GPS center, double radius)
- Parameters:
center-radius-- Returns:
- FlexibleSearchQuery
- Throws:
PointOfServiceDaoException
-
buildQuery
protected FlexibleSearchQuery buildQuery(GPS center, double radius, BaseStoreModel baseStore)
-
-