Interface ZoneDeliveryModeDao

    • Method Detail

      • findZonesByCode

        java.util.List<ZoneModel> findZonesByCode​(java.lang.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

        java.util.Collection<ZoneModel> findAllZones()
        Finds all ZoneModels.
        Returns:
        a Collection of all ZoneModels, 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 Collection of all ZoneModels 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 List contains a List of ItemModels, which consists of exactly one ZoneModel and one CountryModel, 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 zone
        zoneDeliveryMode - 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 currency
        zone - the zone
        zoneDeliveryMode - the zone delivery mode
        Returns:
        All delivery cost values consisting of minimum threshold value and cost value.