fr.paris.lutece.plugins.document.business.rules
Interface IRuleDAO

All Known Implementing Classes:
RuleDAO

public interface IRuleDAO

Rule DAO Interface


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
 

Method Detail

delete

void delete(int nRuleId)
Delete a record from the table

Parameters:
nRuleId - The Rule Id

insert

void insert(Rule rule)
Insert a new record in the table.

Parameters:
rule - The rule object

load

Rule load(int nRuleId,
          IRuleTypesSet ruleTypesSet)
Load the data of Rule from the table

Parameters:
nRuleId - The identifier of Rule
Returns:
the instance of the Rule

selectRuleList

java.util.List<Rule> selectRuleList(IRuleTypesSet ruleTypesSet)
Load the list of rules

Returns:
The Collection of the Rules

selectRuleListByRuleTypeKey

java.util.List<Rule> selectRuleListByRuleTypeKey(java.lang.String strRuleTypeKey,
                                                 IRuleTypesSet ruleTypesSet)
Load the list of rules specified by rule type key

Parameters:
strRuleTypeKey - The rule type key
ruleTypesSet - The rule types set
Returns:
The Collection of the Rules

store

void store(Rule rule)
Update the record in the table

Parameters:
rule - The reference of rule


Copyright © 2010 Mairie de Paris. All Rights Reserved.