Class ClosingDayDAO

  • All Implemented Interfaces:
    IClosingDayDAO

    public final class ClosingDayDAO
    extends Object
    implements IClosingDayDAO
    This class provides Data Access methods for Closing Day objects
    Author:
    Laurent Payen
    • 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,
                                                          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,
                                                      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 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 List<ClosingDay> findByIdFormAndDateRange​(int nIdForm,
                                                         LocalDate startingDate,
                                                         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