|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface INewsletterTopicDAO
Interface for NewsletterTopic DAO
| Method Summary | |
|---|---|
void |
fillBlankInOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Fill a blank in the order of topics of a newsletter. |
List<NewsletterTopic> |
findAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of NewsletterTopic associated with a given
newsletter. |
List<NewsletterTopic> |
findByNewsletterIdAndOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of newsletter topics associated to a given newsletter and with the given order in a section |
NewsletterTopic |
findByPrimaryKey(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a NewsletterTopic by its primary key from the database |
int |
getLastOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the highest order for a given newsletter and a given section |
int |
getNewOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the next available order value for topics of a newsletter |
void |
insert(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new NewsletterTopic into the database |
void |
remove(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a NewsletterTopic from the database |
void |
removeAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove every topic associated with a given newsletter |
void |
update(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a NewsletterTopic in the database |
void |
updateNewsletterTopicOrder(int nIdNewsletterTopic,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the order of a newsletter topic |
| Method Detail |
|---|
NewsletterTopic findByPrimaryKey(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic by its primary key from the database
nId - The id of the NewsletterTopic to getplugin - The plugin
NewsletterTopic with the given id, or null if no
NewsletterTopic has this id.
void insert(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic into the database
newsletterTopic - The NewsletterTopic to insert.plugin - The plugin
void update(NewsletterTopic newsletterTopic,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic in the database
newsletterTopic - The new values of the NewsletterTopic.plugin - The plugin
void remove(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic from the database
nId - The id of the NewsletterTopic to delete.plugin - The plugin
List<NewsletterTopic> findAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
NewsletterTopic associated with a given
newsletter.
nIdNewsletter - The id of the newsletterplugin - The plugin
NewsletterTopic found.
void updateNewsletterTopicOrder(int nIdNewsletterTopic,
int nNewOrder,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletterTopic - The id of the newsletter topic to updatenNewOrder - The new order of the topicplugin - The plugin
List<NewsletterTopic> findByNewsletterIdAndOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletter the topic must be
associated with.nOrder - The order the topics must havenSection - The section of the Topicplugin - The plugin
int getNewOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletternSection - The section of the newsletterplugin - The plugin
int getLastOrder(int nIdNewsletter,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletternSection - The id of the sectionplugin - The plugin
void fillBlankInOrder(int nIdNewsletter,
int nOrder,
int nSection,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The newsletter to update the topics ofnOrder - The order with no topicnSection - The section of topics to updateplugin - the plugin
void removeAllByIdNewsletter(int nIdNewsletter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdNewsletter - The id of the newsletter to remove the topics of.plugin - The plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||