Package de.hybris.platform.order.daos
Interface ZoneDeliveryModeDao
-
- All Known Implementing Classes:
DefaultZoneDeliveryModeDao
public interface ZoneDeliveryModeDaoTheZoneDeliveryModeModelDAO.- Spring Bean ID:
- zoneDeliveryModeDao
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
findZonesByCode
java.util.List<ZoneModel> findZonesByCode(java.lang.String code)
Finds theZoneModels with the specified code.- Parameters:
code- the zone code- Returns:
- the found
ZoneModels with the specified code, or empty list if not found.
-
findAllZones
java.util.Collection<ZoneModel> findAllZones()
Finds allZoneModels.- Returns:
- a
Collectionof allZoneModels, or empty list if not found.
-
findZonesByZoneDeliveryMode
java.util.Collection<ZoneModel> findZonesByZoneDeliveryMode(ZoneDeliveryModeModel zoneDeliveryMode)
Finds all zones for which price values are defined in the delivery mode.- Parameters:
zoneDeliveryMode- the zone delivery mode- Returns:
- a
Collectionof allZoneModels for the delivery mode, or empty list if not found.
-
findZonesAndCountriesByZones
java.util.List<java.util.List<ItemModel>> findZonesAndCountriesByZones(java.util.Set<ZoneModel> zones)
Finds all countries of the zones.- Parameters:
zones- the zones- Returns:
- a
Listcontains aListofItemModels, which consists of exactly oneZoneModeland oneCountryModel, or empty list if not found.
-
findCurrencies
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.- Parameters:
zone- the zonezoneDeliveryMode- the zone delivery mode- Returns:
- all found
CurrencyModels, or empty list if not found.
-
findDeliveryValues
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.- Parameters:
currency- the currencyzone- the zonezoneDeliveryMode- the zone delivery mode- Returns:
- All delivery cost values consisting of minimum threshold value and cost value.
-
-