fr.paris.lutece.plugins.phraseanet.business.template
Interface ITemplateDAO

All Known Implementing Classes:
TemplateDAO

public interface ITemplateDAO

IAccountDAO Interface


Method Summary
 void delete(int nIdTemplate, 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 from the table
 List<Template> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the Template objects and returns them as a List
 void store(Template template, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(Template template,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
template - instance of the Template object to insert
plugin - the Plugin

store

void store(Template template,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
template - the reference of the Template
plugin - the Plugin

delete

void delete(int nIdTemplate,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdTemplate - int identifier of the Template to delete
plugin - the Plugin

load

Template load(String strMediaType,
              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
strMediaType - The type of the Template
plugin - the Plugin
Returns:
The instance of the Template

selectTemplatesList

List<Template> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the Template objects and returns them as a List

Parameters:
plugin - the Plugin
Returns:
The List which contains the data of all the Template objects


Copyright © 2013 Mairie de Paris. All Rights Reserved.