Class DefaultZoneDeliveryModeDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.order.daos.impl.DefaultZoneDeliveryModeDao
-
- All Implemented Interfaces:
ZoneDeliveryModeDao,Dao
public class DefaultZoneDeliveryModeDao extends AbstractItemDao implements ZoneDeliveryModeDao
Default implementation of theZoneDeliveryModeDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultZoneDeliveryModeDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<ZoneModel>findAllZones()Finds allZoneModels.java.util.Collection<CurrencyModel>findCurrencies(ZoneModel zone, ZoneDeliveryModeModel zoneDeliveryMode)Finds all currencies for which values are defined in the zone and in the delivery mode.java.util.Map<java.lang.Double,java.lang.Double>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.java.util.List<java.util.List<ItemModel>>findZonesAndCountriesByZones(java.util.Set<ZoneModel> zones)Finds all countries of the zones.java.util.List<ZoneModel>findZonesByCode(java.lang.String code)Finds theZoneModels with the specified code.java.util.Collection<ZoneModel>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
-
-
-
-
Method Detail
-
findZonesByCode
public java.util.List<ZoneModel> findZonesByCode(java.lang.String code)
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
public java.util.Collection<ZoneModel> findAllZones()
Description copied from interface:ZoneDeliveryModeDaoFinds allZoneModels.- Specified by:
findAllZonesin interfaceZoneDeliveryModeDao- Returns:
- a
Collectionof allZoneModels, or empty list if not found.
-
findZonesByZoneDeliveryMode
public java.util.Collection<ZoneModel> findZonesByZoneDeliveryMode(ZoneDeliveryModeModel zoneDeliveryMode)
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
public java.util.List<java.util.List<ItemModel>> findZonesAndCountriesByZones(java.util.Set<ZoneModel> zones)
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 java.util.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 java.util.Map<java.lang.Double,java.lang.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.
-
-