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

java.lang.Object
  extended by fr.paris.lutece.plugins.greetingscard.business.GreetingsCardDAO
All Implemented Interfaces:
IGreetingsCardDAO

public final class GreetingsCardDAO
extends java.lang.Object
implements IGreetingsCardDAO

This class provides Data Access methods for GreetingsCard objects


Method Summary
 void delete(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 java.util.Collection<GreetingsCard> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Finds all objects of this type
 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
 void insert(GreetingsCard greetingsCard, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 GreetingsCard load(java.lang.String strIdGC, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          load the data of GreetingsCard from the table
 void store(GreetingsCard greetingsCard, 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
 

Method Detail

insert

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

Specified by:
insert in interface IGreetingsCardDAO
Parameters:
greetingsCard - The Instance of the GreetingsCard object
plugin - The plugin

delete

public void delete(java.lang.String strIdGC,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IGreetingsCardDAO
Parameters:
strIdGC - The indentifier of the object GreetingsCard
plugin - The plugin

load

public GreetingsCard load(java.lang.String strIdGC,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
load the data of GreetingsCard from the table

Specified by:
load in interface IGreetingsCardDAO
Parameters:
strIdGC - The identifier of the object GreetingsCard
plugin - The plugin
Returns:
The Instance of the object GreetingsCard

store

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

Specified by:
store in interface IGreetingsCardDAO
Parameters:
greetingsCard - The instance of the GreetingsCard to update
plugin - The plugin

findAll

public java.util.Collection<GreetingsCard> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds all objects of this type

Specified by:
findAll in interface IGreetingsCardDAO
Parameters:
plugin - The plugin
Returns:
A collection of objects

findByGreetingsCardTemplateId

public 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

Specified by:
findByGreetingsCardTemplateId in interface IGreetingsCardDAO
Parameters:
nIdGreetingsCardTemplate - The greetings card template identifier
plugin - The plugin
Returns:
A Collection of greetings cards


Copyright © 2008 Mairie de Paris. All Rights Reserved.