|
||||||||||
| 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.AppointmentDayHome
public final class AppointmentDayHome
This class provides instances management methods (create, find, ...) for AppointmentDay objects
| Method Summary | |
|---|---|
static void |
create(AppointmentDay day)
Creates a new day in the database |
static AppointmentDay |
findByPrimaryKey(int nIdDay)
Returns an instance of a day whose identifier is specified in parameter |
static List<AppointmentDay> |
getAppointmentDayListByIdForm(int nIdForm)
Get the list of days associated with a form. |
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 |
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 |
update(AppointmentDay day)
Update a day |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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 key
public static List<AppointmentDay> getAppointmentDayListByIdForm(int nIdForm)
nIdForm - The id of the form
public static List<AppointmentDay> getDaysBetween(int nIdForm,
Date dateMin,
Date dateMax)
nIdForm - The id of the formdateMin - The minimum datedateMax - The maximum date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||