|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.appointment.business.AppointmentHome
public final class AppointmentHome
This class provides instances management methods (create, find, ...) for Appointment objects
| Method Summary | |
|---|---|
static int |
countAppointmentsByIdForm(int nIdForm,
Date date)
Get the number of appointments associated with a given form and with a date after a given date |
static Appointment |
create(Appointment appointment)
Create an instance of the appointment class |
static Appointment |
findByPrimaryKey(int nKey)
Returns an instance of a appointment whose identifier is specified in parameter |
static int |
findIdAppointmentByIdResponse(int nIdResponse)
Find the id of the appointment associated with a given response |
static List<Integer> |
findListIdResponse(int nIdAppointment)
Get the list of id of responses associated with an appointment |
static List<fr.paris.lutece.plugins.genericattributes.business.Response> |
findListResponse(int nIdAppointment)
Get the list of responses associated with an appointment |
static List<Integer> |
getAppointmentIdByFilter(AppointmentFilter appointmentFilter)
Get the list of ids of appointments matching a given filter |
static List<Appointment> |
getAppointmentListByFilter(AppointmentFilter appointmentFilter)
Get the list of appointments matching a given filter |
static List<Appointment> |
getAppointmentListById(List<Integer> listIdAppointments)
Get a list of appointments from their ids |
static List<Appointment> |
getAppointmentListById(List<Integer> listIdAppointments,
String strOrderBy,
boolean bSortAsc)
Get a list of appointments from their ids |
static List<Appointment> |
getAppointmentsList()
Load the data of all the appointment objects and returns them in form of a collection |
static List<Appointment> |
getAppointmentsListByIdForm(int nIdForm)
Load the data of appointment objects associated with a given form and returns them in a collection |
static int |
getNbAppointmentByIdDay(Date dateAppointment,
int nIdForm)
Get the number of appointment of a given date and associated with a given form |
static void |
insertAppointmentResponse(int nIdAppointment,
int nIdResponse)
Associates a response to an appointment |
static void |
remove(int nAppointmentId)
Remove the appointment whose identifier is specified in parameter, and removed any associated response |
static void |
removeAppointmentResponse(int nIdAppointment)
Remove the association between an appointment and responses |
static void |
removeResponsesByIdEntry(int nIdEntry)
Remove every appointment responses associated with a given entry. |
static Appointment |
update(Appointment appointment)
Update of the appointment which is specified in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Appointment create(Appointment appointment)
appointment - The instance of the Appointment which contains the
informations to store
public static Appointment update(Appointment appointment)
appointment - The instance of the Appointment which contains the
data to store
public static void remove(int nAppointmentId)
nAppointmentId - The appointment Idpublic static Appointment findByPrimaryKey(int nKey)
nKey - The appointment primary key
public static List<Appointment> getAppointmentsList()
public static int countAppointmentsByIdForm(int nIdForm,
Date date)
nIdForm - The id of the formdate - The minimum date of appointments to consider
public static List<Appointment> getAppointmentsListByIdForm(int nIdForm)
nIdForm - the id of the form
public static List<Appointment> getAppointmentListByFilter(AppointmentFilter appointmentFilter)
appointmentFilter - The filter appointments must match
public static List<Integer> getAppointmentIdByFilter(AppointmentFilter appointmentFilter)
appointmentFilter - The filter appointments must match
public static List<Appointment> getAppointmentListById(List<Integer> listIdAppointments)
listIdAppointments - The list of ids of appointments to get
public static List<Appointment> getAppointmentListById(List<Integer> listIdAppointments,
String strOrderBy,
boolean bSortAsc)
listIdAppointments - The list of ids of appointments to getstrOrderBy - The name of the column to sort rowsbSortAsc - True to sort ascending, false otherwise
public static int getNbAppointmentByIdDay(Date dateAppointment,
int nIdForm)
dateAppointment - The date of appointments to countnIdForm - The id of the appointment form
public static void insertAppointmentResponse(int nIdAppointment,
int nIdResponse)
nIdAppointment - The id of the appointmentnIdResponse - The id of the responsepublic static List<Integer> findListIdResponse(int nIdAppointment)
nIdAppointment - the id of the appointment
public static List<fr.paris.lutece.plugins.genericattributes.business.Response> findListResponse(int nIdAppointment)
nIdAppointment - the id of the appointment
public static int findIdAppointmentByIdResponse(int nIdResponse)
nIdResponse - The id of the response
public static void removeAppointmentResponse(int nIdAppointment)
nIdAppointment - The id of the appointmentpublic static void removeResponsesByIdEntry(int nIdEntry)
nIdEntry - The id of the entry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||