public final class AppointmentSlotHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
create(AppointmentSlot slot)
Create a new appointment slot
|
static void |
delete(int nIdSlot)
Remove an appointment slot from its id
|
static void |
deleteAllByIdForm(int nIdForm)
Remove appointment slots associated with a given form.
|
static void |
deleteByIdDay(int nIdDay)
Remove an appointment slot associated with a given day
|
static void |
deleteByIdForm(int nIdForm)
Remove appointment slots associated with a given form.
|
static void |
deleteByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek)
Delete every slots associated with a given form and a given day of week
|
static void |
deleteOldSlots(Date dateMonday)
Delete every slots that are associated with a day before a given day.
|
static List<AppointmentSlot> |
findByIdDay(int nIdDay)
Find every slots associated with a given day
|
static List<AppointmentSlot> |
findByIdDayWithFreePlaces(int nIdDay)
Get the list of slots associated with a given day, and compute for each
slot the number of free places
|
static List<AppointmentSlot> |
findByIdForm(int nIdForm)
Find every slots associated with a given form and not associated with any
day
|
static List<AppointmentSlot> |
findByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek)
Get the list of slots associated with a given form for a given day of
week.
|
static AppointmentSlot |
findByPrimaryKey(int nIdSlot)
Find a slot from its primary key
|
static AppointmentSlot |
findByPrimaryKeyWithFreePlace(int nIdSlot)
Find a slot from its primary key
|
static AppointmentSlot |
findByPrimaryKeyWithFreePlaces(int nIdSlot,
Date date)
Find a slot from its primary key
|
static List<AppointmentSlot> |
getSlotsUnavailable(int nIdDay,
int nIdForm)
Get appointments slot associated unavailable with a given day
|
static void |
update(AppointmentSlot slot)
Update an appointment slot
|
public static void create(AppointmentSlot slot)
slot - The appointment slot to createpublic static void update(AppointmentSlot slot)
slot - The appointment slot to updatepublic static void delete(int nIdSlot)
nIdSlot - The id of the slot to removepublic static void deleteByIdDay(int nIdDay)
nIdDay - The id of the day to remove slots frompublic static void deleteAllByIdForm(int nIdForm)
nIdForm - The id of the form to remove slots frompublic static void deleteByIdForm(int nIdForm)
nIdForm - The id of the form to remove slots frompublic static void deleteByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek)
nIdForm - The id of the formnDayOfWeek - The day of the weekpublic static void deleteOldSlots(Date dateMonday)
dateMonday - The date of the day to remove slotspublic static AppointmentSlot findByPrimaryKey(int nIdSlot)
nIdSlot - the id of the slot to removepublic static AppointmentSlot findByPrimaryKeyWithFreePlace(int nIdSlot)
nIdSlot - the id of the slot to removepublic static AppointmentSlot findByPrimaryKeyWithFreePlaces(int nIdSlot, Date date)
nIdSlot - the id of the slot to removedate - The date of the day of the slotpublic static List<AppointmentSlot> findByIdForm(int nIdForm)
nIdForm - the id of the formpublic static List<AppointmentSlot> findByIdDay(int nIdDay)
nIdDay - the id of the daypublic static List<AppointmentSlot> findByIdFormAndDayOfWeek(int nIdForm, int nDayOfWeek)
nIdForm - the if of the formnDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)public static List<AppointmentSlot> findByIdDayWithFreePlaces(int nIdDay)
nIdDay - The id of the daypublic static List<AppointmentSlot> getSlotsUnavailable(int nIdDay, int nIdForm)
nIdDay - The id of the day to remove slots fromCopyright © 2015 City of Paris. All rights reserved.