public class AppointmentSlotDAO extends Object implements IAppointmentSlotDAO
| Constructor and Description |
|---|
AppointmentSlotDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
create(AppointmentSlot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new appointment slot
|
void |
delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment slot from its id
|
void |
deleteAllByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove appointment slots associated with a given form.
|
void |
deleteByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment slot associated with a given day
|
void |
deleteByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove appointment slots associated with a given form.
|
void |
deleteByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete every slots associated with a given form and a given day of week
|
void |
deleteOldSlots(Date dateMonday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete every slots that are associated with a day before a given day.
|
List<AppointmentSlot> |
findByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every slots associated with a given day
|
List<AppointmentSlot> |
findByIdDayWithFreePlaces(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given day, and compute for each
slot the number of free places
|
List<AppointmentSlot> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every slots associated with a given form and not associated with any
day
|
List<AppointmentSlot> |
findByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given form for a given day of
week.
|
AppointmentSlot |
findByPrimaryKey(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a slot from its primary key
|
AppointmentSlot |
findByPrimaryKeyWithFreePlaces(int nIdSlot,
Date date,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a slot from its primary key.
|
List<AppointmentSlot> |
getSlotsUnavailable(int nIdDay,
int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
void |
setDefaultSlotListSize(int nDefaultSlotListSize)
Set the default size of slot lists
|
void |
update(AppointmentSlot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an appointment slot
|
public void create(AppointmentSlot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create in interface IAppointmentSlotDAOslot - The appointment slot to createplugin - The pluginpublic void update(AppointmentSlot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IAppointmentSlotDAOslot - The appointment slot to updateplugin - The pluginpublic void delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAppointmentSlotDAOnIdSlot - The id of the slot to removeplugin - The pluginpublic void deleteAllByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllByIdForm in interface IAppointmentSlotDAOnIdForm - The id of the form to remove slots fromplugin - The pluginpublic void deleteByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdDay in interface IAppointmentSlotDAOnIdDay - The id of the day to remove slots fromplugin - The pluginpublic void deleteByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdForm in interface IAppointmentSlotDAOnIdForm - The id of the form to remove slots fromplugin - The pluginpublic void deleteByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdFormAndDayOfWeek in interface IAppointmentSlotDAOnIdForm - The id of the formnDayOfWeek - The day of the weekplugin - The pluginpublic void deleteOldSlots(Date dateMonday, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteOldSlots in interface IAppointmentSlotDAOdateMonday - The date of the day to remove slotsplugin - The pluginpublic AppointmentSlot findByPrimaryKey(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IAppointmentSlotDAOnIdSlot - the id of the slot to removeplugin - The pluginpublic AppointmentSlot findByPrimaryKeyWithFreePlaces(int nIdSlot, Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKeyWithFreePlaces in interface IAppointmentSlotDAOnIdSlot - The id of the slotdate - The date of the day to check for placesplugin - The pluginpublic List<AppointmentSlot> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdForm in interface IAppointmentSlotDAOnIdForm - the id of the formplugin - The pluginpublic List<AppointmentSlot> findByIdFormAndDayOfWeek(int nIdForm, int nDayOfWeek, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdFormAndDayOfWeek in interface IAppointmentSlotDAOnIdForm - the if of the formnDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)plugin - The pluginpublic List<AppointmentSlot> findByIdDay(int nIdDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdDay in interface IAppointmentSlotDAOnIdDay - the id of the dayplugin - The pluginpublic List<AppointmentSlot> findByIdDayWithFreePlaces(int nIdDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdDayWithFreePlaces in interface IAppointmentSlotDAOnIdDay - The id of the dayplugin - The pluginpublic void setDefaultSlotListSize(int nDefaultSlotListSize)
nDefaultSlotListSize - the default size of slot listpublic List<AppointmentSlot> getSlotsUnavailable(int nIdDay, int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getSlotsUnavailable in interface IAppointmentSlotDAOstrToppings - plugin - Copyright © 2015 Mairie de Paris. All rights reserved.