Class DefaultRuleGroupDao

    • 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
    • Constructor Detail

      • DefaultRuleGroupDao

        public DefaultRuleGroupDao()
    • Method Detail

      • findRuleGroupByCode

        public java.util.Optional<RuleGroupModel> findRuleGroupByCode​(java.lang.String code)
        Description copied from interface: RuleGroupDao
        Return a rule group
        Specified by:
        findRuleGroupByCode in interface RuleGroupDao
        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: RuleGroupDao
        Returns rule groups which has rules corresponding to the specified engine rule type
        Specified by:
        findRuleGroupOfType in interface RuleGroupDao
        Parameters:
        engineRuleType - the engine rule type
        Returns:
        list of the rule groups
      • findAllReferredRuleGroups

        protected java.util.List<RuleGroupModel> findAllReferredRuleGroups()