fr.paris.lutece.plugins.phraseanet.business.template
Class TemplateDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.business.template.TemplateDAO
All Implemented Interfaces:
ITemplateDAO

public final class TemplateDAO
extends Object
implements ITemplateDAO

This class provides Data Access methods for Account objects


Constructor Summary
TemplateDAO()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateDAO

public TemplateDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface ITemplateDAO
Parameters:
template - instance of the Template object to insert
plugin - The plugin

load

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

Specified by:
load in interface ITemplateDAO
Parameters:
strMediaType - The media type
plugin - The plugin
Returns:
the instance of the Template

delete

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

Specified by:
delete in interface ITemplateDAO
Parameters:
nTemplateId - The identifier of the Template
plugin - The plugin

store

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

Specified by:
store in interface ITemplateDAO
Parameters:
template - The reference of the Template
plugin - The plugin

selectTemplatesList

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

Specified by:
selectTemplatesList in interface ITemplateDAO
Parameters:
plugin - The plugin
Returns:
The List which contains the data of all the Templates


Copyright © 2013 Mairie de Paris. All Rights Reserved.