Package de.hybris.platform.order.daos
Interface DiscountDao
- All Known Implementing Classes:
DefaultDiscountDao
public interface DiscountDao
-
Method Summary
Modifier and TypeMethodDescriptionfindDiscountsByCode(String code) Finds theDiscountModelwith the specified code.findDiscountsByCurrencyIsoCode(String currencyIsoCode) Finds allDiscountModels which match the specified currency.findDiscountsByMatchedCode(String matchedCode) Finds allDiscountModels which match the specified code.
-
Method Details
-
findDiscountsByCode
Finds theDiscountModelwith the specified code.- Parameters:
code- the discount code- Returns:
- the found
DiscountModels with the specified code
-
findDiscountsByMatchedCode
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
Finds allDiscountModels which match the specified currency.- Parameters:
currencyIsoCode- isoCode of the matching currency- Returns:
- the
Collectionof allDiscountModels with the specified currency. - Throws:
IllegalArgumentException- if currency is null
-