|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.calendar.business.CalendarSubscriberDAO
public final class CalendarSubscriberDAO
This class provides Data Access methods for subscriber objects
| Constructor Summary | |
|---|---|
CalendarSubscriberDAO()
|
|
| Method Summary | |
|---|---|
void |
delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table |
void |
deleteSubscriber(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the subscriber's inscription to a calendar |
void |
insert(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table. |
void |
insertSubscriber(int nCalendarId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new subscriber for a calendar |
boolean |
isRegistered(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
check if the subscriber is not yet registered to a calendar |
CalendarSubscriber |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads data from a subscriber's identifier |
java.util.List<CalendarSubscriber> |
selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Loads the list of subscribers |
CalendarSubscriber |
selectByEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Finds a subscriber from his email |
int |
selectSubscriberNumber(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns, for a subscriber, the number of his subscriptions |
java.util.List<CalendarSubscriber> |
selectSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a calendar |
java.util.List<CalendarSubscriber> |
selectSubscribers(int nCalendarId,
java.lang.String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers for a Calendar |
java.util.List<CalendarSubscriber> |
selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
loads the list of subscribers |
void |
store(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the 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 CalendarSubscriberDAO()
| Method Detail |
|---|
public void insert(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface ICalendarSubscriberDAOsubscriber - the object to be insertedplugin - the Plugin
public void delete(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface ICalendarSubscriberDAOnId - the subscriber's identifierplugin - the Plugin
public CalendarSubscriber load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface ICalendarSubscriberDAOnId - the subscriber's identifierplugin - the Plugin
public void store(CalendarSubscriber subscriber,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface ICalendarSubscriberDAOsubscriber - the instance of subscriber class to be updatedplugin - the Pluginpublic java.util.List<CalendarSubscriber> selectAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAll in interface ICalendarSubscriberDAOplugin - the Plugin
public CalendarSubscriber selectByEmail(java.lang.String strEmail,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectByEmail in interface ICalendarSubscriberDAOstrEmail - the subscriber's emailplugin - the Plugin
public java.util.List<CalendarSubscriber> selectSubscribers(int nCalendarId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribers in interface ICalendarSubscriberDAOnCalendarId - the Calendar identifierplugin - the Plugin
public java.util.List<CalendarSubscriber> selectSubscribers(int nCalendarId,
java.lang.String strSearchString,
int nBegin,
int nEnd,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribers in interface ICalendarSubscriberDAOnCalendarId - the Calendar 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 Plugin
public int selectSubscriberNumber(int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscriberNumber in interface ICalendarSubscriberDAOnSubscriberId - the subscriber's identifierplugin - the Plugin
public java.util.List<CalendarSubscriber> selectSubscribersList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectSubscribersList in interface ICalendarSubscriberDAOplugin - the Plugin
public void deleteSubscriber(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteSubscriber in interface ICalendarSubscriberDAOnCalendarId - the calendar identifiernSubscriberId - the subscriber identifierplugin - the Plugin
public void insertSubscriber(int nCalendarId,
int nSubscriberId,
java.sql.Timestamp tToday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertSubscriber in interface ICalendarSubscriberDAOnCalendarId - the calendar identifiernSubscriberId - the subscriber identifiertToday - The dayplugin - the Plugin
public boolean isRegistered(int nCalendarId,
int nSubscriberId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nCalendarId - the calendar identifiernSubscriberId - the subscriber identifierplugin - the Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||