public final class ReservationRuleDAO extends Object implements IReservationRuleDAO
| Constructor and Description |
|---|
ReservationRuleDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdReservationRule,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
List<ReservationRule> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the Reservation Rule of the form given
|
ReservationRule |
findByIdFormAndDateOfApply(int nIdForm,
LocalDate dateOfApply,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the Reservation Rule with the given search parameters
|
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
|
void |
insert(ReservationRule reservationRule,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table
|
ReservationRule |
select(int nIdReservationRule,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(ReservationRule reservationRule,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public void insert(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOinsert in interface IReservationRuleDAOreservationRule - instance of the ReservationRule object to insertplugin - the pluginpublic void update(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOupdate in interface IReservationRuleDAOplugin - the pluginpublic void delete(int nIdReservationRule,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOdelete in interface IReservationRuleDAOnIdReservationRule - int identifier of the ReservationRule to deleteplugin - the pluginpublic ReservationRule select(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOselect in interface IReservationRuleDAOnIdReservationRule - the identifier of the ReservationRuleplugin - the pluginpublic List<ReservationRule> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOfindByIdForm in interface IReservationRuleDAOnIdForm - the Form Idplugin - the pluginpublic ReservationRule findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOfindByIdFormAndDateOfApply in interface IReservationRuleDAOnIdForm - the Form IddateOfApply - the date of applyplugin - the pluginpublic ReservationRule findReservationRuleByIdFormAndClosestToDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAOfindReservationRuleByIdFormAndClosestToDateOfApply in interface IReservationRuleDAOnIdForm - the Form IddateOfApply - the date of applyplugin - the pluginCopyright © 2021 City of Paris. All rights reserved.