Class FieldDAO
java.lang.Object
fr.paris.lutece.plugins.genericattributes.business.FieldDAO
- All Implemented Interfaces:
IFieldDAO
This class provides Data Access methods for ReportingFiche objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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 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 expression is useload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data of the Field from the tableloadByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all Fields by codeloadMultipleByEntryIdList(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load all the fields by list of id_enrty.selectEntryTitlesByRegularExpression(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the titles of the entries whose fields are verified by the regular expressionselectFieldListByIdEntry(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 listselectListRegularExpressionKeyByIdField(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 listvoidUpdate the field in the table
-
Constructor Details
-
FieldDAO
public FieldDAO()
-
-
Method Details
-
insert
Insert a new record in the table. -
load
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
Update the field in the table -
selectFieldListByIdEntry
public 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 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- 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 expression is use- Specified by:
isRegularExpressionIsUsein interfaceIFieldDAO- Parameters:
nIdExpression- The identifier of the regular expressionplugin- the plugin- Returns:
- true if the regular expression is use
-
selectEntryTitlesByRegularExpression
public List<String> selectEntryTitlesByRegularExpression(int nIdExpression, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the titles of the entries whose fields are verified by the regular expression- Specified by:
selectEntryTitlesByRegularExpressionin interfaceIFieldDAO- Parameters:
nIdExpression- The identifier of the regular expressionplugin- the plugin- Returns:
- the titles of the entries, one per field verified by the regular expression
-
loadMultipleByEntryIdList
public List<Field> loadMultipleByEntryIdList(List<Integer> idList, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IFieldDAOLoad all the fields by list of id_enrty.- Specified by:
loadMultipleByEntryIdListin interfaceIFieldDAO- Returns:
-
loadByCode
Description copied from interface:IFieldDAOLoad all Fields by code- Specified by:
loadByCodein interfaceIFieldDAO- Returns:
-