fr.paris.lutece.plugins.appointment.business.calendar
Interface IAppointmentDayDAO

All Known Implementing Classes:
AppointmentDayDAO

public interface IAppointmentDayDAO

Interface of DAO for days


Method Summary
 void create(AppointmentDay day, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creates a new day in the database
 AppointmentDay findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a day whose identifier is specified in parameter
 List<AppointmentDay> getAppointmentDayListByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of days associated with a form.
 List<AppointmentDay> getDaysBetween(int nIdForm, Date dateMin, Date dateMax, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of days associated with a form and which date are between 2 given dates.
 void remove(int nIdDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove a day from the database
 void removeByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove days from the database that are associated with a given form
 void removeLonelyDays(Date dateMonday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete days which date is before a given date and that are not associated with any slot
 void update(AppointmentDay day, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update a day
 

Method Detail

create

void create(AppointmentDay day,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creates a new day in the database

Parameters:
day - The day to create
plugin - The plugin

update

void update(AppointmentDay day,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update a day

Parameters:
day - The day to create
plugin - The plugin

remove

void remove(int nIdDay,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a day from the database

Parameters:
nIdDay - The id of the day to remove
plugin - The plugin

removeByIdForm

void removeByIdForm(int nIdForm,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove days from the database that are associated with a given form

Parameters:
nIdForm - The id of the form
plugin - The plugin

removeLonelyDays

void removeLonelyDays(Date dateMonday,
                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete days which date is before a given date and that are not associated with any slot

Parameters:
dateMonday - The date of days
plugin - The plugin

findByPrimaryKey

AppointmentDay findByPrimaryKey(int nKey,
                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a day whose identifier is specified in parameter

Parameters:
nKey - The appointmentDay primary key
plugin - The plugin
Returns:
an instance of AppointmentDay

getAppointmentDayListByIdForm

List<AppointmentDay> getAppointmentDayListByIdForm(int nIdForm,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of days associated with a form.

Parameters:
nIdForm - The id of the form
plugin - The plugin
Returns:
The list of days associated with the given form

getDaysBetween

List<AppointmentDay> getDaysBetween(int nIdForm,
                                    Date dateMin,
                                    Date dateMax,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of days associated with a form and which date are between 2 given dates.

Parameters:
nIdForm - The id of the form
dateMin - The minimum date
dateMax - The maximum date
plugin - The plugin
Returns:
The list of days


Copyright © 2014 Mairie de Paris. All Rights Reserved.