public class DefaultCustomerCouponDao extends DefaultGenericDao<CustomerCouponModel> implements CustomerCouponDao
CustomerCouponDao| Constructor and Description |
|---|
DefaultCustomerCouponDao() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCustomerCouponAvailableForCustomer(java.lang.String couponCode,
CustomerModel customer)
Checks if the customer coupon is available for the customer
|
int |
countAssignedCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
Counts the assigned customer coupons for the customer by coupon code
|
protected SortQueryData |
createSortQueryData(java.lang.String sortCode,
java.lang.String query) |
java.util.List<CustomerCouponForPromotionSourceRuleModel> |
findAllCusCouponForSourceRules(PromotionSourceRuleModel rule)
Finds customer coupon for promotion source rules by promotion source rule model
|
java.util.List<CustomerCouponForPromotionSourceRuleModel> |
findAllCusCouponForSourceRules(PromotionSourceRuleModel rule,
java.lang.String moduleName)
Finds customer coupon for promotion source rules by promotion source rule model
|
java.util.List<CustomerCouponModel> |
findAssignableCoupons(CustomerModel customer,
java.lang.String text)
Finds assignable customer coupons for the customer by search text
|
java.util.List<CustomerCouponModel> |
findAssignedCouponsByCustomer(CustomerModel customer,
java.lang.String text)
Finds assigned customer coupons by the customer and search text
|
protected java.util.List<CustomerCouponModel> |
findAssignmentCoupons(CustomerModel customer,
java.lang.String text,
java.lang.String query) |
java.util.List<CatForPromotionSourceRuleModel> |
findCategoryForPromotionSourceRuleByPromotion(java.lang.String code)
Finds category for promotion source rules by promotion source rule
|
java.util.List<CustomerCouponModel> |
findCustomerCouponByPromotionSourceRule(java.lang.String code)
Finds customer coupons by promotion source rule
|
SearchPageData<CustomerCouponModel> |
findCustomerCouponsByCustomer(CustomerModel customer,
PageableData pageableData)
Finds paginated customer coupons
|
java.util.List<CustomerCouponModel> |
findEffectiveCustomerCouponsByCustomer(CustomerModel customer)
Finds customer coupons for the customer
|
java.util.List<PromotionSourceRuleModel> |
findExclPromotionSourceRuleByCategory(java.lang.String categoryCode)
Finds excluded promotion source rules by category
|
java.util.List<PromotionSourceRuleModel> |
findExclPromotionSourceRuleByProduct(java.lang.String productCode)
Finds excluded promotion source rules by product code
|
SearchPageData<CustomerCouponModel> |
findPaginatedCouponsByCustomer(CustomerModel customer,
SearchPageData searchPageData)
Finds paginated customer coupons by the customer and searchPageData
|
java.util.List<ProductForPromotionSourceRuleModel> |
findProductForPromotionSourceRuleByPromotion(java.lang.String code)
Finds product for promotion source rules by code
|
java.util.List<PromotionSourceRuleModel> |
findPromotionSourceRuleByCategory(java.lang.String categoryCode)
Finds promotion source rules by category
|
java.util.Optional<PromotionSourceRuleModel> |
findPromotionSourceRuleByCode(java.lang.String code)
Finds promotion source rules by rule code
|
java.util.List<PromotionSourceRuleModel> |
findPromotionSourceRuleByCouponCode(java.lang.String code)
Finds promotion source rules by customer coupon code
|
java.util.List<PromotionSourceRuleModel> |
findPromotionSourceRuleByProduct(java.lang.String productCode)
Finds promotion source rules by product code
|
protected java.util.Map<java.lang.String,java.lang.String> |
getCustomerCouponSortCodeToQueryAlias() |
protected PagedFlexibleSearchService |
getPagedFlexibleSearchService() |
protected PaginatedFlexibleSearchService |
getPaginatedFlexibleSearchService() |
void |
setCustomerCouponSortCodeToQueryAlias(java.util.Map<java.lang.String,java.lang.String> customerCouponSortCodeToQueryAlias) |
void |
setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService) |
void |
setPaginatedFlexibleSearchService(PaginatedFlexibleSearchService paginatedFlexibleSearchService) |
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchServicepublic java.util.Optional<PromotionSourceRuleModel> findPromotionSourceRuleByCode(java.lang.String code)
CustomerCouponDaofindPromotionSourceRuleByCode in interface CustomerCouponDaocode - the rule codepublic java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByProduct(java.lang.String productCode)
CustomerCouponDaofindPromotionSourceRuleByProduct in interface CustomerCouponDaoproductCode - the product codepublic java.util.List<PromotionSourceRuleModel> findExclPromotionSourceRuleByProduct(java.lang.String productCode)
CustomerCouponDaofindExclPromotionSourceRuleByProduct in interface CustomerCouponDaoproductCode - the product codepublic java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByCategory(java.lang.String categoryCode)
CustomerCouponDaofindPromotionSourceRuleByCategory in interface CustomerCouponDaocategoryCode - the category codepublic java.util.List<PromotionSourceRuleModel> findExclPromotionSourceRuleByCategory(java.lang.String categoryCode)
CustomerCouponDaofindExclPromotionSourceRuleByCategory in interface CustomerCouponDaocategoryCode - the category codepublic java.util.List<CustomerCouponModel> findCustomerCouponByPromotionSourceRule(java.lang.String code)
CustomerCouponDaofindCustomerCouponByPromotionSourceRule in interface CustomerCouponDaocode - the promotion source rule codepublic java.util.List<PromotionSourceRuleModel> findPromotionSourceRuleByCouponCode(java.lang.String code)
CustomerCouponDaofindPromotionSourceRuleByCouponCode in interface CustomerCouponDaopublic java.util.List<ProductForPromotionSourceRuleModel> findProductForPromotionSourceRuleByPromotion(java.lang.String code)
CustomerCouponDaofindProductForPromotionSourceRuleByPromotion in interface CustomerCouponDaocode - the promotion source rule codepublic java.util.List<CatForPromotionSourceRuleModel> findCategoryForPromotionSourceRuleByPromotion(java.lang.String code)
CustomerCouponDaofindCategoryForPromotionSourceRuleByPromotion in interface CustomerCouponDaocode - the promotion source rule codepublic SearchPageData<CustomerCouponModel> findCustomerCouponsByCustomer(CustomerModel customer, PageableData pageableData)
CustomerCouponDaofindCustomerCouponsByCustomer in interface CustomerCouponDaocustomer - the customer modelpageableData - the data used for paginationpublic java.util.List<CustomerCouponForPromotionSourceRuleModel> findAllCusCouponForSourceRules(PromotionSourceRuleModel rule)
CustomerCouponDaofindAllCusCouponForSourceRules in interface CustomerCouponDaorule - the promotion source rule modelpublic java.util.List<CustomerCouponForPromotionSourceRuleModel> findAllCusCouponForSourceRules(PromotionSourceRuleModel rule, java.lang.String moduleName)
CustomerCouponDaofindAllCusCouponForSourceRules in interface CustomerCouponDaorule - the promotion source rule modelmoduleName - the specific module nameprotected SortQueryData createSortQueryData(java.lang.String sortCode, java.lang.String query)
public java.util.List<CustomerCouponModel> findEffectiveCustomerCouponsByCustomer(CustomerModel customer)
CustomerCouponDaofindEffectiveCustomerCouponsByCustomer in interface CustomerCouponDaocustomer - the customer modelpublic boolean checkCustomerCouponAvailableForCustomer(java.lang.String couponCode,
CustomerModel customer)
CustomerCouponDaocheckCustomerCouponAvailableForCustomer in interface CustomerCouponDaocouponCode - the coupon codecustomer - the customer modelpublic int countAssignedCouponForCustomer(java.lang.String couponCode,
CustomerModel customer)
CustomerCouponDaocountAssignedCouponForCustomer in interface CustomerCouponDaocouponCode - the coupon codecustomer - the customer modelpublic java.util.List<CustomerCouponModel> findAssignableCoupons(CustomerModel customer, java.lang.String text)
CustomerCouponDaofindAssignableCoupons in interface CustomerCouponDaocustomer - the customer modeltext - the text used for searching assignable customer couponspublic java.util.List<CustomerCouponModel> findAssignedCouponsByCustomer(CustomerModel customer, java.lang.String text)
CustomerCouponDaofindAssignedCouponsByCustomer in interface CustomerCouponDaocustomer - the customer modeltext - the text used for searching assigned customer couponsprotected java.util.List<CustomerCouponModel> findAssignmentCoupons(CustomerModel customer, java.lang.String text, java.lang.String query)
public SearchPageData<CustomerCouponModel> findPaginatedCouponsByCustomer(CustomerModel customer, SearchPageData searchPageData)
CustomerCouponDaofindPaginatedCouponsByCustomer in interface CustomerCouponDaocustomer - the customer modelsearchPageData - the data used for paginationprotected PagedFlexibleSearchService getPagedFlexibleSearchService()
public void setPagedFlexibleSearchService(PagedFlexibleSearchService pagedFlexibleSearchService)
protected PaginatedFlexibleSearchService getPaginatedFlexibleSearchService()
public void setPaginatedFlexibleSearchService(PaginatedFlexibleSearchService paginatedFlexibleSearchService)
protected java.util.Map<java.lang.String,java.lang.String> getCustomerCouponSortCodeToQueryAlias()
public void setCustomerCouponSortCodeToQueryAlias(java.util.Map<java.lang.String,java.lang.String> customerCouponSortCodeToQueryAlias)
Copyright © 2018 SAP SE. All Rights Reserved.