|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.appointment.business.calendar.AppointmentSlotHome
public final class AppointmentSlotHome
Home for appointment slots
| Method Summary | |
|---|---|
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 List<AppointmentSlot> |
findByIdFormWithFreePlaces(int nIdForm,
int nDayOfWeek,
Date dateDay)
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 |
findByPrimaryKeyWithFreePlaces(int nIdSlot,
Date date)
Find a slot from its primary key |
static void |
update(AppointmentSlot slot)
Update an appointment slot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 from
public 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 remove
public static AppointmentSlot findByPrimaryKeyWithFreePlaces(int nIdSlot,
Date date)
nIdSlot - the id of the slot to removedate - The date of the day of the slot
public static List<AppointmentSlot> findByIdForm(int nIdForm)
nIdForm - the id of the form
public static List<AppointmentSlot> findByIdDay(int nIdDay)
nIdDay - the id of the day
public 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 day
public static List<AppointmentSlot> findByIdFormWithFreePlaces(int nIdForm,
int nDayOfWeek,
Date dateDay)
nIdForm - the if of the formnDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)dateDay - The date of the day
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||