Class DefaultDiscountDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.order.daos.impl.DefaultDiscountDao
- All Implemented Interfaces:
DiscountDao,Dao
Default implementation of the
DiscountDao.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
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.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultDiscountDao
public DefaultDiscountDao()
-
-
Method Details
-
findDiscountsByCode
Description copied from interface:DiscountDaoFinds theDiscountModelwith the specified code.- Specified by:
findDiscountsByCodein interfaceDiscountDao- Parameters:
code- the discount code- Returns:
- the found
DiscountModels with the specified code
-
findDiscountsByMatchedCode
Description copied from interface:DiscountDaoFinds allDiscountModels which match the specified code.- Specified by:
findDiscountsByMatchedCodein interfaceDiscountDao- Parameters:
matchedCode- an SQL-Like statement as String, such as %discountCode%- Returns:
- the
Collectionof allDiscountModels which match the specified code
-
findDiscountsByCurrencyIsoCode
Description copied from interface:DiscountDaoFinds allDiscountModels which match the specified currency.- Specified by:
findDiscountsByCurrencyIsoCodein interfaceDiscountDao- Parameters:
currencyIsoCode- isoCode of the matching currency- Returns:
- the
Collectionof allDiscountModels with the specified currency.
-