public final class TemplateFieldDAO extends Object implements ITemplateFieldDAO
Constructor and Description |
---|
TemplateFieldDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdField,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
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.
|
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
|
List<fr.paris.lutece.plugins.genericattributes.business.Field> |
loadByCode(String code,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load all Fields by code
|
List<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 list
|
void |
store(fr.paris.lutece.plugins.genericattributes.business.Field field,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the field in the table
|
public int insert(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITemplateFieldDAO
field
- instance of the Field object to insertplugin
- the pluginpublic fr.paris.lutece.plugins.genericattributes.business.Field load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ITemplateFieldDAO
nId
- The identifier of the fieldplugin
- the pluginpublic void delete(int nIdField, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ITemplateFieldDAO
nIdField
- The identifier of the fieldplugin
- the pluginpublic void store(fr.paris.lutece.plugins.genericattributes.business.Field field, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ITemplateFieldDAO
field
- instance of the Field object to updateplugin
- the pluginpublic List<fr.paris.lutece.plugins.genericattributes.business.Field> selectFieldListByIdEntry(int nIdEntry, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ITemplateFieldDAO
selectFieldListByIdEntry
in interface ITemplateFieldDAO
nIdEntry
- the id of the entryplugin
- the pluginpublic List<fr.paris.lutece.plugins.genericattributes.business.Field> loadByCode(String code, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ITemplateFieldDAO
loadByCode
in interface ITemplateFieldDAO
Copyright © 2022 City of Paris. All rights reserved.