public final class AppointmentHome extends Object
| Modifier and Type | Method and Description |
|---|---|
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 void |
update(Appointment appointment)
Update of the appointment which is specified in parameter
|
public static Appointment create(Appointment appointment)
appointment - The instance of the Appointment which contains the informations to storepublic static void update(Appointment appointment)
appointment - The instance of the Appointment which contains the data to storepublic static void remove(int nAppointmentId)
nAppointmentId - The appointment Idpublic static Appointment findByPrimaryKey(int nKey)
nKey - The appointment primary keypublic static List<Appointment> getAppointmentsList()
public static int countAppointmentsByIdForm(int nIdForm,
Date date)
nIdForm - The id of the formdate - The minimum date of appointments to considerpublic static List<Appointment> getAppointmentsListByIdForm(int nIdForm)
nIdForm - the id of the formpublic static List<Appointment> getAppointmentListByFilter(AppointmentFilter appointmentFilter)
appointmentFilter - The filter appointments must matchpublic static List<Integer> getAppointmentIdByFilter(AppointmentFilter appointmentFilter)
appointmentFilter - The filter appointments must matchpublic static List<Appointment> getAppointmentListById(List<Integer> listIdAppointments)
listIdAppointments - The list of ids of appointments to getpublic 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 otherwisepublic static int getNbAppointmentByIdDay(Date dateAppointment, int nIdForm)
dateAppointment - The date of appointments to countnIdForm - The id of the appointment formpublic 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 appointmentpublic static List<fr.paris.lutece.plugins.genericattributes.business.Response> findListResponse(int nIdAppointment)
nIdAppointment - the id of the appointmentpublic static int findIdAppointmentByIdResponse(int nIdResponse)
nIdResponse - The id of the responsepublic static void removeAppointmentResponse(int nIdAppointment)
nIdAppointment - The id of the appointmentpublic static void removeResponsesByIdEntry(int nIdEntry)
nIdEntry - The id of the entryCopyright © 2017 City of Paris. All rights reserved.