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 of
FlashBuyDao-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds all Products by given promotion source rulefindFlashBuyCouponByProduct(ProductModel product) Finds flash buy coupon by productfindFlashBuyCouponByPromotionCode(String promotionCode) Finds FlashBuyCoupon by given promotion codefindProductByPromotion(AbstractPromotionModel promotion) Finds product by given promotionFinds ProductForPromotionRule by given promotion source rulefindPromotionSourceRuleByProduct(String productCode) Finds promotion source rule by productMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultFlashBuyDao
public DefaultFlashBuyDao()
-
-
Method Details
-
findFlashBuyCouponByPromotionCode
Description copied from interface:FlashBuyDaoFinds FlashBuyCoupon by given promotion code- Specified by:
findFlashBuyCouponByPromotionCodein interfaceFlashBuyDao- Parameters:
promotionCode- promotion code- Returns:
- Optional
Optional of FlashBuyCouponModel
-
findPromotionSourceRuleByProduct
Description copied from interface:FlashBuyDaoFinds promotion source rule by product- Specified by:
findPromotionSourceRuleByProductin interfaceFlashBuyDao- Parameters:
productCode- product code- Returns:
- Promotion souce rule model
-
findProductByPromotion
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 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
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
Description copied from interface:FlashBuyDaoFinds flash buy coupon by product- Specified by:
findFlashBuyCouponByProductin interfaceFlashBuyDao- Parameters:
product- product model- Returns:
- List
list of FlashBuyCouponModel
-