Interface IReservationRuleDAO
- All Known Implementing Classes:
ReservationRuleDAO
public interface IReservationRuleDAO
ReservationRule DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a record from the tablefindByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the Reservation Rule of the form givenfindByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns the Reservation Rule with the given search parametersfindReservationRuleByIdFormAndClosestToDateOfApply(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 tableselect(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 Details
-
insert
Insert a new record in the table- Parameters:
reservationRule- instance of the ReservationRule object to insertplugin- the plugin
-
update
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
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
-