Package de.hybris.platform.order.daos
Interface ZoneDeliveryModeDao
- All Known Implementing Classes:
DefaultZoneDeliveryModeDao
public interface ZoneDeliveryModeDao
The
ZoneDeliveryModeModel DAO.- Spring Bean ID:
- zoneDeliveryModeDao
-
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.
-
Method Details
-
findZonesByCode
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
Collection<ZoneModel> findAllZones()Finds allZoneModels.- Returns:
- a
Collectionof allZoneModels, or empty list if not found.
-
findZonesByZoneDeliveryMode
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
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
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
Map<Double,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.
-