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 ITemplateDAOtemplate - instance of the Template object to insertplugin - The pluginpublic Template load(String strMediaType, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ITemplateDAOstrMediaType - The media typeplugin - The pluginpublic void delete(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ITemplateDAOnTemplateId - The identifier of the Templateplugin - The pluginpublic void store(Template template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ITemplateDAOtemplate - The reference of the Templateplugin - The pluginpublic List<Template> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesList in interface ITemplateDAOplugin - The pluginCopyright © 2015 City of Paris. All rights reserved.