Class ReservationRuleDAO
java.lang.Object
fr.paris.lutece.plugins.appointment.business.rule.ReservationRuleDAO
- All Implemented Interfaces:
IReservationRuleDAO
This class provides Data Access methods for Reservation Rule objects
- Author:
- Laurent Payen
-
Constructor Summary
Constructors -
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 reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Update the record in the table
-
Constructor Details
-
ReservationRuleDAO
public ReservationRuleDAO()
-
-
Method Details
-
insert
public void insert(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAOInsert a new record in the table- Specified by:
insertin interfaceIReservationRuleDAO- Parameters:
reservationRule- instance of the ReservationRule object to insertplugin- the plugin
-
update
public void update(ReservationRule reservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAOUpdate the record in the table- Specified by:
updatein interfaceIReservationRuleDAOplugin- the plugin
-
delete
public void delete(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAODelete a record from the table- Specified by:
deletein interfaceIReservationRuleDAO- Parameters:
nIdReservationRule- int identifier of the ReservationRule to deleteplugin- the plugin
-
select
public ReservationRule select(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAOLoad the data from the table- Specified by:
selectin interfaceIReservationRuleDAO- Parameters:
nIdReservationRule- the identifier of the ReservationRuleplugin- the plugin- Returns:
- the instance of the ReservationRule
-
findByIdForm
public List<ReservationRule> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAOReturns all the Reservation Rule of the form given- Specified by:
findByIdFormin interfaceIReservationRuleDAO- Parameters:
nIdForm- the Form Idplugin- the plugin- Returns:
- a list of reservation rule of the form
-
findByIdFormAndDateOfApply
public ReservationRule findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAOReturns the Reservation Rule with the given search parameters- Specified by:
findByIdFormAndDateOfApplyin interfaceIReservationRuleDAO- Parameters:
nIdForm- the Form IddateOfApply- the date of applyplugin- the plugin- Returns:
- the reservation rule that matches
-
findReservationRuleByIdFormAndClosestToDateOfApply
public ReservationRule findReservationRuleByIdFormAndClosestToDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin) Description copied from interface:IReservationRuleDAOFind in database a reservation rule of a form closest to a date- Specified by:
findReservationRuleByIdFormAndClosestToDateOfApplyin interfaceIReservationRuleDAO- Parameters:
nIdForm- the Form IddateOfApply- the date of applyplugin- the plugin- Returns:
- the reservation rule that matches
-