public final class ReservationRuleDAO extends UtilDAO implements IReservationRuleDAO
BEAN_NAME
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 |
findByIdFormAndClosestToDateOfApply(int nIdForm,
LocalDate dateOfApply,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the Reservation Rule with the given search parameters
|
ReservationRule |
findByIdFormAndDateOfApply(int nIdForm,
LocalDate dateOfApply,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns the Reservation Rule with the given search parameters
|
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
|
getNewPrimaryKey
public void insert(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
insert
in interface IReservationRuleDAO
reservationRule
- instance of the ReservationRule object to insertplugin
- the pluginpublic void update(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
update
in interface IReservationRuleDAO
plugin
- the pluginpublic void delete(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
delete
in interface IReservationRuleDAO
nIdReservationRule
- int identifier of the ReservationRule to deleteplugin
- the pluginpublic ReservationRule select(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
select
in interface IReservationRuleDAO
nIdReservationRule
- the identifier of the ReservationRuleplugin
- the pluginpublic List<ReservationRule> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
findByIdForm
in interface IReservationRuleDAO
nIdForm
- the Form Idplugin
- the pluginpublic ReservationRule findByIdFormAndClosestToDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
findByIdFormAndClosestToDateOfApply
in interface IReservationRuleDAO
nIdForm
- the Form IddateOfApply
- the date of applyplugin
- the pluginpublic ReservationRule findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
IReservationRuleDAO
findByIdFormAndDateOfApply
in interface IReservationRuleDAO
nIdForm
- the Form IddateOfApply
- the date of applyplugin
- the pluginCopyright © 2018 City of Paris. All rights reserved.