|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.greetingscard.business.GreetingsCardArchiveDAO
public class GreetingsCardArchiveDAO
Constructor Summary | |
---|---|
GreetingsCardArchiveDAO()
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GreetingsCardArchiveDAO()
Method Detail |
---|
public void insert(GreetingsCardArchive greetingsCardArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IGreetingsCardArchiveDAO
greetingsCardArchive
- GreetingsCardarchive to inserplugin
- The pluginpublic java.util.Collection<GreetingsCardArchive> findByTemplateIdAndYear(int nIdGreetingsCardTemplate, int nYear, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByTemplateIdAndYear
in interface IGreetingsCardArchiveDAO
nIdGreetingsCardTemplate
- The greetings card template identifiernYear
- Year of the archives. If the year is 0, then it is ignoredplugin
- The plugin
public java.util.Collection<GreetingsCardArchive> findByYear(int year, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByYear
in interface IGreetingsCardArchiveDAO
plugin
- The plugin
public GreetingsCardArchive findById(int nIdArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findById
in interface IGreetingsCardArchiveDAO
nIdArchive
- Id of the archive to loadplugin
- The plugin
public void remove(int nIdArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove
in interface IGreetingsCardArchiveDAO
nIdArchive
- Id of the archive to removeplugin
- The pluginpublic void removeAllArchives(fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeAllArchives
in interface IGreetingsCardArchiveDAO
plugin
- The pluginpublic void update(GreetingsCardArchive greetingsCardArchive, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IGreetingsCardArchiveDAO
greetingsCardArchive
- Greetings card archive to updateplugin
- The pluginpublic void removeByIdTemplate(int nGreetingsCardTemplate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeByIdTemplate
in interface IGreetingsCardArchiveDAO
nGreetingsCardTemplate
- Id of the templateplugin
- The pluginpublic java.util.Collection<java.lang.Integer> getYearList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getYearList
in interface IGreetingsCardArchiveDAO
plugin
- The plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |