Package de.hybris.platform.order.daos
Interface DiscountDao
-
- All Known Implementing Classes:
DefaultDiscountDao
public interface DiscountDao
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<DiscountModel>findDiscountsByCode(java.lang.String code)Finds theDiscountModelwith the specified code.java.util.Collection<DiscountModel>findDiscountsByCurrencyIsoCode(java.lang.String currencyIsoCode)Finds allDiscountModels which match the specified currency.java.util.Collection<DiscountModel>findDiscountsByMatchedCode(java.lang.String matchedCode)Finds allDiscountModels which match the specified code.
-
-
-
Method Detail
-
findDiscountsByCode
java.util.List<DiscountModel> findDiscountsByCode(java.lang.String code)
Finds theDiscountModelwith 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 allDiscountModels which match the specified code.- Parameters:
matchedCode- an SQL-Like statement as String, such as %discountCode%- Returns:
- the
Collectionof allDiscountModels which match the specified code
-
findDiscountsByCurrencyIsoCode
java.util.Collection<DiscountModel> findDiscountsByCurrencyIsoCode(java.lang.String currencyIsoCode)
Finds allDiscountModels which match the specified currency.- Parameters:
currencyIsoCode- isoCode of the matching currency- Returns:
- the
Collectionof allDiscountModels with the specified currency. - Throws:
java.lang.IllegalArgumentException- if currency is null
-
-