public final class AppointmentDAO extends Object implements IAppointmentDAO
| Constructor and Description |
|---|
AppointmentDAO() |
| Modifier and Type | Method and Description |
|---|---|
int |
countAppointmentsByIdForm(int nIdForm,
Date date,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of appointments associated with a given form and with a
date after a given date
|
void |
delete(int nAppointmentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
deleteAppointmentResponse(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between an appointment and responses
|
int |
findIdAppointmentByIdResponse(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the id of the appointment associated with a given response
|
List<Integer> |
findListIdResponse(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of responses associated with an appointment
|
int |
getNbAppointmentByIdDay(Date dateAppointment,
int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of appointment of a given date and associated with a given
form
|
void |
insert(Appointment appointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
void |
insertAppointmentResponse(int nIdAppointment,
int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associates a response to an appointment
|
Appointment |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
void |
removeAppointmentResponsesByIdResponse(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment responses from the id of a response.
|
List<Integer> |
selectAppointmentIdByFilter(AppointmentFilter appointmentFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of ids of appointments matching a given filter
|
List<Appointment> |
selectAppointmentListByFilter(AppointmentFilter appointmentFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of appointments matching a given filter
|
List<Appointment> |
selectAppointmentListById(List<Integer> listIdAppointments,
String strOrderBy,
boolean bSortAsc,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a list of appointments from their ids
|
List<Appointment> |
selectAppointmentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the appointment objects and returns them as a
collection
|
List<Appointment> |
selectAppointmentsListByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of appointment objects associated with a given form and
returns them in a collection
|
void |
store(Appointment appointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin - The Pluginpublic void insert(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IAppointmentDAOappointment - instance of the Appointment object to insertplugin - the Pluginpublic Appointment load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IAppointmentDAOnKey - The identifier of the appointmentplugin - the Pluginpublic void delete(int nAppointmentId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAppointmentDAOnAppointmentId - int identifier of the Appointment to deleteplugin - the Pluginpublic void store(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IAppointmentDAOappointment - the reference of the Appointmentplugin - the Pluginpublic List<Appointment> selectAppointmentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAppointmentsList in interface IAppointmentDAOplugin - the Pluginpublic List<Appointment> selectAppointmentsListByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAppointmentsListByIdForm in interface IAppointmentDAOnIdForm - the id of the formplugin - the Pluginpublic List<Appointment> selectAppointmentListByFilter(AppointmentFilter appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAppointmentListByFilter in interface IAppointmentDAOappointmentFilter - The filter appointments must matchplugin - The pluginpublic List<Integer> selectAppointmentIdByFilter(AppointmentFilter appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAppointmentIdByFilter in interface IAppointmentDAOappointmentFilter - The filter appointments must matchplugin - The pluginpublic List<Appointment> selectAppointmentListById(List<Integer> listIdAppointments, String strOrderBy, boolean bSortAsc, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectAppointmentListById in interface IAppointmentDAOlistIdAppointments - The list of ids of appointments to getstrOrderBy - The name of the column to sort rowsbSortAsc - True to sort ascending, false otherwiseplugin - The pluginpublic int getNbAppointmentByIdDay(Date dateAppointment, int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getNbAppointmentByIdDay in interface IAppointmentDAOdateAppointment - The date of appointments to countnIdForm - The id of the appointment formplugin - The pluginpublic void insertAppointmentResponse(int nIdAppointment,
int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertAppointmentResponse in interface IAppointmentDAOnIdAppointment - The id of the appointmentnIdResponse - The id of the responseplugin - The pluginpublic List<Integer> findListIdResponse(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findListIdResponse in interface IAppointmentDAOnIdAppointment - the id of the appointmentplugin - the pluginpublic void deleteAppointmentResponse(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAppointmentResponse in interface IAppointmentDAOnIdAppointment - The id of the appointmentplugin - The pluginpublic void removeAppointmentResponsesByIdResponse(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeAppointmentResponsesByIdResponse in interface IAppointmentDAOnIdResponse - The id of the responseplugin - The pluginpublic int countAppointmentsByIdForm(int nIdForm,
Date date,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
countAppointmentsByIdForm in interface IAppointmentDAOnIdForm - The id of the formdate - The minimum date of appointments to considerplugin - The pluginpublic int findIdAppointmentByIdResponse(int nIdResponse,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findIdAppointmentByIdResponse in interface IAppointmentDAOnIdResponse - The id of the responseplugin - The pluginCopyright © 2016 City of Paris. All rights reserved.