Interface IWeekDefinitionDAO

  • All Known Implementing Classes:
    WeekDefinitionDAO

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void delete​(int nIdWeekDefinition, 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 record from the table
      java.util.List<WeekDefinition> findByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get all the week definitions of a form
      WeekDefinition findByIdFormAndDateOfApply​(int nIdForm, java.time.LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the week definitions of a form for the date of apply
      WeekDefinition findByIdReservationRuleAndDateOfApply​(int nIdReservationRule, java.time.LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the week definitions of a form for the date of apply
      java.util.List<WeekDefinition> findByReservationRule​(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the week definitions of a form for reservation rule
      void insert​(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table
      WeekDefinition select​(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      void update​(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
    • 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

        java.util.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

        java.util.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,
                                                  java.time.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,
                                                             java.time.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