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

java.lang.Object
  extended by fr.paris.lutece.plugins.phraseanet.business.template.TemplateHome

public final class TemplateHome
extends Object

This class provides instances management methods (create, find, ...) for Template objects


Method Summary
static Template create(Template template)
          Create an instance of the Template class
static List<Template> findAll()
          Load the data of all the Template objects and returns them in form of a collection
static Template findByPrimaryKey(String strMediaType)
          Returns an instance of a Template whose identifier is specified in parameter
static void remove(int nTemplateId)
          Remove the Template whose identifier is specified in parameter
static Template update(Template template)
          Update of the Template data specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static Template create(Template template)
Create an instance of the Template class

Parameters:
template - The instance of the Template which contains the informations to store
Returns:
The instance of Template which has been created with its primary key.

update

public static Template update(Template template)
Update of the Template data specified in parameter

Parameters:
template - The instance of the Template which contains the data to store
Returns:
The instance of the Template which has been updated

remove

public static void remove(int nTemplateId)
Remove the Template whose identifier is specified in parameter

Parameters:
nTemplateId - The Template Id

findByPrimaryKey

public static Template findByPrimaryKey(String strMediaType)
Returns an instance of a Template whose identifier is specified in parameter

Parameters:
strMediaType - The Template media type
Returns:
an instance of Template

findAll

public static List<Template> findAll()
Load the data of all the Template objects and returns them in form of a collection

Returns:
the list which contains the data of all the Template objects


Copyright © 2013 Mairie de Paris. All Rights Reserved.