public class DefaultCommercePromotionDao extends AbstractItemDao implements CommercePromotionDao
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultCommercePromotionDao() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> java.util.List<T> |
doSearch(java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.Class<T> resultClass) |
java.util.List<OrderPromotionModel> |
findOrderPromotions()
Find all order promotions
|
java.util.List<OrderPromotionModel> |
findOrderPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
Find all order promotions from promotion group
|
java.util.List<ProductPromotionModel> |
findProductPromotions()
Find all product promotions
|
java.util.List<ProductPromotionModel> |
findProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
Find all product promotions from promotion group
|
java.util.List<AbstractPromotionModel> |
findPromotionForCode(java.lang.String code)
Find the promotion by given code.
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic java.util.List<AbstractPromotionModel> findPromotionForCode(java.lang.String code)
CommercePromotionDaofindPromotionForCode in interface CommercePromotionDaocode - - promotion identifierpublic java.util.List<ProductPromotionModel> findProductPromotions()
CommercePromotionDaofindProductPromotions in interface CommercePromotionDaopublic java.util.List<OrderPromotionModel> findOrderPromotions()
CommercePromotionDaofindOrderPromotions in interface CommercePromotionDaopublic java.util.List<ProductPromotionModel> findProductPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
CommercePromotionDaofindProductPromotions in interface CommercePromotionDaopromotionGroups - The promotion groups to evaluatepublic java.util.List<OrderPromotionModel> findOrderPromotions(java.util.Collection<PromotionGroupModel> promotionGroups)
CommercePromotionDaofindOrderPromotions in interface CommercePromotionDaopromotionGroups - The promotion groups to evaluateprotected <T> java.util.List<T> doSearch(java.lang.String query,
java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.Class<T> resultClass)
Copyright © 2018 SAP SE. All Rights Reserved.