public final class AppointmentDAO extends UtilDAO implements IAppointmentDAO
BEAN_NAME
Constructor and Description |
---|
AppointmentDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<Appointment> |
findByFilter(AppointmentFilterDTO appointmentFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of appointments matching the filter
|
List<Appointment> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a list of all the appointment of a form
|
List<Appointment> |
findByIdSlot(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the appointments of a slot
|
List<Appointment> |
findByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the appointments of a user
|
Appointment |
findByReference(String strReference,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the appointment with its reference
|
void |
insert(Appointment appointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table
|
Appointment |
select(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(Appointment appointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
getNewPrimaryKey
public void insert(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
insert
in interface IAppointmentDAO
appointment
- instance of the appointment object to insertplugin
- the pluginpublic void update(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
update
in interface IAppointmentDAO
appointment
- the reference of the appointmentplugin
- the pluginpublic void delete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
delete
in interface IAppointmentDAO
nIdAppointment
- int identifier of the appointment to deleteplugin
- the pluginpublic Appointment select(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
select
in interface IAppointmentDAO
nIdAppointment
- the identifier of the appointmentplugin
- the pluginpublic List<Appointment> findByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
findByIdUser
in interface IAppointmentDAO
nIdUser
- the User Idplugin
- the Pluginpublic List<Appointment> findByIdSlot(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
findByIdSlot
in interface IAppointmentDAO
nIdSlot
- the Slot Idplugin
- the pluginpublic Appointment findByReference(String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
findByReference
in interface IAppointmentDAO
strReference
- the appointment referenceplugin
- the pluginpublic List<Appointment> findByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
findByFilter
in interface IAppointmentDAO
appointmentFilter
- the filterplugin
- the pluginpublic List<Appointment> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IAppointmentDAO
findByIdForm
in interface IAppointmentDAO
nIdForm
- the form idplugin
- the pluginCopyright © 2020 City of Paris. All rights reserved.