fr.paris.lutece.plugins.document.business.rules
Class RuleDAO

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

public final class RuleDAO
extends java.lang.Object
implements IRuleDAO

This class provides Data Access methods for Rule objects


Constructor Summary
RuleDAO()
           
 
Method Summary
 void delete(int nRuleId)
          Delete a record from the table
 void insert(Rule rule)
          Insert a new record in the table.
 Rule load(int nRuleId, IRuleTypesSet ruleTypesSet)
          Load the data of Rule from the table
 java.util.List<Rule> selectRuleList(IRuleTypesSet ruleTypesSet)
          Load the list of rules
 java.util.List<Rule> selectRuleListByRuleTypeKey(java.lang.String strRuleTypeKey, IRuleTypesSet ruleTypesSet)
          Load the list of rules specified by rule type key
 void store(Rule rule)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleDAO

public RuleDAO()
Method Detail

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 java.util.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 java.util.List<Rule> selectRuleListByRuleTypeKey(java.lang.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


Copyright © 2010 Mairie de Paris. All Rights Reserved.