|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.directory.business.FieldDAO
public final class FieldDAO
This class provides Data Access methods for Field objects
Constructor Summary | |
---|---|
FieldDAO()
|
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 nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Field from the table |
Field |
loadByValue(int nIdEntry,
String strValue,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Field from the table by value |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key |
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 |
List<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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldDAO()
Method Detail |
---|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- the plugin
public int insert(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
insert
in interface IFieldDAO
field
- instance of the Field object to insertplugin
- the plugin
public Field load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
load
in interface IFieldDAO
nId
- The identifier of the fieldplugin
- the plugin
public Field loadByValue(int nIdEntry, String strValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
loadByValue
in interface IFieldDAO
nIdEntry
- the entry idstrValue
- the field valueplugin
- the plugin
public void delete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
delete
in interface IFieldDAO
nIdField
- The identifier of the fieldplugin
- the pluginpublic void store(Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
store
in interface IFieldDAO
field
- instance of the Field object to updateplugin
- the pluginpublic List<Field> selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
selectFieldListByIdEntry
in interface IFieldDAO
nIdEntry
- the id of the entryplugin
- the plugin
public void deleteVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
deleteVerifyBy
in interface IFieldDAO
nIdField
- The identifier of the fieldnIdExpression
- The identifier of the regular expressionplugin
- the pluginpublic void insertVerifyBy(int nIdField, int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
insertVerifyBy
in interface IFieldDAO
nIdField
- The identifier of the fieldnIdExpression
- The identifier of the regular expressionplugin
- the pluginpublic List<Integer> selectListRegularExpressionKeyByIdField(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
selectListRegularExpressionKeyByIdField
in interface IFieldDAO
nIdField
- the id of the fieldplugin
- the plugin
public boolean isRegularExpressionIsUse(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IFieldDAO
isRegularExpressionIsUse
in interface IFieldDAO
nIdExpression
- The identifier of the expressionplugin
- the plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |