java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.WorkingDayDAO
All Implemented Interfaces:
IWorkingDayDAO

@ApplicationScoped public class WorkingDayDAO extends Object implements IWorkingDayDAO
This class provides Data Access methods for Working Day objects
Author:
Laurent Payen
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a working day by id reservation rule
    findByIdReservationRule(int nIdReservationRuleRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get all the working days of the weekdefinition given
    void
    insert(WorkingDay workingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table
    select(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    void
    update(WorkingDay workingDay, 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

    • WorkingDayDAO

      public WorkingDayDAO()
  • Method Details

    • insert

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

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

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

      public void deleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IWorkingDayDAO
      Delete a working day by id reservation rule
      Specified by:
      deleteByIdReservationRule in interface IWorkingDayDAO
      Parameters:
      nIdReservationRule - the reservation rule id
      plugin - the plugin
    • select

      public WorkingDay select(int nIdWorkingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IWorkingDayDAO
      Load the data from the table
      Specified by:
      select in interface IWorkingDayDAO
      Parameters:
      nIdWorkingDay - the identifier of the WorkingDay
      plugin - the plugin
      Returns:
      the instance of the WorkingDay
    • findByIdReservationRule

      public List<WorkingDay> findByIdReservationRule(int nIdReservationRuleRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IWorkingDayDAO
      Get all the working days of the weekdefinition given
      Specified by:
      findByIdReservationRule in interface IWorkingDayDAO
      Parameters:
      nIdReservationRuleRule - the WeekDefinitionRule id
      plugin - the Plugin
      Returns:
      the list of all the working days of the weekdefinition