fr.paris.lutece.plugins.form.business
Class RegularExpressionDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.form.business.RegularExpressionDAO
All Implemented Interfaces:
IRegularExpressionDAO

public final class RegularExpressionDAO
extends java.lang.Object
implements IRegularExpressionDAO

This class provides Data Access methods for ReportingFiche objects


Constructor Summary
RegularExpressionDAO()
           
 
Method Summary
 void delete(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.util.ReferenceList getListRegularExpression(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the regular expression returns them in a reference list
 void insert(RegularExpression regularExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 boolean isAssociateToAQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin, int nIdExpression)
          true if there is a question associate to the regular expression
 RegularExpression load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the regular expression from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<RegularExpression> selectListRegularExpression(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the regularExpression and returns them in a list
 java.util.List<RegularExpression> selectListRegularExpressionByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the regularExpression associate to the field and returns them in a list
 void store(RegularExpression regularExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the regularExpression in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegularExpressionDAO

public RegularExpressionDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - the plugin
Returns:
The new primary key

insert

public void insert(RegularExpression regularExpression,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IRegularExpressionDAO
Parameters:
regularExpression - instance of the RegularExpression object to insert
plugin - the plugin

load

public RegularExpression load(int nId,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the regular expression from the table

Specified by:
load in interface IRegularExpressionDAO
Parameters:
nId - The identifier of the regular expression
plugin - the plugin
Returns:
the instance of the RegularExpression

delete

public void delete(int nIdExpression,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IRegularExpressionDAO
Parameters:
nIdExpression - The identifier of the regularExpression
plugin - the plugin

store

public void store(RegularExpression regularExpression,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the regularExpression in the table

Specified by:
store in interface IRegularExpressionDAO
Parameters:
regularExpression - instance of the RegularExpression object to update
plugin - the plugin

selectListRegularExpression

public java.util.List<RegularExpression> selectListRegularExpression(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the regularExpression and returns them in a list

Specified by:
selectListRegularExpression in interface IRegularExpressionDAO
Parameters:
plugin - the plugin
Returns:
the list of regular expression

selectListRegularExpressionByIdField

public java.util.List<RegularExpression> selectListRegularExpressionByIdField(int nIdField,
                                                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the regularExpression associate to the field and returns them in a list

Specified by:
selectListRegularExpressionByIdField in interface IRegularExpressionDAO
Parameters:
nIdField - the id of field
plugin - the plugin
Returns:
the list of regular expression

getListRegularExpression

public fr.paris.lutece.util.ReferenceList getListRegularExpression(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the regular expression returns them in a reference list

Specified by:
getListRegularExpression in interface IRegularExpressionDAO
Parameters:
plugin - the plugin
Returns:
a reference list of regular expression

isAssociateToAQuestion

public boolean isAssociateToAQuestion(fr.paris.lutece.portal.service.plugin.Plugin plugin,
                                      int nIdExpression)
true if there is a question associate to the regular expression

Specified by:
isAssociateToAQuestion in interface IRegularExpressionDAO
Parameters:
plugin - the plugin
nIdExpression - the key of the regular expression
Returns:
true if there is a question associate to the regular expression


Copyright © 2008 Mairie de Paris. All Rights Reserved.