fr.paris.lutece.plugins.greetingscard.business
Interface IGreetingsCardArchiveDAO

All Known Implementing Classes:
GreetingsCardArchiveDAO

public interface IGreetingsCardArchiveDAO


Method Summary
 GreetingsCardArchive findById(int nIdArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load a greetings card archive from the database
 java.util.Collection<GreetingsCardArchive> findByTemplateIdAndYear(int nIdGreetingsCardTemplate, int nYear, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of greetings cards archives of a greetings card template
 java.util.Collection<GreetingsCardArchive> findByYear(int year, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns the list of greetings cards archives of a given year
 java.util.Collection<java.lang.Integer> getYearList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of every year archived
 void insert(GreetingsCardArchive greetingsCardArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates a greetings card in the database
 void remove(int nIdArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove a greetings card archive
 void removeAllArchives(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove every archive from the database
 void removeByIdTemplate(int nGreetingsCardTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove every archive associated to a greetings card template
 void update(GreetingsCardArchive greetingsCardArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a greetings card archive
 

Method Detail

insert

void insert(GreetingsCardArchive greetingsCardArchive,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a greetings card in the database

Parameters:
greetingsCardArchive - GreetingsCardarchive to inser
plugin - The plugin

findById

GreetingsCardArchive findById(int nIdArchive,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load a greetings card archive from the database

Parameters:
nIdArchive - Id of the archive to load
plugin - The plugin
Returns:
The Greetings card archive

findByTemplateIdAndYear

java.util.Collection<GreetingsCardArchive> findByTemplateIdAndYear(int nIdGreetingsCardTemplate,
                                                                   int nYear,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of greetings cards archives of a greetings card template

Parameters:
nIdGreetingsCardTemplate - The greetings card template identifier
nYear - Year of the archives. If the year is 0, then it is ignored
plugin - The plugin
Returns:
A Collection of greetings cards archives

findByYear

java.util.Collection<GreetingsCardArchive> findByYear(int year,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of greetings cards archives of a given year

Parameters:
findByYear - The year
plugin - The plugin
Returns:
A Collection of greetings cards archives

update

void update(GreetingsCardArchive greetingsCardArchive,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a greetings card archive

Parameters:
greetingsCardArchive - Greetings card archive to update
plugin - The plugin

remove

void remove(int nIdArchive,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a greetings card archive

Parameters:
nIdArchive - Id of the archive to remove
plugin - The plugin

removeAllArchives

void removeAllArchives(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every archive from the database

Parameters:
plugin - The plugin

removeByIdTemplate

void removeByIdTemplate(int nGreetingsCardTemplate,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every archive associated to a greetings card template

Parameters:
nGreetingsCardTemplate - Id of the template
plugin - The plugin

getYearList

java.util.Collection<java.lang.Integer> getYearList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of every year archived

Parameters:
plugin - The plugin
Returns:
A collection containing every year archived.


Copyright © 2012 Mairie de Paris. All Rights Reserved.