public class AppointmentDayDAO extends Object implements IAppointmentDayDAO
| Constructor and Description |
|---|
AppointmentDayDAO() |
| 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
|
List<AppointmentDay> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every day associated with a given form and not associated with any day
|
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
|
public void create(AppointmentDay day, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create in interface IAppointmentDayDAOday - The day to createplugin - The pluginpublic void update(AppointmentDay day, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IAppointmentDayDAOday - The day to createplugin - The pluginpublic void remove(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove in interface IAppointmentDayDAOnIdDay - The id of the day to removeplugin - The pluginpublic void removeByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeByIdForm in interface IAppointmentDayDAOnIdForm - The id of the formplugin - The pluginpublic void removeLonelyDays(Date dateMonday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeLonelyDays in interface IAppointmentDayDAOdateMonday - The date of daysplugin - The pluginpublic AppointmentDay findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IAppointmentDayDAOnKey - The appointmentDay primary keyplugin - The pluginpublic List<AppointmentDay> getDaysBetween(int nIdForm, Date dateMin, Date dateMax, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getDaysBetween in interface IAppointmentDayDAOnIdForm - The id of the formdateMin - The minimum datedateMax - The maximum dateplugin - The pluginpublic void updateDayFreePlaces(AppointmentDay day, boolean bIncrement, fr.paris.lutece.portal.service.plugin.Plugin plugin)
updateDayFreePlaces in interface IAppointmentDayDAOday - The day to updatebIncrement - True to increment the number of free places by 1, false to decrement itplugin - The pluginpublic List<AppointmentDay> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdForm in interface IAppointmentDayDAOnIdForm - the id of the formplugin - The pluginCopyright © 2017 City of Paris. All rights reserved.