Class DefaultCommercePromotionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.commerceservices.promotion.dao.impl.DefaultCommercePromotionDao
- All Implemented Interfaces:
CommercePromotionDao,Dao
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> List<T>Find all order promotionsfindOrderPromotions(Collection<PromotionGroupModel> promotionGroups) Find all order promotions from promotion groupFind all product promotionsfindProductPromotions(Collection<PromotionGroupModel> promotionGroups) Find all product promotions from promotion groupfindPromotionForCode(String code) Find the promotion by given 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
-
DefaultCommercePromotionDao
public DefaultCommercePromotionDao()
-
-
Method Details
-
findPromotionForCode
Description copied from interface:CommercePromotionDaoFind the promotion by given code.- Specified by:
findPromotionForCodein interfaceCommercePromotionDao- Parameters:
code- - promotion identifier- Returns:
- - found promotions list or empty list
-
findProductPromotions
Description copied from interface:CommercePromotionDaoFind all product promotions- Specified by:
findProductPromotionsin interfaceCommercePromotionDao- Returns:
- all product promotions
-
findOrderPromotions
Description copied from interface:CommercePromotionDaoFind all order promotions- Specified by:
findOrderPromotionsin interfaceCommercePromotionDao- Returns:
- all order promotions
-
findProductPromotions
public List<ProductPromotionModel> findProductPromotions(Collection<PromotionGroupModel> promotionGroups) Description copied from interface:CommercePromotionDaoFind all product promotions from promotion group- Specified by:
findProductPromotionsin interfaceCommercePromotionDao- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- all product promotions
-
findOrderPromotions
public List<OrderPromotionModel> findOrderPromotions(Collection<PromotionGroupModel> promotionGroups) Description copied from interface:CommercePromotionDaoFind all order promotions from promotion group- Specified by:
findOrderPromotionsin interfaceCommercePromotionDao- Parameters:
promotionGroups- The promotion groups to evaluate- Returns:
- all order promotions
-
doSearch
-