Class DefaultDiscountDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.order.daos.impl.DefaultDiscountDao
-
- All Implemented Interfaces:
DiscountDao
,Dao
public class DefaultDiscountDao extends AbstractItemDao implements DiscountDao
Default implementation of theDiscountDao
.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultDiscountDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<DiscountModel>
findDiscountsByCode(java.lang.String code)
Finds theDiscountModel
with the specified code.java.util.Collection<DiscountModel>
findDiscountsByCurrencyIsoCode(java.lang.String currencyIsoCode)
Finds allDiscountModel
s which match the specified currency.java.util.Collection<DiscountModel>
findDiscountsByMatchedCode(java.lang.String matchedCode)
Finds allDiscountModel
s 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
-
-
-
-
Method Detail
-
findDiscountsByCode
public java.util.List<DiscountModel> findDiscountsByCode(java.lang.String code)
Description copied from interface:DiscountDao
Finds theDiscountModel
with the specified code.- Specified by:
findDiscountsByCode
in interfaceDiscountDao
- Parameters:
code
- the discount code- Returns:
- the found
DiscountModel
s with the specified code
-
findDiscountsByMatchedCode
public java.util.Collection<DiscountModel> findDiscountsByMatchedCode(java.lang.String matchedCode)
Description copied from interface:DiscountDao
Finds allDiscountModel
s which match the specified code.- Specified by:
findDiscountsByMatchedCode
in interfaceDiscountDao
- Parameters:
matchedCode
- an SQL-Like statement as String, such as %discountCode%- Returns:
- the
Collection
of allDiscountModel
s which match the specified code
-
findDiscountsByCurrencyIsoCode
public java.util.Collection<DiscountModel> findDiscountsByCurrencyIsoCode(java.lang.String currencyIsoCode)
Description copied from interface:DiscountDao
Finds allDiscountModel
s which match the specified currency.- Specified by:
findDiscountsByCurrencyIsoCode
in interfaceDiscountDao
- Parameters:
currencyIsoCode
- isoCode of the matching currency- Returns:
- the
Collection
of allDiscountModel
s with the specified currency.
-
-