Class AppointmentDAO

  • All Implemented Interfaces:
    IAppointmentDAO

    public final class AppointmentDAO
    extends Object
    implements IAppointmentDAO
    This class provides Data Access methods for Appointment objects
    Author:
    Laurent Payen
    • Constructor Detail

      • AppointmentDAO

        public AppointmentDAO()
    • Method Detail

      • insert

        public void insert​(Appointment appointment,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IAppointmentDAO
        Insert a new record in the table
        Specified by:
        insert in interface IAppointmentDAO
        Parameters:
        appointment - instance of the appointment object to insert
        plugin - the plugin
      • update

        public void update​(Appointment appointment,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IAppointmentDAO
        Update the record in the table
        Specified by:
        update in interface IAppointmentDAO
        Parameters:
        appointment - the reference of the appointment
        plugin - the plugin
      • updateAppointmentDate

        public void updateAppointmentDate​(Appointment appointment,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IAppointmentDAO
        Update date appointment, update AppointmentSlot
        Specified by:
        updateAppointmentDate in interface IAppointmentDAO
        Parameters:
        appointment - the appointment
        plugin - the plugin
      • delete

        public void delete​(int nIdAppointment,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IAppointmentDAO
        Delete a record from the table
        Specified by:
        delete in interface IAppointmentDAO
        Parameters:
        nIdAppointment - int identifier of the appointment to delete
        plugin - the plugin
      • select

        public Appointment select​(int nIdAppointment,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IAppointmentDAO
        Load the data from the table
        Specified by:
        select in interface IAppointmentDAO
        Parameters:
        nIdAppointment - the identifier of the appointment
        plugin - 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: IAppointmentDAO
        Returns all the appointments of a user
        Specified by:
        findByIdUser in interface IAppointmentDAO
        Parameters:
        nIdUser - the User Id
        plugin - 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: IAppointmentDAO
        Returns all the appointments of a user by Guid
        Specified by:
        findByGuidUser in interface IAppointmentDAO
        Parameters:
        strGuidUser - the User Guid
        plugin - 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: IAppointmentDAO
        Returns the appointments of a slot
        Specified by:
        findByIdSlot in interface IAppointmentDAO
        Parameters:
        nIdSlot - the Slot Id
        plugin - 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: IAppointmentDAO
        Returns the list of appointments of a slot
        Specified by:
        findByListIdSlot in interface IAppointmentDAO
        Parameters:
        listIdSlot - the list Slot Id
        plugin - 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: IAppointmentDAO
        Returns the appointment with its reference
        Specified by:
        findByReference in interface IAppointmentDAO
        Parameters:
        strReference - the appointment reference
        plugin - the plugin
        Returns:
        the appointment
      • findByFilter

        public List<Appointment> findByFilter​(AppointmentFilterDTO appointmentFilter,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IAppointmentDAO
        Returns a list of appointments matching the filter
        Specified by:
        findByFilter in interface IAppointmentDAO
        Parameters:
        appointmentFilter - the filter
        plugin - 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: IAppointmentDAO
        Returns a list of appointments ids matching the filter
        Specified by:
        findIdsByFilter in interface IAppointmentDAO
        Parameters:
        appointmentFilter - the filter
        plugin - 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: IAppointmentDAO
        Find a list of appointments by id category and mail
        Specified by:
        findByCategoryAndMail in interface IAppointmentDAO
        Parameters:
        nIdCategory - the id category
        mail - the mail
        plugin - 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: IAppointmentDAO
        Returns a list of all the appointment of a form
        Specified by:
        findByIdForm in interface IAppointmentDAO
        Parameters:
        nIdForm - the form id
        plugin - the plugin
        Returns:
        a list of the appointments