fr.paris.lutece.plugins.greetingscard.business
Class GreetingsCardHome

java.lang.Object
  extended by fr.paris.lutece.plugins.greetingscard.business.GreetingsCardHome

public final class GreetingsCardHome
extends java.lang.Object

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


Method Summary
static GreetingsCard create(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static java.util.Collection<GreetingsCard> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns GreetingsCard list
static java.util.Collection<GreetingsCard> findByGreetingsCardTemplateId(int nIdGreetingsCardTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of greetings cards of a greetings card template
static GreetingsCard findByPrimaryKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of the article GreetingsCard whose identifier is specified in parameter
static void remove(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
static GreetingsCard update(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static GreetingsCard create(GreetingsCard greetingsCard,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
greetingsCard - An instance of the GreetingsCard which contains the informations to insert
plugin - The plugin
Returns:
The instance of the GreetingsCard which has been created.

update

public static GreetingsCard update(GreetingsCard greetingsCard,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
greetingsCard - An instance of the GreetingsCard which contains the informations to store
plugin - The plugin
Returns:
The instance of the GreetingsCard which has been updated.

remove

public static void remove(java.lang.String strIdGC,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Parameters:
strIdGC - The Id of the deleted greeting card
plugin - The plugin

findByPrimaryKey

public static GreetingsCard findByPrimaryKey(java.lang.String strKey,
                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of the article GreetingsCard whose identifier is specified in parameter

Parameters:
strKey - The primary key of the article to find in the database
plugin - The plugin
Returns:
An instance of the GreetingsCard which corresponds to the key

findAll

public static java.util.Collection<GreetingsCard> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns GreetingsCard list

Parameters:
plugin - The plugin
Returns:
the list of the GreetingsCard of the database in form of a GreetingsCard Collection object

findByGreetingsCardTemplateId

public static java.util.Collection<GreetingsCard> findByGreetingsCardTemplateId(int nIdGreetingsCardTemplate,
                                                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of greetings cards of a greetings card template

Parameters:
nIdGreetingsCardTemplate - The greetings card template identifier
plugin - The plugin
Returns:
A Collection of greetings cards


Copyright © 2008 Mairie de Paris. All Rights Reserved.