@Repository(value="blCartRuleDao") public class CartRuleDaoImpl extends Object implements CartRuleDao
| Modifier and Type | Field and Description |
|---|---|
protected Date |
cachedDate |
protected Long |
currentDateResolution |
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
CartRuleDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.broadleafcommerce.common.util.dao.TypedQueryBuilder<CartRule> |
getActiveCartRulesBuilder() |
protected Date |
getCurrentDateAfterFactoringInDateResolution() |
Long |
getCurrentDateResolution()
Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
List<CartRuleAction> |
readActionsForCartRule(CartRule cartRule)
Returns a list of
CartRuleActions for a given CartRule |
List<CartRule> |
readActiveCartRulesWithExecutionType(ExecutionTimeType executionTimeType)
Returns a list of all active
CartRules with a given ExecutionTimeType |
List<CartRule> |
readAllActiveCartRules()
Returns a list of all active
CartRules |
List<CartRuleCustomerSegmentXref> |
readCustomerSegmentXrefsForCartRule(CartRule cartRule)
Returns a list of
CartRuleCustomerSegmentXrefs for a given CartRule |
void |
setCurrentDateResolution(Long currentDateResolution)
Sets the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
protected javax.persistence.EntityManager em
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
protected Long currentDateResolution
protected Date cachedDate
public List<CartRule> readAllActiveCartRules()
CartRuleDaoCartRulesreadAllActiveCartRules in interface CartRuleDaopublic List<CartRule> readActiveCartRulesWithExecutionType(ExecutionTimeType executionTimeType)
CartRuleDaoCartRules with a given ExecutionTimeTypereadActiveCartRulesWithExecutionType in interface CartRuleDaopublic List<CartRuleAction> readActionsForCartRule(CartRule cartRule)
CartRuleDaoCartRuleActions for a given CartRulereadActionsForCartRule in interface CartRuleDaopublic List<CartRuleCustomerSegmentXref> readCustomerSegmentXrefsForCartRule(CartRule cartRule)
CartRuleDaoCartRuleCustomerSegmentXrefs for a given CartRulereadCustomerSegmentXrefsForCartRule in interface CartRuleDaoprotected org.broadleafcommerce.common.util.dao.TypedQueryBuilder<CartRule> getActiveCartRulesBuilder()
protected Date getCurrentDateAfterFactoringInDateResolution()
public Long getCurrentDateResolution()
CartRuleDaogetCurrentDateResolution in interface CartRuleDaopublic void setCurrentDateResolution(Long currentDateResolution)
CartRuleDaosetCurrentDateResolution in interface CartRuleDaocurrentDateResolution - the milliseconds to cache the current date/timeCopyright © 2019. All rights reserved.