Class DefaultZoneDeliveryModeDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.order.daos.impl.DefaultZoneDeliveryModeDao
- All Implemented Interfaces:
ZoneDeliveryModeDao,Dao
Default implementation of the
ZoneDeliveryModeDao.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds allZoneModels.findCurrencies(ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode) Finds all currencies for which values are defined in the zone and in the delivery mode.findDeliveryValues(CurrencyModel currency, ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode) Finds all delivery cost values for the specific currency and in the zone and with the delivery mode.findZonesAndCountriesByZones(Set<ZoneModel> zones) Finds all countries of the zones.findZonesByCode(String code) Finds theZoneModels with the specified code.findZonesByZoneDeliveryMode(ZoneDeliveryModeModel zoneDeliveryMode) Finds all zones for which price values are defined in the delivery mode.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultZoneDeliveryModeDao
public DefaultZoneDeliveryModeDao()
-
-
Method Details
-
findZonesByCode
Description copied from interface:ZoneDeliveryModeDaoFinds theZoneModels with the specified code.- Specified by:
findZonesByCodein interfaceZoneDeliveryModeDao- Parameters:
code- the zone code- Returns:
- the found
ZoneModels with the specified code, or empty list if not found.
-
findAllZones
Description copied from interface:ZoneDeliveryModeDaoFinds allZoneModels.- Specified by:
findAllZonesin interfaceZoneDeliveryModeDao- Returns:
- a
Collectionof allZoneModels, or empty list if not found.
-
findZonesByZoneDeliveryMode
Description copied from interface:ZoneDeliveryModeDaoFinds all zones for which price values are defined in the delivery mode.- Specified by:
findZonesByZoneDeliveryModein interfaceZoneDeliveryModeDao- Parameters:
zoneDeliveryMode- the zone delivery mode- Returns:
- a
Collectionof allZoneModels for the delivery mode, or empty list if not found.
-
findZonesAndCountriesByZones
Description copied from interface:ZoneDeliveryModeDaoFinds all countries of the zones.- Specified by:
findZonesAndCountriesByZonesin interfaceZoneDeliveryModeDao- Parameters:
zones- the zones- Returns:
- a
Listcontains aListofItemModels, which consists of exactly oneZoneModeland oneCountryModel, or empty list if not found.
-
findCurrencies
public Collection<CurrencyModel> findCurrencies(ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode) Description copied from interface:ZoneDeliveryModeDaoFinds all currencies for which values are defined in the zone and in the delivery mode.- Specified by:
findCurrenciesin interfaceZoneDeliveryModeDao- Parameters:
zone- the zonezoneDeliveryMode- the zone delivery mode- Returns:
- all found
CurrencyModels, or empty list if not found.
-
findDeliveryValues
public Map<Double,Double> findDeliveryValues(CurrencyModel currency, ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode) Description copied from interface:ZoneDeliveryModeDaoFinds all delivery cost values for the specific currency and in the zone and with the delivery mode.- Specified by:
findDeliveryValuesin interfaceZoneDeliveryModeDao- Parameters:
currency- the currencyzone- the zonezoneDeliveryMode- the zone delivery mode- Returns:
- All delivery cost values consisting of minimum threshold value and cost value.
-