@Repository(value="blEnterpriseSearchBoostRuleDao") public class EnterpriseSearchBoostRuleDaoImpl extends Object implements EnterpriseSearchBoostRuleDao
| Modifier and Type | Field and Description |
|---|---|
protected Date |
cachedDate |
protected Long |
currentDateResolution |
protected org.broadleafcommerce.common.util.DialectHelper |
dialectHelper |
protected javax.persistence.EntityManager |
em |
protected org.broadleafcommerce.common.persistence.EntityConfiguration |
entityConfiguration |
protected org.broadleafcommerce.common.sandbox.SandBoxHelper |
sandBoxHelper |
| Constructor and Description |
|---|
EnterpriseSearchBoostRuleDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attachActiveRestriction(Date currentDate,
javax.persistence.criteria.Path<? extends BoostRule> rule,
List<javax.persistence.criteria.Predicate> restrictions) |
CategoryBoostRule |
findCategoryBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType,
BoostRuleType boostRuleType)
Finds and returns only a single CategoryBoostRule for the parameters
|
List<CategoryBoostRule> |
findCategoryBoostRules(List<Long> categoryIds,
BoostRuleType boostRuleType) |
GlobalBoostRule |
findGlobalBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType,
BoostRuleType boostRuleType)
Finds and returns only a single GlobalBoostRule for the parameters
|
List<GlobalBoostRule> |
findGlobalBoostRules(BoostRuleType boostRuleType)
Finds and returns the GlobalBoostRule's for the given IndexFieldType and BoostRuleType
|
Long |
getCurrentDateResolution()
Returns the number of milliseconds that the current date/time will be cached for queries before refreshing.
|
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.persistence.EntityConfiguration entityConfiguration
protected org.broadleafcommerce.common.sandbox.SandBoxHelper sandBoxHelper
protected org.broadleafcommerce.common.util.DialectHelper dialectHelper
protected Long currentDateResolution
protected Date cachedDate
public GlobalBoostRule findGlobalBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType, BoostRuleType boostRuleType)
EnterpriseSearchBoostRuleDaofindGlobalBoostRule in interface EnterpriseSearchBoostRuleDaoindexFieldType - the IndexFieldType to matchboostRuleType - the BoostRuleType to matchpublic CategoryBoostRule findCategoryBoostRule(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType, BoostRuleType boostRuleType)
EnterpriseSearchBoostRuleDaofindCategoryBoostRule in interface EnterpriseSearchBoostRuleDaoboostRuleType - the boostRuleType to matchpublic List<CategoryBoostRule> findCategoryBoostRules(List<Long> categoryIds, BoostRuleType boostRuleType)
findCategoryBoostRules in interface EnterpriseSearchBoostRuleDaopublic List<GlobalBoostRule> findGlobalBoostRules(BoostRuleType boostRuleType)
EnterpriseSearchBoostRuleDaofindGlobalBoostRules in interface EnterpriseSearchBoostRuleDaoboostRuleType - the BoostRuleType to matchprotected void attachActiveRestriction(Date currentDate, javax.persistence.criteria.Path<? extends BoostRule> rule, List<javax.persistence.criteria.Predicate> restrictions)
public Long getCurrentDateResolution()
EnterpriseSearchBoostRuleDaogetCurrentDateResolution in interface EnterpriseSearchBoostRuleDaopublic void setCurrentDateResolution(Long currentDateResolution)
EnterpriseSearchBoostRuleDaosetCurrentDateResolution in interface EnterpriseSearchBoostRuleDaocurrentDateResolution - the milliseconds to cache the current date/timeCopyright © 2020. All rights reserved.