Class DefaultCouponDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
de.hybris.platform.couponservices.dao.impl.DefaultCouponDao
Default implementation of
CouponDao.-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds coupon for promotion source rules by promotion source rule modelfindAllCouponForSourceRules(PromotionSourceRuleModel rule, String moduleName) Finds coupon for promotion source rules by promotion source rule modelfindCouponById(String couponId) Finds the AbstractCouponModel by its couponId.findMultiCodeCouponById(String couponId) Returns the MultiCodeCoupon for the given couponId.Returns the list of MultiCodeCoupons that have the given configuration.Finds promotion source rules by coupon codefindSingleCodeCouponById(String couponId) Finds the SingleCodeCouponModel by its couponId.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
Constructor Details
-
DefaultCouponDao
public DefaultCouponDao()
-
-
Method Details
-
findCouponById
Description copied from interface:CouponDaoFinds the AbstractCouponModel by its couponId.- Specified by:
findCouponByIdin interfaceCouponDao- Parameters:
couponId- the couponId- Returns:
- AbstractCouponModel by its couponId.
-
findSingleCodeCouponById
Description copied from interface:CouponDaoFinds the SingleCodeCouponModel by its couponId.- Specified by:
findSingleCodeCouponByIdin interfaceCouponDao- Parameters:
couponId- the couponId- Returns:
- SingleCodeCouponModel by its couponId.
-
findMultiCodeCouponById
Description copied from interface:CouponDaoReturns the MultiCodeCoupon for the given couponId.- Specified by:
findMultiCodeCouponByIdin interfaceCouponDao- Parameters:
couponId- the coupon id- Returns:
- The MultiCodeCoupon for the given coupon id or null if none is found
-
findMultiCodeCouponsByCodeConfiguration
public List<MultiCodeCouponModel> findMultiCodeCouponsByCodeConfiguration(CodeGenerationConfigurationModel config) Description copied from interface:CouponDaoReturns the list of MultiCodeCoupons that have the given configuration.- Specified by:
findMultiCodeCouponsByCodeConfigurationin interfaceCouponDao- Parameters:
config- the configuration- Returns:
- The list of muli code coupons that use the given configuration
-
findAllCouponForSourceRules
public List<CustomerCouponForPromotionSourceRuleModel> findAllCouponForSourceRules(PromotionSourceRuleModel rule) Description copied from interface:CouponDaoFinds coupon for promotion source rules by promotion source rule model- Specified by:
findAllCouponForSourceRulesin interfaceCouponDao- Parameters:
rule- the promotion source rule model- Returns:
- the list of CouponForPromotionSourceRuleModel
-
findAllCouponForSourceRules
public List<CustomerCouponForPromotionSourceRuleModel> findAllCouponForSourceRules(PromotionSourceRuleModel rule, String moduleName) Description copied from interface:CouponDaoFinds coupon for promotion source rules by promotion source rule model- Specified by:
findAllCouponForSourceRulesin interfaceCouponDao- Parameters:
rule- the promotion source rule modelmoduleName- the specific module name- Returns:
- the list of CustomerCouponForPromotionSourceRuleModel
-
findPromotionSourceRuleByCouponCode
Description copied from interface:CouponDaoFinds promotion source rules by coupon code- Specified by:
findPromotionSourceRuleByCouponCodein interfaceCouponDao- Returns:
- the list of PromotionSourceRuleModel
-