Interface ZoneDeliveryModeDao

All Known Implementing Classes:
DefaultZoneDeliveryModeDao

public interface ZoneDeliveryModeDao
Spring Bean ID:
zoneDeliveryModeDao
  • Method Details

    • findZonesByCode

      List<ZoneModel> findZonesByCode(String code)
      Finds the ZoneModels 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 all ZoneModels.
      Returns:
      a Collection of all ZoneModels, or empty list if not found.
    • findZonesByZoneDeliveryMode

      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 Collection of all ZoneModels for the delivery mode, or empty list if not found.
    • findZonesAndCountriesByZones

      List<List<ItemModel>> findZonesAndCountriesByZones(Set<ZoneModel> zones)
      Finds all countries of the zones.
      Parameters:
      zones - the zones
      Returns:
      a List contains a List of ItemModels, which consists of exactly one ZoneModel and one CountryModel, or empty list if not found.
    • findCurrencies

      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 zone
      zoneDeliveryMode - 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 currency
      zone - the zone
      zoneDeliveryMode - the zone delivery mode
      Returns:
      All delivery cost values consisting of minimum threshold value and cost value.