java.lang.Object
fr.paris.lutece.plugins.document.business.rules.RuleDAO
All Implemented Interfaces:
IRuleDAO

@ApplicationScoped public final class RuleDAO extends Object implements IRuleDAO
This class provides Data Access methods for Rule objects
  • Constructor Details

    • RuleDAO

      public RuleDAO()
  • Method Details

    • insert

      public void insert(Rule rule)
      Insert a new record in the table.
      Specified by:
      insert in interface IRuleDAO
      Parameters:
      rule - The rule object
    • load

      public Rule load(int nRuleId, IRuleTypesSet ruleTypesSet)
      Load the data of Rule from the table
      Specified by:
      load in interface IRuleDAO
      Parameters:
      nRuleId - The identifier of Rule
      ruleTypesSet - The rule type set object
      Returns:
      the instance of the Rule
    • delete

      public void delete(int nRuleId)
      Delete a record from the table
      Specified by:
      delete in interface IRuleDAO
      Parameters:
      nRuleId - The Rule Id
    • store

      public void store(Rule rule)
      Update the record in the table
      Specified by:
      store in interface IRuleDAO
      Parameters:
      rule - The reference of rule
    • selectRuleList

      public List<Rule> selectRuleList(IRuleTypesSet ruleTypesSet)
      Load the list of rules
      Specified by:
      selectRuleList in interface IRuleDAO
      Parameters:
      ruleTypesSet - The ruleTypeSet
      Returns:
      The Collection of the Rules
    • selectRuleListByRuleTypeKey

      public List<Rule> selectRuleListByRuleTypeKey(String strRuleTypeKey, IRuleTypesSet ruleTypesSet)
      Load the list of rules specified by rule type key
      Specified by:
      selectRuleListByRuleTypeKey in interface IRuleDAO
      Parameters:
      strRuleTypeKey - The rule type key
      ruleTypesSet - The rule types set
      Returns:
      The Collection of the Rules