Class AppointmentDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.appointment.AppointmentDAO
-
- All Implemented Interfaces:
IAppointmentDAO
public final class AppointmentDAO extends java.lang.Object implements IAppointmentDAO
This class provides Data Access methods for Appointment objects- Author:
- Laurent Payen
-
-
Constructor Summary
Constructors Constructor Description AppointmentDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.util.List<Appointment>findByCategoryAndMail(int nIdCategory, java.lang.String mail, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find a list of appointments by id category and mailjava.util.List<Appointment>findByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a list of appointments matching the filterjava.util.List<Appointment>findByGuidUser(java.lang.String strGuidUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns all the appointments of a user by Guidjava.util.List<Appointment>findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns a list of all the appointment of a formjava.util.List<Appointment>findByIdSlot(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the appointments of a slotjava.util.List<Appointment>findByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns all the appointments of a userjava.util.List<Appointment>findByListIdSlot(java.util.List<java.lang.Integer> listIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the list of appointments of a slotAppointmentfindByReference(java.lang.String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the appointment with its referencejava.util.List<java.lang.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 tablejava.util.List<java.lang.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
public void insert(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOInsert a new record in the table- Specified by:
insertin interfaceIAppointmentDAO- Parameters:
appointment- instance of the appointment object to insertplugin- the plugin
-
update
public void update(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOUpdate the record in the table- Specified by:
updatein interfaceIAppointmentDAO- Parameters:
appointment- the reference of the appointmentplugin- the plugin
-
updateAppointmentDate
public void updateAppointmentDate(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOUpdate date appointment, update AppointmentSlot- Specified by:
updateAppointmentDatein interfaceIAppointmentDAO- Parameters:
appointment- the appointmentplugin- the plugin
-
delete
public void delete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IAppointmentDAODelete a record from the table- Specified by:
deletein interfaceIAppointmentDAO- Parameters:
nIdAppointment- int identifier of the appointment to deleteplugin- the plugin
-
select
public Appointment select(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOLoad the data from the table- Specified by:
selectin interfaceIAppointmentDAO- Parameters:
nIdAppointment- the identifier of the appointmentplugin- the plugin- Returns:
- the instance of the appointment
-
findByIdUser
public java.util.List<Appointment> findByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns all the appointments of a user- Specified by:
findByIdUserin interfaceIAppointmentDAO- Parameters:
nIdUser- the User Idplugin- the Plugin- Returns:
- a list of the appointments of the user
-
findByGuidUser
public java.util.List<Appointment> findByGuidUser(java.lang.String strGuidUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns all the appointments of a user by Guid- Specified by:
findByGuidUserin interfaceIAppointmentDAO- Parameters:
strGuidUser- the User Guidplugin- the Plugin- Returns:
- a list of the appointments of the user by Guid
-
findByIdSlot
public java.util.List<Appointment> findByIdSlot(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns the appointments of a slot- Specified by:
findByIdSlotin interfaceIAppointmentDAO- Parameters:
nIdSlot- the Slot Idplugin- the plugin- Returns:
- a list of the appointments
-
findByListIdSlot
public java.util.List<Appointment> findByListIdSlot(java.util.List<java.lang.Integer> listIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns the list of appointments of a slot- Specified by:
findByListIdSlotin interfaceIAppointmentDAO- Parameters:
listIdSlot- the list Slot Idplugin- the plugin- Returns:
- a list of the appointments
-
findByReference
public Appointment findByReference(java.lang.String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns the appointment with its reference- Specified by:
findByReferencein interfaceIAppointmentDAO- Parameters:
strReference- the appointment referenceplugin- the plugin- Returns:
- the appointment
-
findByFilter
public java.util.List<Appointment> findByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns a list of appointments matching the filter- Specified by:
findByFilterin interfaceIAppointmentDAO- Parameters:
appointmentFilter- the filterplugin- the plugin- Returns:
- a list of appointments
-
findIdsByFilter
public java.util.List<java.lang.Integer> findIdsByFilter(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns a list of appointments ids matching the filter- Specified by:
findIdsByFilterin interfaceIAppointmentDAO- Parameters:
appointmentFilter- the filterplugin- the plugin- Returns:
- a list of appointments
-
findByCategoryAndMail
public java.util.List<Appointment> findByCategoryAndMail(int nIdCategory, java.lang.String mail, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOFind a list of appointments by id category and mail- Specified by:
findByCategoryAndMailin interfaceIAppointmentDAO- Parameters:
nIdCategory- the id categorymail- the mailplugin- the plugin- Returns:
- list of appointments
-
findByIdForm
public java.util.List<Appointment> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOReturns a list of all the appointment of a form- Specified by:
findByIdFormin interfaceIAppointmentDAO- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- a list of the appointments
-
selectAllAppointmentId
public java.util.List<java.lang.Integer> selectAllAppointmentId(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAppointmentDAOreturns a list of all appointment ids.- Specified by:
selectAllAppointmentIdin interfaceIAppointmentDAO- Returns:
-
-