|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.calendar.business.CalendarDAO
public class CalendarDAO
This DAO class used to fetch the calendars in the database
Constructor Summary | |
---|---|
CalendarDAO()
|
Method Summary | |
---|---|
void |
deleteAgenda(int nAgendaId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an agenda from the table calendar_agendas |
void |
deleteEvent(int nAgendaId,
int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events |
void |
insertAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new agenda in the table calendar_agendas. |
void |
insertEvent(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new event in the table calendar_events. |
AgendaResource |
loadAgenda(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of AgendaResource from the table |
SimpleEvent |
loadEvent(int nEventId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table |
java.util.List<AgendaResource> |
selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources |
java.util.List<SimpleEvent> |
selectEventsList(int nAgendaId,
int nSortEvents,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events |
void |
storeAgenda(AgendaResource agenda,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the agenda in the table calendar_agendas |
void |
storeEvent(int nAgendaId,
SimpleEvent event,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CalendarDAO()
Method Detail |
---|
public void insertAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertAgenda
in interface ICalendarDAO
agenda
- The AgendaResource objectplugin
- The Plugin using this data access servicepublic void storeAgenda(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeAgenda
in interface ICalendarDAO
agenda
- The reference of AgendaResourceplugin
- The Plugin using this data access servicepublic void deleteAgenda(int nAgendaId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAgenda
in interface ICalendarDAO
nAgendaId
- The Agenda Idplugin
- The Plugin using this data access servicepublic void insertEvent(int nAgendaId, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertEvent
in interface ICalendarDAO
nAgendaId
- The agenda idevent
- The event to be insertedplugin
- The Plugin using this data access servicepublic void storeEvent(int nAgendaId, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
storeEvent
in interface ICalendarDAO
event
- The reference of SimpleEventnAgendaId
- The identifier of the agendaplugin
- The Plugin using this data access servicepublic void deleteEvent(int nAgendaId, int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteEvent
in interface ICalendarDAO
nEventId
- The id of the eventnAgendaId
- The agenda Idplugin
- The Plugin using this data access servicepublic AgendaResource loadAgenda(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadAgenda
in interface ICalendarDAO
nId
- The identifier of AgendaResourceplugin
- The plugin
public java.util.List<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAgendaResourceList
in interface ICalendarDAO
plugin
- The plugin
public SimpleEvent loadEvent(int nEventId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
loadEvent
in interface ICalendarDAO
nEventId
- The id of the eventplugin
- The plugin
public java.util.List<SimpleEvent> selectEventsList(int nAgendaId, int nSortEvents, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectEventsList
in interface ICalendarDAO
nSortEvents
- An integer used for sortingplugin
- The pluginnAgendaId
- The identifier of the agenda
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |