Class TemplateFieldDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.forms.modules.template.business.TemplateFieldDAO
-
- All Implemented Interfaces:
ITemplateFieldDAO
public final class TemplateFieldDAO extends Object implements ITemplateFieldDAO
This class provides Data Access methods for ReportingFiche objects
-
-
Constructor Summary
Constructors Constructor Description TemplateFieldDAO()
-
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 tableintinsert(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.fr.paris.lutece.plugins.genericattributes.business.Fieldload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the Field from the tableList<fr.paris.lutece.plugins.genericattributes.business.Field>loadByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load all Fields by codeList<fr.paris.lutece.plugins.genericattributes.business.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 listvoidstore(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the field in the table
-
-
-
Method Detail
-
insert
public int insert(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.- Specified by:
insertin interfaceITemplateFieldDAO- Parameters:
field- instance of the Field object to insertplugin- the plugin- Returns:
- the new field create
-
load
public fr.paris.lutece.plugins.genericattributes.business.Field load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the Field from the table- Specified by:
loadin interfaceITemplateFieldDAO- Parameters:
nId- The identifier of the fieldplugin- the plugin- Returns:
- the instance of the Field
-
delete
public void delete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceITemplateFieldDAO- Parameters:
nIdField- The identifier of the fieldplugin- the plugin
-
store
public void store(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the field in the table- Specified by:
storein interfaceITemplateFieldDAO- Parameters:
field- instance of the Field object to updateplugin- the plugin
-
selectFieldListByIdEntry
public List<fr.paris.lutece.plugins.genericattributes.business.Field> selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemplateFieldDAOLoad the data of all the field of the entry and returns them in a list- Specified by:
selectFieldListByIdEntryin interfaceITemplateFieldDAO- Parameters:
nIdEntry- the id of the entryplugin- the plugin- Returns:
- the list of field
-
loadByCode
public List<fr.paris.lutece.plugins.genericattributes.business.Field> loadByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemplateFieldDAOLoad all Fields by code- Specified by:
loadByCodein interfaceITemplateFieldDAO- Returns:
-
-