Interface IAppointmentDAO
- All Known Implementing Classes:
AppointmentDAO
public interface IAppointmentDAO
Appointment DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByCategoryAndMail(int nIdCategory, String mail, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a list of appointments by id category and mailfindByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a list of appointments matching the filterfindByGuidUser(String strGuidUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the appointments of a user by GuidfindByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a list of all the appointment of a formfindByIdSlot(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the appointments of a slotfindByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the appointments of a userfindByListIdSlot(List<Integer> listIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the list of appointments of a slotfindByReference(String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the appointment with its referencefindIdsByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a list of appointments ids matching the filtervoidinsert(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Insert a new record in the tableselect(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tableselectAllAppointmentId(fr.paris.lutece.portal.service.plugin.Plugin plugin) returns a list of all appointment ids.voidupdate(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the tablevoidupdateAppointmentDate(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update date appointment, update AppointmentSlot
-
Method Details
-
insert
Insert a new record in the table- Parameters:
appointment- instance of the appointment object to insertplugin- the plugin
-
update
Update the record in the table- Parameters:
appointment- the reference of the appointmentplugin- the plugin
-
updateAppointmentDate
void updateAppointmentDate(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update date appointment, update AppointmentSlot- Parameters:
appointment- the appointmentplugin- the plugin
-
delete
void delete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the table- Parameters:
nIdAppointment- int identifier of the appointment to deleteplugin- the plugin
-
select
Load the data from the table- Parameters:
nIdAppointment- the identifier of the appointmentplugin- the plugin- Returns:
- the instance of the appointment
-
findByIdUser
Returns all the appointments of a user- Parameters:
nIdUser- the User Idplugin- the Plugin- Returns:
- a list of the appointments of the user
-
findByGuidUser
List<Appointment> findByGuidUser(String strGuidUser, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the appointments of a user by Guid- Parameters:
strGuidUser- the User Guidplugin- the Plugin- Returns:
- a list of the appointments of the user by Guid
-
findByIdSlot
Returns the appointments of a slot- Parameters:
nIdSlot- the Slot Idplugin- the plugin- Returns:
- a list of the appointments
-
findByListIdSlot
List<Appointment> findByListIdSlot(List<Integer> listIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the list of appointments of a slot- Parameters:
listIdSlot- the list Slot Idplugin- the plugin- Returns:
- a list of the appointments
-
findByReference
Appointment findByReference(String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the appointment with its reference- Parameters:
strReference- the appointment referenceplugin- the plugin- Returns:
- the appointment
-
findByIdForm
Returns a list of all the appointment of a form- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- a list of the appointments
-
findByFilter
List<Appointment> findByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a list of appointments matching the filter- Parameters:
appointmentFilter- the filterplugin- the plugin- Returns:
- a list of appointments
-
findIdsByFilter
List<Integer> findIdsByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns a list of appointments ids matching the filter- Parameters:
appointmentFilter- the filterplugin- the plugin- Returns:
- a list of appointments
-
findByCategoryAndMail
List<Appointment> findByCategoryAndMail(int nIdCategory, String mail, fr.paris.lutece.portal.service.plugin.Plugin plugin) Find a list of appointments by id category and mail- Parameters:
nIdCategory- the id categorymail- the mailplugin- the plugin- Returns:
- list of appointments
-
selectAllAppointmentId
returns a list of all appointment ids.- Parameters:
plugin-- Returns:
-