Interface IClosingDayDAO

All Known Implementing Classes:
ClosingDayDAO

public interface IClosingDayDAO
ClosingDay DAO Interface
Author:
Laurent Payen
  • Method Summary

    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, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Returns the closing days of a form
    findByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Return the closing day if exists
    findByIdFormAndDateRange(int nIdForm, LocalDate startingDate, 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.
    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
  • Method Details

    • insert

      void insert(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      closingDay - instance of the Closing Day object to insert
      plugin - the Plugin
    • update

      void update(ClosingDay closingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Parameters:
      closingDay - the reference of the Closing Day
      plugin - the Plugin
    • delete

      void delete(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nIdClosingDay - int identifier of the Closing Day to delete
      plugin - the Plugin
    • deleteByIdFormAndDateOfClosingDay

      void deleteByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nIdForm - the Form Id
      dateOfCLosingDay - the date of the closing day
      plugin - the plugin
    • deleteByIdForm

      void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      nIdForm - the Form Id
      plugin - the plugin
    • select

      ClosingDay select(int nIdClosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Parameters:
      nIdClosingDay - The identifier of the Closing Day
      plugin - the Plugin
      Returns:
      The instance of the Closing Day
    • findByIdFormAndDateOfClosingDay

      ClosingDay findByIdFormAndDateOfClosingDay(int nIdForm, LocalDate dateOfCLosingDay, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the closing day if exists
      Parameters:
      nIdForm - the Form Id
      dateOfCLosingDay - the date of the closing day
      plugin - the plugin
      Returns:
      the closing day if exists
    • findByIdForm

      List<ClosingDay> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the closing days of a form
      Parameters:
      nIdForm - the form Id
      plugin - the plugin
      Returns:
      a list of the closing days of the form
    • findByIdFormAndDateRange

      List<ClosingDay> findByIdFormAndDateRange(int nIdForm, LocalDate startingDate, LocalDate endingDate, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns the closing days of the form on a period
      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