Interface IAppointmentDAO

  • All Known Implementing Classes:
    AppointmentDAO

    public interface IAppointmentDAO
    Appointment DAO Interface
    Author:
    Laurent Payen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      java.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 mail
      java.util.List<Appointment> findByFilter​(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a list of appointments matching the filter
      java.util.List<Appointment> findByGuidUser​(java.lang.String strGuidUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the appointments of a user by Guid
      java.util.List<Appointment> findByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a list of all the appointment of a form
      java.util.List<Appointment> findByIdSlot​(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the appointments of a slot
      java.util.List<Appointment> findByIdUser​(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns all the appointments of a user
      java.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 slot
      Appointment findByReference​(java.lang.String strReference, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the appointment with its reference
      java.util.List<java.lang.Integer> findIdsByFilter​(AppointmentFilterDTO appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a list of appointments ids matching the filter
      void insert​(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table
      Appointment select​(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<java.lang.Integer> selectAllAppointmentId​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      returns a list of all appointment ids.
      void update​(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      void updateAppointmentDate​(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 insert
        plugin - 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 appointment
        plugin - the plugin
      • updateAppointmentDate

        void updateAppointmentDate​(Appointment appointment,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update date appointment, update AppointmentSlot
        Parameters:
        appointment - the appointment
        plugin - 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 delete
        plugin - 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 appointment
        plugin - the plugin
        Returns:
        the instance of the appointment
      • findByIdUser

        java.util.List<Appointment> findByIdUser​(int nIdUser,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns all the appointments of a user
        Parameters:
        nIdUser - the User Id
        plugin - the Plugin
        Returns:
        a list of the appointments of the user
      • findByGuidUser

        java.util.List<Appointment> findByGuidUser​(java.lang.String strGuidUser,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns all the appointments of a user by Guid
        Parameters:
        strGuidUser - the User Guid
        plugin - the Plugin
        Returns:
        a list of the appointments of the user by Guid
      • findByIdSlot

        java.util.List<Appointment> findByIdSlot​(int nIdSlot,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns the appointments of a slot
        Parameters:
        nIdSlot - the Slot Id
        plugin - the plugin
        Returns:
        a list of the appointments
      • findByListIdSlot

        java.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 slot
        Parameters:
        listIdSlot - the list Slot Id
        plugin - the plugin
        Returns:
        a list of the appointments
      • findByReference

        Appointment findByReference​(java.lang.String strReference,
                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns the appointment with its reference
        Parameters:
        strReference - the appointment reference
        plugin - the plugin
        Returns:
        the appointment
      • findByIdForm

        java.util.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 id
        plugin - the plugin
        Returns:
        a list of the appointments
      • findByFilter

        java.util.List<Appointment> findByFilter​(AppointmentFilterDTO appointmentFilter,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns a list of appointments matching the filter
        Parameters:
        appointmentFilter - the filter
        plugin - the plugin
        Returns:
        a list of appointments
      • findIdsByFilter

        java.util.List<java.lang.Integer> findIdsByFilter​(AppointmentFilterDTO appointmentFilter,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns a list of appointments ids matching the filter
        Parameters:
        appointmentFilter - the filter
        plugin - the plugin
        Returns:
        a list of appointments
      • findByCategoryAndMail

        java.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 mail
        Parameters:
        nIdCategory - the id category
        mail - the mail
        plugin - the plugin
        Returns:
        list of appointments
      • selectAllAppointmentId

        java.util.List<java.lang.Integer> selectAllAppointmentId​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        returns a list of all appointment ids.
        Parameters:
        plugin -
        Returns: