Interface IAppointmentDAO
-
- All Known Implementing Classes:
AppointmentDAO
public interface IAppointmentDAOAppointment DAO Interface- Author:
- Laurent Payen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableList<Appointment>findByCategoryAndMail(int nIdCategory, String mail, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a list of appointments by id category and mailList<Appointment>findByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a list of appointments matching the filterList<Appointment>findByGuidUser(String strGuidUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns all the appointments of a user by GuidList<Appointment>findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a list of all the appointment of a formList<Appointment>findByIdSlot(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the appointments of a slotList<Appointment>findByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns all the appointments of a userList<Appointment>findByListIdSlot(List<Integer> listIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the list of appointments of a slotAppointmentfindByReference(String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the appointment with its referenceList<Integer>findIdsByFilter(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 tableAppointmentselect(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tableList<Integer>selectAllAppointmentId(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 Detail
-
insert
void insert(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table- Parameters:
appointment- instance of the appointment object to insertplugin- the plugin
-
update
void update(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
Appointment select(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nIdAppointment- the identifier of the appointmentplugin- the plugin- Returns:
- the instance of the appointment
-
findByIdUser
List<Appointment> findByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
List<Appointment> findByIdSlot(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
List<Appointment> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
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
-
-