Interface IWorkingDayDAO

  • All Known Implementing Classes:
    WorkingDayDAO

    public interface IWorkingDayDAO
    WorkingDay DAO Interface
    Author:
    Laurent Payen
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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
      List<WorkingDay> findByIdReservationRule​(int nIdWeekDefinitionRule, 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
      WorkingDay 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
    • Method Detail

      • insert

        void insert​(WorkingDay workingDay,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table
        Parameters:
        workingDay - instance of the WorkingDay object to insert
        plugin - the plugin
      • update

        void update​(WorkingDay workingDay,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        workingDay - the reference of the WorkingDay
        plugin - the plugin
      • delete

        void delete​(int nIdWorkingDay,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdWorkingDay - identifier of the WorkingDay to delete
        plugin - the plugin
      • deleteByIdReservationRule

        void deleteByIdReservationRule​(int nIdReservationRule,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a working day by id reservation rule
        Parameters:
        nIdReservationRule - the reservation rule id
        plugin - the plugin
      • select

        WorkingDay select​(int nIdWorkingDay,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nIdWorkingDay - the identifier of the WorkingDay
        plugin - the plugin
        Returns:
        the instance of the WorkingDay
      • findByIdReservationRule

        List<WorkingDay> findByIdReservationRule​(int nIdWeekDefinitionRule,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the working days of the weekdefinition given
        Parameters:
        nIdWeekDefinitionRule - the WeekDefinitionRule id
        plugin - the Plugin
        Returns:
        the list of all the working days of the weekdefinition