java.lang.Object
fr.paris.lutece.plugins.appointment.business.planning.WeekDefinitionDAO
All Implemented Interfaces:
IWeekDefinitionDAO

public final class WeekDefinitionDAO extends Object implements IWeekDefinitionDAO
This class provides Data Access methods for Week Definition objects
Author:
Laurent Payen
  • Constructor Details

    • WeekDefinitionDAO

      public WeekDefinitionDAO()
  • Method Details

    • 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 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 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, 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, 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