Interface IReservationRuleDAO
-
- All Known Implementing Classes:
ReservationRuleDAO
public interface IReservationRuleDAOReservationRule DAO Interface- Author:
- Laurent Payen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableList<ReservationRule>findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns all the Reservation Rule of the form givenReservationRulefindByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)Returns the Reservation Rule with the given search parametersReservationRulefindReservationRuleByIdFormAndClosestToDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find in database a reservation rule of a form closest to a datevoidinsert(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the tableReservationRuleselect(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidupdate(ReservationRule appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
void insert(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table- Parameters:
reservationRule- instance of the ReservationRule object to insertplugin- the plugin
-
update
void update(ReservationRule appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
reservationRule- the reference of the ReservationRuleplugin- the plugin
-
delete
void delete(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nIdReservationRule- int identifier of the ReservationRule to deleteplugin- the plugin
-
select
ReservationRule select(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nIdReservationRule- the identifier of the ReservationRuleplugin- the plugin- Returns:
- the instance of the ReservationRule
-
findByIdForm
List<ReservationRule> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the Reservation Rule of the form given- Parameters:
nIdForm- the Form Idplugin- the plugin- Returns:
- a list of reservation rule of the form
-
findByIdFormAndDateOfApply
ReservationRule findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the Reservation Rule with the given search parameters- Parameters:
nIdForm- the Form IddateOfApply- the date of applyplugin- the plugin- Returns:
- the reservation rule that matches
-
findReservationRuleByIdFormAndClosestToDateOfApply
ReservationRule findReservationRuleByIdFormAndClosestToDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find in database a reservation rule of a form closest to a date- Parameters:
nIdForm- the Form IddateOfApply- the date of applyplugin- the plugin- Returns:
- the reservation rule that matches
-
-