fr.paris.lutece.plugins.form.modules.comparevalidators.business
Class RuleDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.form.modules.comparevalidators.business.RuleDAO
All Implemented Interfaces:
IRuleDAO

public class RuleDAO
extends Object
implements IRuleDAO

RuleDAO


Constructor Summary
RuleDAO()
           
 
Method Summary
 void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Removes the rule whose identifier is specified in parameter
 void insert(Rule rule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates a new instance of rule
 List<Rule> selectRulesByForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all rules for a given form identifier
 
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,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a new instance of rule

Specified by:
insert in interface IRuleDAO
Parameters:
rule - The instance of rule which contains the informations to store
plugin - The plugin

delete

public void delete(int nKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Removes the rule whose identifier is specified in parameter

Specified by:
delete in interface IRuleDAO
Parameters:
nKey - The primary key of the rule to remove
plugin - The plugin

selectRulesByForm

public List<Rule> selectRulesByForm(int nIdForm,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all rules for a given form identifier

Specified by:
selectRulesByForm in interface IRuleDAO
Parameters:
nIdForm - the form identifier
plugin - The plugin
Returns:
the referenceList which contains the found rules


Copyright © 2014 Mairie de Paris. All Rights Reserved.