Interface FlashBuyDao
- All Known Implementing Classes:
DefaultFlashBuyDao
public interface FlashBuyDao
Looks up items related to
FlashBuyCouponModel PromotionSourceRuleModel ProductModel
ProductForPromotionSourceRuleModel-
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 product
-
Method Details
-
findFlashBuyCouponByPromotionCode
Finds FlashBuyCoupon by given promotion code- Parameters:
promotionCode- promotion code- Returns:
- Optional
Optional of FlashBuyCouponModel
-
findPromotionSourceRuleByProduct
Finds promotion source rule by product- Parameters:
productCode- product code- Returns:
- Promotion souce rule model
-
findProductByPromotion
Finds product by given promotion- Parameters:
promotion- the given promotion- Returns:
- Optional
Optional of ProductModel
-
findProductForPromotionSourceRules
List<ProductForPromotionSourceRuleModel> findProductForPromotionSourceRules(PromotionSourceRuleModel rule) Finds ProductForPromotionRule by given promotion source rule- Parameters:
rule- the promotion source rule- Returns:
- list of ProductForPromotionSourceRuleModel
-
findAllProductsByPromotionSourceRule
Finds all Products by given promotion source rule- Parameters:
rule- promotion source rule- Returns:
- List
list of ProductModel
-
findFlashBuyCouponByProduct
Finds flash buy coupon by product- Parameters:
product- product model- Returns:
- List
list of FlashBuyCouponModel
-