Class WeekDefinitionDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.appointment.business.planning.WeekDefinitionDAO
-
- All Implemented Interfaces:
IWeekDefinitionDAO
public final class WeekDefinitionDAO extends Object implements IWeekDefinitionDAO
This class provides Data Access methods for Week Definition objects- Author:
- Laurent Payen
-
-
Constructor Summary
Constructors Constructor Description WeekDefinitionDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoiddeleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tableList<WeekDefinition>findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get all the week definitions of a formWeekDefinitionfindByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the week definitions of a form for the date of applyWeekDefinitionfindByIdReservationRuleAndDateOfApply(int nIdReservationRule, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the week definitions of a form for the date of applyList<WeekDefinition>findByReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Get the week definitions of a form for reservation rulevoidinsert(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the tableWeekDefinitionselect(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablevoidupdate(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOInsert a new record in the table- Specified by:
insertin interfaceIWeekDefinitionDAOplugin- the plugin
-
update
public void update(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOUpdate the record in the table- Specified by:
updatein interfaceIWeekDefinitionDAO- Parameters:
weekDefinition- the reference of the WeekDefinitionplugin- the plugin
-
delete
public void delete(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IWeekDefinitionDAODelete a record from the table- Specified by:
deletein interfaceIWeekDefinitionDAO- Parameters:
nIdWeekDefinition- identifier of the WeekDefinition to deleteplugin- the plugin
-
deleteByIdReservationRule
public void deleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Description copied from interface:IWeekDefinitionDAODelete a record from the table- Specified by:
deleteByIdReservationRulein interfaceIWeekDefinitionDAO- Parameters:
nIdReservationRule- identifier of the reservation ruleplugin- the plugin
-
select
public WeekDefinition select(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOLoad the data from the table- Specified by:
selectin interfaceIWeekDefinitionDAO- Parameters:
nIdWeekDefinition- the identifier of the weekDefinitionplugin- the plugin- Returns:
- the instance of the weekDefinition
-
findByIdForm
public List<WeekDefinition> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOGet all the week definitions of a form- Specified by:
findByIdFormin interfaceIWeekDefinitionDAO- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- a list of all the weekdefinitions of the form given
-
findByReservationRule
public List<WeekDefinition> findByReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOGet the week definitions of a form for reservation rule- Specified by:
findByReservationRulein interfaceIWeekDefinitionDAOplugin- the plugin- Returns:
- list of week definition
-
findByIdFormAndDateOfApply
public WeekDefinition findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOGet the week definitions of a form for the date of apply- Specified by:
findByIdFormAndDateOfApplyin interfaceIWeekDefinitionDAO- Parameters:
nIdForm- the form iddateOfApply- the date of applyplugin- the plugin- Returns:
- the week definition
-
findByIdReservationRuleAndDateOfApply
public WeekDefinition findByIdReservationRuleAndDateOfApply(int nIdReservationRule, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IWeekDefinitionDAOGet the week definitions of a form for the date of apply- Specified by:
findByIdReservationRuleAndDateOfApplyin interfaceIWeekDefinitionDAO- Parameters:
nIdReservationRule- the reservationRule iddateOfApply- the date of applyplugin- the plugin- Returns:
- the week definition
-
-