Class DefaultRuleGroupDao
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
-
- de.hybris.platform.ruleengineservices.rule.dao.impl.DefaultRuleGroupDao
-
- All Implemented Interfaces:
RuleGroupDao,Dao
public class DefaultRuleGroupDao extends AbstractItemDao implements RuleGroupDao
Default implementation ofRuleGroupDao
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringGET_ALL_RULE_GROUPS_QUERYprotected static java.lang.StringGET_RULE_GROUP_BY_CODEprotected static java.lang.StringGET_RULE_GROUP_FOR_ENGINE_RULE_TYPE-
Fields inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
flexibleSearchService, modelService
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleGroupDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<RuleGroupModel>findAllNotReferredRuleGroups()Returns all rule groups which has no any rulesprotected java.util.List<RuleGroupModel>findAllReferredRuleGroups()java.util.Optional<RuleGroupModel>findRuleGroupByCode(java.lang.String code)Return a rule groupjava.util.List<RuleGroupModel>findRuleGroupOfType(RuleType engineRuleType)Returns rule groups which has rules corresponding to the specified engine rule type-
Methods inherited from class de.hybris.platform.servicelayer.internal.dao.AbstractItemDao
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelService
-
-
-
-
Field Detail
-
GET_RULE_GROUP_FOR_ENGINE_RULE_TYPE
protected static final java.lang.String GET_RULE_GROUP_FOR_ENGINE_RULE_TYPE
- See Also:
- Constant Field Values
-
GET_ALL_RULE_GROUPS_QUERY
protected static final java.lang.String GET_ALL_RULE_GROUPS_QUERY
- See Also:
- Constant Field Values
-
GET_RULE_GROUP_BY_CODE
protected static final java.lang.String GET_RULE_GROUP_BY_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
findRuleGroupByCode
public java.util.Optional<RuleGroupModel> findRuleGroupByCode(java.lang.String code)
Description copied from interface:RuleGroupDaoReturn a rule group- Specified by:
findRuleGroupByCodein interfaceRuleGroupDao- Parameters:
code- the Rule group code- Returns:
- an optional of the rule group with code
-
findRuleGroupOfType
public java.util.List<RuleGroupModel> findRuleGroupOfType(RuleType engineRuleType)
Description copied from interface:RuleGroupDaoReturns rule groups which has rules corresponding to the specified engine rule type- Specified by:
findRuleGroupOfTypein interfaceRuleGroupDao- Parameters:
engineRuleType- the engine rule type- Returns:
- list of the rule groups
-
findAllReferredRuleGroups
protected java.util.List<RuleGroupModel> findAllReferredRuleGroups()
-
findAllNotReferredRuleGroups
public java.util.List<RuleGroupModel> findAllNotReferredRuleGroups()
Description copied from interface:RuleGroupDaoReturns all rule groups which has no any rules- Specified by:
findAllNotReferredRuleGroupsin interfaceRuleGroupDao- Returns:
- list of the rule groups
-
-