Class FieldDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.form.business.FieldDAO
-
-
Constructor Summary
Constructors Constructor Description FieldDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete an association between field and a regular expressionintinsert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.voidinsertVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)insert an association between field and a regular expressionbooleanisRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)verify if the regular expresssion is useFieldload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the Field from the tableintnewPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)Generates a new primary keyjava.util.List<Field>selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the field of the entry and returns them in a listjava.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 listvoidstore(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the field in the table
-
-
-
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 int insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
-
load
public Field load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Field from the table
-
delete
public void delete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table
-
store
public void store(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the field in the table
-
selectFieldListByIdEntry
public java.util.List<Field> selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the field of the entry and returns them in a list- Specified by:
selectFieldListByIdEntryin interfaceIFieldDAO- Parameters:
nIdEntry- the id of the entryplugin- the plugin- Returns:
- the list of field
-
deleteVerifyBy
public void deleteVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete an association between field and a regular expression- Specified by:
deleteVerifyByin interfaceIFieldDAO- Parameters:
nIdField- The identifier of the fieldnIdExpression- The identifier of the regular expressionplugin- the plugin
-
insertVerifyBy
public void insertVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)insert an association between field and a regular expression- Specified by:
insertVerifyByin interfaceIFieldDAO- Parameters:
nIdField- The identifier of the fieldnIdExpression- The identifier of the regular expressionplugin- the plugin
-
selectListRegularExpressionKeyByIdField
public 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- Specified by:
selectListRegularExpressionKeyByIdFieldin interfaceIFieldDAO- Parameters:
nIdField- the id of the fieldplugin- the plugin- Returns:
- the list of regular expression key
-
isRegularExpressionIsUse
public boolean isRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)verify if the regular expresssion is use- Specified by:
isRegularExpressionIsUsein interfaceIFieldDAO- Parameters:
nIdEntry- The identifier of the entryplugin- the plugin- Returns:
- true if the regular expression is use
-
-