public final class TemplateDAO extends Object implements ITemplateDAO
Constructor and Description |
---|
TemplateDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Template template,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Template |
load(String strMediaType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Template from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
List<Template> |
selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the Templates and returns them as a List
|
void |
store(Template template,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(Template template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface ITemplateDAO
template
- instance of the Template object to insertplugin
- The pluginpublic Template load(String strMediaType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface ITemplateDAO
strMediaType
- The media typeplugin
- The pluginpublic void delete(int nTemplateId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface ITemplateDAO
nTemplateId
- The identifier of the Templateplugin
- The pluginpublic void store(Template template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface ITemplateDAO
template
- The reference of the Templateplugin
- The pluginpublic List<Template> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesList
in interface ITemplateDAO
plugin
- The pluginCopyright © 2018 City of Paris. All rights reserved.