Class DefaultCouponRedemptionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<CouponRedemptionModel>
de.hybris.platform.couponservices.dao.impl.DefaultCouponRedemptionDao
- All Implemented Interfaces:
CouponRedemptionDao,GenericDao<CouponRedemptionModel>
public class DefaultCouponRedemptionDao
extends DefaultGenericDao<CouponRedemptionModel>
implements CouponRedemptionDao
Default implementation of the
CouponRedemptionDao interface-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCouponRedemptionsByCode(String couponCode) Finds the List of CouponRedemptionModel by its couponCode.findCouponRedemptionsByCodeAndOrder(String couponCode, AbstractOrderModel abstractOrder) Finds the List of CouponRedemptionModel by its couponCode and abstractOrder.findCouponRedemptionsByCodeAndUser(String couponCode, UserModel user) Finds the List of CouponRedemptionModel by its couponCode and user.findCouponRedemptionsByCodeOrderAndUser(String couponCode, AbstractOrderModel abstractOrder, UserModel user) Finds the List of CouponRedemptionModel by its couponCode.findCouponRedemptionsByCouponCode(String couponCode) counts the total redemptions of CouponRedemptionModel by its couponCode.Methods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Field Details
-
COUNT_COUPONREDEMPTIONS_BY_CODE
- See Also:
-
-
Constructor Details
-
DefaultCouponRedemptionDao
public DefaultCouponRedemptionDao()
-
-
Method Details
-
findCouponRedemptionsByCode
Description copied from interface:CouponRedemptionDaoFinds the List of CouponRedemptionModel by its couponCode.- Specified by:
findCouponRedemptionsByCodein interfaceCouponRedemptionDao- Parameters:
couponCode- the couponCode- Returns:
- CouponRedemptionModel List by its couponCode.
-
findCouponRedemptionsByCodeAndOrder
public List<CouponRedemptionModel> findCouponRedemptionsByCodeAndOrder(String couponCode, AbstractOrderModel abstractOrder) Description copied from interface:CouponRedemptionDaoFinds the List of CouponRedemptionModel by its couponCode and abstractOrder.- Specified by:
findCouponRedemptionsByCodeAndOrderin interfaceCouponRedemptionDao- Parameters:
couponCode- the couponCode- Returns:
- CouponRedemptionModel List by its couponCode and abstractOrder..
-
findCouponRedemptionsByCodeAndUser
public List<CouponRedemptionModel> findCouponRedemptionsByCodeAndUser(String couponCode, UserModel user) Description copied from interface:CouponRedemptionDaoFinds the List of CouponRedemptionModel by its couponCode and user.- Specified by:
findCouponRedemptionsByCodeAndUserin interfaceCouponRedemptionDao- Parameters:
couponCode- the couponCodeuser- the user redeeming the coupon- Returns:
- CouponRedemptionModel List by its couponCode and user.
-
findCouponRedemptionsByCodeOrderAndUser
public List<CouponRedemptionModel> findCouponRedemptionsByCodeOrderAndUser(String couponCode, AbstractOrderModel abstractOrder, UserModel user) Description copied from interface:CouponRedemptionDaoFinds the List of CouponRedemptionModel by its couponCode.- Specified by:
findCouponRedemptionsByCodeOrderAndUserin interfaceCouponRedemptionDao- Parameters:
couponCode- the couponCodeuser- the user redeeming the coupon- Returns:
- CouponRedemptionModel List by its couponCode and order and user.
-
findCouponRedemptionsByCouponCode
Description copied from interface:CouponRedemptionDaocounts the total redemptions of CouponRedemptionModel by its couponCode.- Specified by:
findCouponRedemptionsByCouponCodein interfaceCouponRedemptionDao- Parameters:
couponCode- the couponCode- Returns:
- total redemptions numbers
-