public interface IAppointmentDayDAO
| Modifier and Type | Method and Description |
|---|---|
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> |
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
|
void |
updateDayFreePlaces(AppointmentDay day,
boolean bIncrement,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Decrement or increment by 1 the number of free places of an appointment
|
void create(AppointmentDay day, fr.paris.lutece.portal.service.plugin.Plugin plugin)
day - The day to createplugin - The pluginvoid update(AppointmentDay day, fr.paris.lutece.portal.service.plugin.Plugin plugin)
day - The day to createplugin - The pluginvoid remove(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdDay - The id of the day to removeplugin - The pluginvoid removeByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm - The id of the formplugin - The pluginvoid removeLonelyDays(Date dateMonday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
dateMonday - The date of daysplugin - The pluginAppointmentDay findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nKey - The appointmentDay primary keyplugin - The pluginList<AppointmentDay> getDaysBetween(int nIdForm, Date dateMin, Date dateMax, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm - The id of the formdateMin - The minimum datedateMax - The maximum dateplugin - The pluginvoid updateDayFreePlaces(AppointmentDay day, boolean bIncrement, fr.paris.lutece.portal.service.plugin.Plugin plugin)
day - The day to updatebIncrement - True to increment the number of free places by 1, false
to decrement itplugin - The pluginCopyright © 2015 Mairie de Paris. All rights reserved.