public final class SubscriberDAO extends Object implements ISubscriberDAO
| Constructor and Description |
|---|
SubscriberDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(Subscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
Subscriber |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads data from a subscriber's identifier
|
Collection<Subscriber> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the list of subscribers
|
Subscriber |
selectByEmail(String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds a subscriber from his email
|
int |
selectNewsLetters(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns, for a subscriber, the number of his subscriptions
|
Collection<Subscriber> |
selectSubscribers(int nNewsLetterId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter
|
Collection<Subscriber> |
selectSubscribers(int nNewsLetterId,
String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter
|
Collection<Subscriber> |
selectSubscribersForSending(int nNewsLetterId,
String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a newsletter
|
Collection<Subscriber> |
selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers
|
public void insert(Subscriber subscriber, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ISubscriberDAOsubscriber - the object to be insertedplugin - the Pluginpublic void delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ISubscriberDAOnId - the subscriber's identifierplugin - the Pluginpublic Subscriber load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ISubscriberDAOnId - the subscriber's identifierplugin - the Pluginpublic Collection<Subscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface ISubscriberDAOplugin - the Pluginpublic Subscriber selectByEmail(String strEmail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByEmail in interface ISubscriberDAOstrEmail - the subscriber's emailplugin - the Pluginpublic Collection<Subscriber> selectSubscribers(int nNewsLetterId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribers in interface ISubscriberDAOnNewsLetterId - the newsletter identifierplugin - the Pluginpublic Collection<Subscriber> selectSubscribers(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribers in interface ISubscriberDAOnNewsLetterId - the newsletter identifierstrSearchString - gets all the subscribers if null or empty and gets the subscribers whith an email containing this string otherwisenBegin - the rank of the first subscriber to returnnEnd - the maximum number of suscribers to returnplugin - the Pluginpublic Collection<Subscriber> selectSubscribersForSending(int nNewsLetterId, String strSearchString, int nBegin, int nEnd, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribersForSending in interface ISubscriberDAOnNewsLetterId - the newsletter identifierstrSearchString - gets all the subscribers if null or empty and gets the subscribers whith an email containing this string otherwisenBegin - the rank of the first subscriber to returnnEnd - the maximum number of suscribers to returnplugin - the Pluginpublic int selectNewsLetters(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectNewsLetters in interface ISubscriberDAOnSubscriberId - the subscriber's identifierplugin - the Pluginpublic Collection<Subscriber> selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribersList in interface ISubscriberDAOplugin - the PluginCopyright © 2023 City of Paris. All rights reserved.