All Known Implementing Classes:
DefaultFlashBuyDao

public interface FlashBuyDao
  • Method Details

    • findFlashBuyCouponByPromotionCode

      Optional<FlashBuyCouponModel> findFlashBuyCouponByPromotionCode(String promotionCode)
      Finds FlashBuyCoupon by given promotion code
      Parameters:
      promotionCode - promotion code
      Returns:
      Optional Optional of FlashBuyCouponModel
    • findPromotionSourceRuleByProduct

      List<PromotionSourceRuleModel> findPromotionSourceRuleByProduct(String productCode)
      Finds promotion source rule by product
      Parameters:
      productCode - product code
      Returns:
      Promotion souce rule model
    • findProductByPromotion

      Optional<ProductModel> findProductByPromotion(AbstractPromotionModel promotion)
      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

      List<ProductModel> findAllProductsByPromotionSourceRule(PromotionSourceRuleModel rule)
      Finds all Products by given promotion source rule
      Parameters:
      rule - promotion source rule
      Returns:
      List list of ProductModel
    • findFlashBuyCouponByProduct

      List<FlashBuyCouponModel> findFlashBuyCouponByProduct(ProductModel product)
      Finds flash buy coupon by product
      Parameters:
      product - product model
      Returns:
      List list of FlashBuyCouponModel