Class AppointmentDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.appointment.AppointmentDAO
- All Implemented Interfaces:
IAppointmentDAO
This class provides Data Access methods for Appointment objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
AppointmentDAO
public AppointmentDAO()
-
-
Method Details
-
insert
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
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
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 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 List<Appointment> findByGuidUser(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 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 List<Appointment> findByListIdSlot(List<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(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 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 List<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 List<Appointment> findByCategoryAndMail(int nIdCategory, 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 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
Description copied from interface:IAppointmentDAOreturns a list of all appointment ids.- Specified by:
selectAllAppointmentIdin interfaceIAppointmentDAO- Returns:
-