fr.paris.lutece.plugins.calendar.business
Class CalendarDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.calendar.business.CalendarDAO
All Implemented Interfaces:
ICalendarDAO

public class CalendarDAO
extends java.lang.Object
implements ICalendarDAO

Author:
nguyenme

Constructor Summary
CalendarDAO()
           
 
Method Summary
 void deleteEvent(int nProjectId, java.lang.String strDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete an Event from the table calendar_events
 void deleteProject(int nProjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a Project from the table calendar_projects
 void insertEvent(int nProjectId, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new event in the table calendar_events.
 void insertProject(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new project in the table calendar_projects.
 SimpleEvent loadEvent(int nProjectId, java.lang.String strEventDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of SimpleEvent from the table
 AgendaResource loadProject(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of AgendaResource 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 nProjectId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the list of Events
 void storeEvent(int nProjectId, java.lang.String strDate, SimpleEvent event, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the event in the table calendar_event
 void storeProject(AgendaResource agenda, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the project in the table calendar_project
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarDAO

public CalendarDAO()
Method Detail

insertProject

public void insertProject(AgendaResource agenda,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new project in the table calendar_projects.

Specified by:
insertProject in interface ICalendarDAO
Parameters:
agenda - The AgendaResource object
plugin - The Plugin using this data access service

storeProject

public void storeProject(AgendaResource agenda,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the project in the table calendar_project

Specified by:
storeProject in interface ICalendarDAO
Parameters:
agenda - The reference of AgendaResource
plugin - The Plugin using this data access service

deleteProject

public void deleteProject(int nProjectId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a Project from the table calendar_projects

Specified by:
deleteProject in interface ICalendarDAO
Parameters:
nProjectId - The Project Id
plugin - The Plugin using this data access service

insertEvent

public void insertEvent(int nProjectId,
                        SimpleEvent event,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new event in the table calendar_events.

Specified by:
insertEvent in interface ICalendarDAO
Parameters:
agenda - The SimpleEvent object
plugin - The Plugin using this data access service

storeEvent

public void storeEvent(int nProjectId,
                       java.lang.String strDate,
                       SimpleEvent event,
                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the event in the table calendar_event

Specified by:
storeEvent in interface ICalendarDAO
Parameters:
event - The reference of SimpleEvent
nProjectId - The identifier of the project
strDate - The old event date
plugin - The Plugin using this data access service

deleteEvent

public void deleteEvent(int nProjectId,
                        java.lang.String strDate,
                        fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete an Event from the table calendar_events

Specified by:
deleteEvent in interface ICalendarDAO
Parameters:
nProjectId - The Project Id
plugin - The Plugin using this data access service

loadProject

public AgendaResource loadProject(int nId,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of AgendaResource from the table

Specified by:
loadProject in interface ICalendarDAO
Parameters:
nId - The identifier of AgendaResource
plugin - The plugin
Returns:
the instance of the AgendaResource
Throws:
AppException

selectAgendaResourceList

public java.util.List<AgendaResource> selectAgendaResourceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of AgendaResources

Specified by:
selectAgendaResourceList in interface ICalendarDAO
Parameters:
plugin - The plugin
Returns:
The Collection of the AgendaResources

loadEvent

public SimpleEvent loadEvent(int nProjectId,
                             java.lang.String strEventDate,
                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of SimpleEvent from the table

Specified by:
loadEvent in interface ICalendarDAO
Parameters:
nId - The identifier of SimpleEvent
plugin - The plugin
Returns:
the instance of the SimpleEvent
Throws:
AppException

selectEventsList

public java.util.List<SimpleEvent> selectEventsList(int nProjectId,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of Events

Specified by:
selectEventsList in interface ICalendarDAO
Parameters:
plugin - The plugin
nProjectId - The identifier of the project
Returns:
The Collection of the Events


Copyright © 2007 Mairie de Paris. All Rights Reserved.