|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.newsletter.business.NewsLetterTemplateDAO
public final class NewsLetterTemplateDAO
This class provides Data Access methods for NewsLetter's templates objects
| Constructor Summary | |
|---|---|
NewsLetterTemplateDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nNewsLetterTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a record from the table |
void |
insert(NewsLetterTemplate newsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
NewsLetterTemplate |
load(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the data of the newsletter's template from the table |
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Calculate a new primary key to add a new NewsletterTemplate |
fr.paris.lutece.util.ReferenceList |
selectTemplatesByRef(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the list of newsletter templates as a ReferenceList |
java.util.List<NewsLetterTemplate> |
selectTemplatesCollectionByType(int nType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of templates depending on the given type |
java.util.Collection<NewsLetterTemplate> |
selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates |
fr.paris.lutece.util.ReferenceList |
selectTemplatesListByType(int nType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the list of all templates |
void |
store(NewsLetterTemplate newsLetterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a given record in the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewsLetterTemplateDAO()
| Method Detail |
|---|
public java.util.Collection<NewsLetterTemplate> selectTemplatesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesList in interface INewsLetterTemplateDAOplugin - The plugin
public fr.paris.lutece.util.ReferenceList selectTemplatesListByType(int nType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesListByType in interface INewsLetterTemplateDAOnType - the type of the templates to listplugin - The plugin
public java.util.List<NewsLetterTemplate> selectTemplatesCollectionByType(int nType,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesCollectionByType in interface INewsLetterTemplateDAOnType - the type of the templates to listplugin - The plugin
public void insert(NewsLetterTemplate newsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface INewsLetterTemplateDAOnewsletter - The Instance of the object NewsLetterTemplateplugin - the plugin
public NewsLetterTemplate load(int nTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface INewsLetterTemplateDAOnTemplateId - the template identifierplugin - the plugin
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - the plugin
public void store(NewsLetterTemplate newsLetterTemplate,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface INewsLetterTemplateDAOnewsLetterTemplate - The Instance of the object NewsLetterTemplateplugin - the plugin
public void delete(int nNewsLetterTemplateId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface INewsLetterTemplateDAOnNewsLetterTemplateId - the template identifierplugin - the Pluginpublic fr.paris.lutece.util.ReferenceList selectTemplatesByRef(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectTemplatesByRef in interface INewsLetterTemplateDAOplugin - The Plugin using this data access service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||