fr.paris.lutece.plugins.directory.business
Interface IFieldDAO

All Known Implementing Classes:
FieldDAO

public interface IFieldDAO

IFormDAO Interface


Method Summary
 void delete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an association between field and a regular expression
 int insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          insert an association between field and a regular expression
 boolean isRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          verify if the regular expresssion is use
 Field load(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the Field from the table
 Field loadByValue(int nIdEntry, java.lang.String strValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the Field from the table by value
 java.util.List<Field> selectFieldListByIdEntry(int idEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the field of the entry and returns them in a list
 java.util.List<java.lang.Integer> selectListRegularExpressionKeyByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the key of all the regularExpression associate to the field and returns them in a list
 void store(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the field in the table
 

Method Detail

insert

int insert(Field field,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
field - instance of the Field object to insert
plugin - the plugin
Returns:
the new field create

store

void store(Field field,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the field in the table

Parameters:
field - instance of the Field object to update
plugin - the plugin

delete

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

Parameters:
nIdField - The identifier of the field
plugin - the plugin

load

Field load(int nIdField,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Field from the table

Parameters:
nIdField - The identifier of the field
plugin - the plugin
Returns:
the instance of the Field

loadByValue

Field loadByValue(int nIdEntry,
                  java.lang.String strValue,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Field from the table by value

Parameters:
nIdEntry - the entry id
strValue - the field value
plugin - the plugin
Returns:
the instance of the Field

selectFieldListByIdEntry

java.util.List<Field> selectFieldListByIdEntry(int idEntry,
                                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the field of the entry and returns them in a list

Parameters:
idEntry - the id of the entry
plugin - the plugin
Returns:
the list of field

deleteVerifyBy

void deleteVerifyBy(int nIdField,
                    int nIdExpression,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an association between field and a regular expression

Parameters:
nIdField - The identifier of the field
nIdExpression - The identifier of the regular expression
plugin - the plugin

insertVerifyBy

void insertVerifyBy(int nIdField,
                    int nIdExpression,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert an association between field and a regular expression

Parameters:
nIdField - The identifier of the field
nIdExpression - The identifier of the regular expression
plugin - the plugin

selectListRegularExpressionKeyByIdField

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

Parameters:
nIdField - the id of the field
plugin - the plugin
Returns:
the list of regular expression key

isRegularExpressionIsUse

boolean isRegularExpressionIsUse(int nIdExpression,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
verify if the regular expresssion is use

Parameters:
nIdExpression - The identifier of the expression
plugin - the plugin
Returns:
true if the regular expression is use


Copyright © 2012 Mairie de Paris. All Rights Reserved.