Interface CouponDao
-
- All Superinterfaces:
Dao
- All Known Implementing Classes:
DefaultCouponDao
public interface CouponDao extends Dao
Data Access Object for AbstractCoupon Model.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AbstractCouponModelfindCouponById(java.lang.String couponId)Finds the AbstractCouponModel by its couponId.MultiCodeCouponModelfindMultiCodeCouponById(java.lang.String couponId)Returns the MultiCodeCoupon for the given couponId.java.util.List<MultiCodeCouponModel>findMultiCodeCouponsByCodeConfiguration(CodeGenerationConfigurationModel config)Returns the list of MultiCodeCoupons that have the given configuration.SingleCodeCouponModelfindSingleCodeCouponById(java.lang.String couponId)Finds the SingleCodeCouponModel by its couponId.
-
-
-
Method Detail
-
findCouponById
AbstractCouponModel findCouponById(java.lang.String couponId)
Finds the AbstractCouponModel by its couponId.- Parameters:
couponId- the couponId- Returns:
- AbstractCouponModel by its couponId.
-
findSingleCodeCouponById
SingleCodeCouponModel findSingleCodeCouponById(java.lang.String couponId)
Finds the SingleCodeCouponModel by its couponId.- Parameters:
couponId- the couponId- Returns:
- SingleCodeCouponModel by its couponId.
-
findMultiCodeCouponById
MultiCodeCouponModel findMultiCodeCouponById(java.lang.String couponId)
Returns the MultiCodeCoupon for the given couponId.- Parameters:
couponId- the coupon id- Returns:
- The MultiCodeCoupon for the given coupon id or null if none is found
-
findMultiCodeCouponsByCodeConfiguration
java.util.List<MultiCodeCouponModel> findMultiCodeCouponsByCodeConfiguration(CodeGenerationConfigurationModel config)
Returns the list of MultiCodeCoupons that have the given configuration.- Parameters:
config- the configuration- Returns:
- The list of muli code coupons that use the given configuration
-
-