Class WeekDefinitionDAO

  • All Implemented Interfaces:
    IWeekDefinitionDAO

    public final class WeekDefinitionDAO
    extends java.lang.Object
    implements IWeekDefinitionDAO
    This class provides Data Access methods for Week Definition objects
    Author:
    Laurent Payen
    • Method Summary

      All Methods Instance Methods Concrete 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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WeekDefinitionDAO

        public WeekDefinitionDAO()
    • Method Detail

      • insert

        public void insert​(WeekDefinition weekDefinition,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Insert a new record in the table
        Specified by:
        insert in interface IWeekDefinitionDAO
        plugin - the plugin
      • update

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

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

        public void deleteByIdReservationRule​(int nIdReservationRule,
                                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Delete a record from the table
        Specified by:
        deleteByIdReservationRule in interface IWeekDefinitionDAO
        Parameters:
        nIdReservationRule - identifier of the reservation rule
        plugin - the plugin
      • select

        public WeekDefinition select​(int nIdWeekDefinition,
                                     fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Load the data from the table
        Specified by:
        select in interface IWeekDefinitionDAO
        Parameters:
        nIdWeekDefinition - the identifier of the weekDefinition
        plugin - the plugin
        Returns:
        the instance of the weekDefinition
      • findByIdForm

        public java.util.List<WeekDefinition> findByIdForm​(int nIdForm,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Get all the week definitions of a form
        Specified by:
        findByIdForm in interface IWeekDefinitionDAO
        Parameters:
        nIdForm - the form id
        plugin - the plugin
        Returns:
        a list of all the weekdefinitions of the form given
      • findByReservationRule

        public java.util.List<WeekDefinition> findByReservationRule​(int nIdReservationRule,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Get the week definitions of a form for reservation rule
        Specified by:
        findByReservationRule in interface IWeekDefinitionDAO
        plugin - the plugin
        Returns:
        list of week definition
      • findByIdFormAndDateOfApply

        public WeekDefinition findByIdFormAndDateOfApply​(int nIdForm,
                                                         java.time.LocalDate dateOfApply,
                                                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Get the week definitions of a form for the date of apply
        Specified by:
        findByIdFormAndDateOfApply in interface IWeekDefinitionDAO
        Parameters:
        nIdForm - the form id
        dateOfApply - the date of apply
        plugin - the plugin
        Returns:
        the week definition
      • findByIdReservationRuleAndDateOfApply

        public WeekDefinition findByIdReservationRuleAndDateOfApply​(int nIdReservationRule,
                                                                    java.time.LocalDate dateOfApply,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IWeekDefinitionDAO
        Get the week definitions of a form for the date of apply
        Specified by:
        findByIdReservationRuleAndDateOfApply in interface IWeekDefinitionDAO
        Parameters:
        nIdReservationRule - the reservationRule id
        dateOfApply - the date of apply
        plugin - the plugin
        Returns:
        the week definition