Interface DiscountDao

    • Method Detail

      • findDiscountsByCode

        java.util.List<DiscountModel> findDiscountsByCode​(java.lang.String code)
        Finds the DiscountModel with the specified code.
        Parameters:
        code - the discount code
        Returns:
        the found DiscountModels with the specified code
      • findDiscountsByMatchedCode

        java.util.Collection<DiscountModel> findDiscountsByMatchedCode​(java.lang.String matchedCode)
        Finds all DiscountModels which match the specified code.
        Parameters:
        matchedCode - an SQL-Like statement as String, such as %discountCode%
        Returns:
        the Collection of all DiscountModels which match the specified code
      • findDiscountsByCurrencyIsoCode

        java.util.Collection<DiscountModel> findDiscountsByCurrencyIsoCode​(java.lang.String currencyIsoCode)
        Finds all DiscountModels which match the specified currency.
        Parameters:
        currencyIsoCode - isoCode of the matching currency
        Returns:
        the Collection of all DiscountModels with the specified currency.
        Throws:
        java.lang.IllegalArgumentException - if currency is null