Class DefaultPromotionDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.promotionengineservices.dao.impl.DefaultPromotionDao
-
- All Implemented Interfaces:
PromotionDao,Dao
public class DefaultPromotionDao extends AbstractItemDao implements PromotionDao
Default implementation of thePromotionDao.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultPromotionDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromotionGroupModelfindDefaultPromotionGroup()Finds default PromotionGroup objectAbstractPromotionModelfindPromotionByCode(java.lang.String code)Find a stored item of AbstractPromotionModel type by it code (even if has immutableKeyHash != null).PromotionGroupModelfindPromotionGroupByCode(java.lang.String identifier)Finds PromotionGroup objects from the code identifier-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Method Detail
-
findPromotionByCode
public AbstractPromotionModel findPromotionByCode(java.lang.String code)
Description copied from interface:PromotionDaoFind a stored item of AbstractPromotionModel type by it code (even if has immutableKeyHash != null). Or null if it is not found.- Specified by:
findPromotionByCodein interfacePromotionDao
-
findPromotionGroupByCode
public PromotionGroupModel findPromotionGroupByCode(java.lang.String identifier)
Description copied from interface:PromotionDaoFinds PromotionGroup objects from the code identifier- Specified by:
findPromotionGroupByCodein interfacePromotionDao- Parameters:
identifier- identifier for the promotion group- Returns:
- PromotionGroupModel matching the code
-
findDefaultPromotionGroup
public PromotionGroupModel findDefaultPromotionGroup()
Description copied from interface:PromotionDaoFinds default PromotionGroup object- Specified by:
findDefaultPromotionGroupin interfacePromotionDao- Returns:
- default PromotionGroupModel
-
-