public final class AppointmentDayHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
create(AppointmentDay day)
Creates a new day in the database
|
static void |
decrementDayFreePlaces(int nIdDay)
Decrement by 1 the number of free places of an appointment
|
static List<AppointmentDay> |
findByIdForm(int nIdForm)
Find every day associated with a given form.
|
static AppointmentDay |
findByPrimaryKey(int nIdDay)
Returns an instance of a day whose identifier is specified in
parameter
|
static List<AppointmentDay> |
getDaysBetween(int nIdForm,
Date dateMin,
Date dateMax)
Get the list of days associated with a form and which date are between 2
given dates.
|
static void |
incrementDayFreePlaces(int nIdDay)
Increment by 1 the number of free places of an appointment
|
static void |
remove(int nIdDay)
Remove a day from the database
|
static void |
removeByIdForm(int nIdForm)
Remove days from the database that are associated with a given form
|
static void |
removeLonelyDays(Date dateMonday)
Delete days which date is before a given date and that are not associated
with any slot
|
static void |
resetDayFreePlaces(int nIdDay)
Reset the number of free places of a day
|
static void |
update(AppointmentDay day)
Update a day
|
public static void create(AppointmentDay day)
day - The day to createpublic static void update(AppointmentDay day)
day - The day to createpublic static void remove(int nIdDay)
nIdDay - The id of the day to removepublic static void removeByIdForm(int nIdForm)
nIdForm - The id of the formpublic static void removeLonelyDays(Date dateMonday)
dateMonday - The date of dayspublic static AppointmentDay findByPrimaryKey(int nIdDay)
nIdDay - The appointmentDay primary keypublic static List<AppointmentDay> getDaysBetween(int nIdForm, Date dateMin, Date dateMax)
nIdForm - The id of the formdateMin - The minimum datedateMax - The maximum datepublic static void incrementDayFreePlaces(int nIdDay)
nIdDay - The id of the day to updatepublic static void decrementDayFreePlaces(int nIdDay)
nIdDay - The id of the day to updatepublic static void resetDayFreePlaces(int nIdDay)
nIdDay - The id of the daypublic static List<AppointmentDay> findByIdForm(int nIdForm)
nIdForm - the id of the formCopyright © 2015 City of Paris. All rights reserved.