public class DefaultRuleDao extends AbstractItemDao implements RuleDao
| Modifier and Type | Field and Description |
|---|---|
protected static String |
GET_ALL_ACTIVE_RULES_QUERY |
protected static String |
GET_ALL_NOT_ARCHIVED_RULES_QUERY |
protected static String |
GET_ALL_RULES_QUERY |
protected static String |
GET_ENGINE_RULE_TYPE_FOR_RULE_TYPE |
protected static String |
GET_RULE_BY_CODE |
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultRuleDao() |
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServiceprotected static final String GET_ALL_RULES_QUERY
protected static final String GET_ALL_ACTIVE_RULES_QUERY
protected static final String GET_RULE_BY_CODE
protected static final String GET_ALL_NOT_ARCHIVED_RULES_QUERY
protected static final String GET_ENGINE_RULE_TYPE_FOR_RULE_TYPE
public List<AbstractRuleModel> findAllRules()
RuleDaoAbstractRuleModelsfindAllRules in interface RuleDaoAbstractRuleModelspublic <T extends AbstractRuleModel> List<T> findAllRulesByType(Class<T> type)
RuleDaofindAllRulesByType in interface RuleDaotype - - type of the rule. Must extend AbstractRuleModelpublic List<AbstractRuleModel> findAllActiveRules()
RuleDaoAbstractRuleModelsfindAllActiveRules in interface RuleDaoAbstractRuleModelspublic <T extends AbstractRuleModel> List<T> findAllActiveRulesByType(Class<T> type)
RuleDaofindAllActiveRulesByType in interface RuleDaotype - - type of the rule. Must extend AbstractRuleModelpublic List<AbstractRuleModel> findAllToBePublishedRules()
RuleDaoAbstractRuleModelsfindAllToBePublishedRules in interface RuleDaoAbstractRuleModelspublic <T extends AbstractRuleModel> List<T> findAllToBePublishedRulesByType(Class<T> type)
RuleDaofindAllToBePublishedRulesByType in interface RuleDaotype - - type of the rule. Must extend AbstractRuleModelpublic AbstractRuleModel findRuleByCode(String code)
RuleDaoAbstractRuleModel by code.findRuleByCode in interface RuleDaocode - - code of the ruleAbstractRuleModelpublic <T extends AbstractRuleModel> T findRuleByCodeAndType(String code, Class<T> type)
RuleDaoAbstractRuleModel by code.findRuleByCodeAndType in interface RuleDaocode - - code of the ruletype - - type of the rule. Must extend AbstractRuleModelAbstractRuleModelpublic RuleType findEngineRuleTypeByRuleType(Class<?> type)
RuleDaofindEngineRuleTypeByRuleType in interface RuleDaotype - - type of the rule.protected StringBuilder createSelectStatement(String typecode)
public void setI18NService(I18NService i18NService)
protected I18NService getI18NService()
public void setTypeService(TypeService typeService)
protected TypeService getTypeService()
Copyright © 2017 SAP SE. All Rights Reserved.