Class ClosingDayDAO

  • All Implemented Interfaces:
    IClosingDayDAO

    public final class ClosingDayDAO
    extends java.lang.Object
    implements IClosingDayDAO
    This class provides Data Access methods for Closing Day objects
    Author:
    Laurent Payen
    • Constructor Summary

      Constructors 
      Constructor Description
      ClosingDayDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void deleteByIdFormAndDateOfClosingDay​(int nIdForm, java.time.LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      java.util.List<ClosingDay> findByIdForm​(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the closing days of a form
      ClosingDay findByIdFormAndDateOfClosingDay​(int nIdForm, java.time.LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the closing day if exists
      java.util.List<ClosingDay> findByIdFormAndDateRange​(int nIdForm, java.time.LocalDate startingDate, java.time.LocalDate endingDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the closing days of the form on a period
      void insert​(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      ClosingDay select​(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      void update​(ClosingDay closingDay, 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

      • ClosingDayDAO

        public ClosingDayDAO()
    • Method Detail

      • insert

        public void insert​(ClosingDay closingDay,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Insert a new record in the table.
        Specified by:
        insert in interface IClosingDayDAO
        Parameters:
        closingDay - instance of the Closing Day object to insert
        plugin - the Plugin
      • update

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

        public void delete​(int nIdClosingDay,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Delete a record from the table
        Specified by:
        delete in interface IClosingDayDAO
        Parameters:
        nIdClosingDay - int identifier of the Closing Day to delete
        plugin - the Plugin
      • select

        public ClosingDay select​(int nIdClosingDay,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Load the data from the table
        Specified by:
        select in interface IClosingDayDAO
        Parameters:
        nIdClosingDay - The identifier of the Closing Day
        plugin - the Plugin
        Returns:
        The instance of the Closing Day
      • findByIdFormAndDateOfClosingDay

        public ClosingDay findByIdFormAndDateOfClosingDay​(int nIdForm,
                                                          java.time.LocalDate dateOfCLosingDay,
                                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Return the closing day if exists
        Specified by:
        findByIdFormAndDateOfClosingDay in interface IClosingDayDAO
        Parameters:
        nIdForm - the Form Id
        dateOfCLosingDay - the date of the closing day
        plugin - the plugin
        Returns:
        the closing day if exists
      • deleteByIdFormAndDateOfClosingDay

        public void deleteByIdFormAndDateOfClosingDay​(int nIdForm,
                                                      java.time.LocalDate dateOfCLosingDay,
                                                      fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Delete a record from the table
        Specified by:
        deleteByIdFormAndDateOfClosingDay in interface IClosingDayDAO
        Parameters:
        nIdForm - the Form Id
        dateOfCLosingDay - the date of the closing day
        plugin - the plugin
      • deleteByIdForm

        public void deleteByIdForm​(int nIdForm,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Delete a record from the table
        Specified by:
        deleteByIdForm in interface IClosingDayDAO
        Parameters:
        nIdForm - the Form Id
        plugin - the plugin
      • findByIdForm

        public java.util.List<ClosingDay> findByIdForm​(int nIdForm,
                                                       fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Returns the closing days of a form
        Specified by:
        findByIdForm in interface IClosingDayDAO
        Parameters:
        nIdForm - the form Id
        plugin - the plugin
        Returns:
        a list of the closing days of the form
      • findByIdFormAndDateRange

        public java.util.List<ClosingDay> findByIdFormAndDateRange​(int nIdForm,
                                                                   java.time.LocalDate startingDate,
                                                                   java.time.LocalDate endingDate,
                                                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Description copied from interface: IClosingDayDAO
        Returns the closing days of the form on a period
        Specified by:
        findByIdFormAndDateRange in interface IClosingDayDAO
        Parameters:
        nIdForm - the form Id
        startingDate - the starting date
        endingDate - the ending date
        plugin - the plugin
        Returns:
        the list of the closing days that matches the criteria