java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.TimeSlotDAO
All Implemented Interfaces:
ITimeSlotDAO

@ApplicationScoped public class TimeSlotDAO extends Object implements ITimeSlotDAO
This class provides Data Access methods for Time Slot objects
Author:
Laurent Payen
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table by working day
    findByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get all the time slots of the working day
    void
    insert(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table
    select(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    void
    update(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TimeSlotDAO

      public TimeSlotDAO()
  • Method Details

    • insert

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

      public void update(TimeSlot timeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITimeSlotDAO
      Update the record in the table
      Specified by:
      update in interface ITimeSlotDAO
      Parameters:
      timeSlot - the reference of the timeSlot
      plugin - the plugin
    • delete

      public void delete(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITimeSlotDAO
      Delete a record from the table
      Specified by:
      delete in interface ITimeSlotDAO
      Parameters:
      nIdTimeSlot - identifier of the timeSlot to delete
      plugin - the plugin
    • deleteByIdWorkingDay

      public void deleteByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITimeSlotDAO
      Delete a record from the table by working day
      Specified by:
      deleteByIdWorkingDay in interface ITimeSlotDAO
      plugin - the plugin
    • select

      public TimeSlot select(int nIdTimeSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITimeSlotDAO
      Load the data from the table
      Specified by:
      select in interface ITimeSlotDAO
      Parameters:
      nIdTimeSlot - the identifier of the timeSlot
      plugin - the plugin
      Returns:
      the instance of the timeSlot
    • findByIdWorkingDay

      public List<TimeSlot> findByIdWorkingDay(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITimeSlotDAO
      Get all the time slots of the working day
      Specified by:
      findByIdWorkingDay in interface ITimeSlotDAO
      Parameters:
      nIdWorkingDay - the working day id
      plugin - the plugin
      Returns:
      the list of all the time slots of the working day