Interface IWeekDefinitionDAO

  • All Known Implementing Classes:
    WeekDefinitionDAO

    public interface IWeekDefinitionDAO
    WeekDefinition DAO Interface
    Author:
    Laurent Payen
    • Method Detail

      • insert

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

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

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

        void deleteByIdReservationRule​(int nIdReservationRule,
                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nIdReservationRule - identifier of the reservation rule
        plugin - the plugin
      • select

        WeekDefinition select​(int nIdWeekDefinition,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nIdWeekDefinition - the identifier of the weekDefinition
        plugin - the plugin
        Returns:
        the instance of the weekDefinition
      • findByIdForm

        List<WeekDefinition> findByIdForm​(int nIdForm,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get all the week definitions of a form
        Parameters:
        nIdForm - the form id
        plugin - the plugin
        Returns:
        a list of all the weekdefinitions of the form given
      • findByReservationRule

        List<WeekDefinition> findByReservationRule​(int nIdReservationRule,
                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the week definitions of a form for reservation rule
        Parameters:
        nIdReservationRule -
        plugin - the plugin
        Returns:
        list of week definition
      • findByIdFormAndDateOfApply

        WeekDefinition findByIdFormAndDateOfApply​(int nIdForm,
                                                  LocalDate dateOfApply,
                                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the week definitions of a form for the date of apply
        Parameters:
        nIdForm - the form id
        dateOfApply - the date of apply
        plugin - the plugin
        Returns:
        the week definition
      • findByIdReservationRuleAndDateOfApply

        WeekDefinition findByIdReservationRuleAndDateOfApply​(int nIdReservationRule,
                                                             LocalDate dateOfApply,
                                                             fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Get the week definitions of a form for the date of apply
        Parameters:
        nIdReservationRule - the reservationRule id
        dateOfApply - the date of apply
        plugin - the plugin
        Returns:
        the week definition