Class DefaultFlashBuyDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<FlashBuyCouponModel>
-
- de.hybris.platform.timedaccesspromotionengineservices.daos.impl.DefaultFlashBuyDao
-
- All Implemented Interfaces:
GenericDao<FlashBuyCouponModel>,FlashBuyDao
public class DefaultFlashBuyDao extends DefaultGenericDao<FlashBuyCouponModel> implements FlashBuyDao
Default implementation ofFlashBuyDao
-
-
Constructor Summary
Constructors Constructor Description DefaultFlashBuyDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ProductModel>findAllProductsByPromotionSourceRule(PromotionSourceRuleModel rule)Finds all Products by given promotion source rulejava.util.List<FlashBuyCouponModel>findFlashBuyCouponByProduct(ProductModel product)Finds flash buy coupon by productjava.util.Optional<FlashBuyCouponModel>findFlashBuyCouponByPromotionCode(java.lang.String promotionCode)Finds FlashBuyCoupon by given promotion codejava.util.Optional<ProductModel>findProductByPromotion(AbstractPromotionModel promotion)Finds product by given promotionjava.util.List<ProductForPromotionSourceRuleModel>findProductForPromotionSourceRules(PromotionSourceRuleModel rule)Finds ProductForPromotionRule by given promotion source rulejava.util.List<PromotionSourceRuleModel>findPromotionSourceRuleByProduct(java.lang.String productCode)Finds promotion source rule by product-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
-
-
-
Method Detail
-
findFlashBuyCouponByPromotionCode
public java.util.Optional<FlashBuyCouponModel> findFlashBuyCouponByPromotionCode(java.lang.String promotionCode)
Description copied from interface:FlashBuyDaoFinds FlashBuyCoupon by given promotion code- Specified by:
findFlashBuyCouponByPromotionCodein interfaceFlashBuyDao- Parameters:
promotionCode- promotion code- Returns:
- Optional
Optional of FlashBuyCouponModel
-
findPromotionSourceRuleByProduct
public java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByProduct(java.lang.String productCode)
Description copied from interface:FlashBuyDaoFinds promotion source rule by product- Specified by:
findPromotionSourceRuleByProductin interfaceFlashBuyDao- Parameters:
productCode- product code- Returns:
- Promotion souce rule model
-
findProductByPromotion
public java.util.Optional<ProductModel> findProductByPromotion(AbstractPromotionModel promotion)
Description copied from interface:FlashBuyDaoFinds product by given promotion- Specified by:
findProductByPromotionin interfaceFlashBuyDao- Parameters:
promotion- the given promotion- Returns:
- Optional
Optional of ProductModel
-
findProductForPromotionSourceRules
public java.util.List<ProductForPromotionSourceRuleModel> findProductForPromotionSourceRules(PromotionSourceRuleModel rule)
Description copied from interface:FlashBuyDaoFinds ProductForPromotionRule by given promotion source rule- Specified by:
findProductForPromotionSourceRulesin interfaceFlashBuyDao- Parameters:
rule- the promotion source rule- Returns:
- list of ProductForPromotionSourceRuleModel
-
findAllProductsByPromotionSourceRule
public java.util.List<ProductModel> findAllProductsByPromotionSourceRule(PromotionSourceRuleModel rule)
Description copied from interface:FlashBuyDaoFinds all Products by given promotion source rule- Specified by:
findAllProductsByPromotionSourceRulein interfaceFlashBuyDao- Parameters:
rule- promotion source rule- Returns:
- List
list of ProductModel
-
findFlashBuyCouponByProduct
public java.util.List<FlashBuyCouponModel> findFlashBuyCouponByProduct(ProductModel product)
Description copied from interface:FlashBuyDaoFinds flash buy coupon by product- Specified by:
findFlashBuyCouponByProductin interfaceFlashBuyDao- Parameters:
product- product model- Returns:
- List
list of FlashBuyCouponModel
-
-