Class WorkingDayDAO

  • All Implemented Interfaces:
    IWorkingDayDAO

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

      • WorkingDayDAO

        public WorkingDayDAO()
    • Method Detail

      • 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