Interface IWeekDefinitionDAO
-
- All Known Implementing Classes:
WeekDefinitionDAO
public interface IWeekDefinitionDAOWeekDefinition DAO Interface- Author:
- Laurent Payen
-
-
Method Summary
All Methods Instance Methods Abstract 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
void insert(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table- Parameters:
appointment- instance of the WeekDefinition object to insertplugin- the plugin
-
update
void update(WeekDefinition weekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Parameters:
weekDefinition- the reference of the WeekDefinitionplugin- the plugin
-
delete
void delete(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nIdWeekDefinition- identifier of the WeekDefinition to deleteplugin- the plugin
-
deleteByIdReservationRule
void deleteByIdReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Parameters:
nIdReservationRule- identifier of the reservation ruleplugin- the plugin
-
select
WeekDefinition select(int nIdWeekDefinition, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Parameters:
nIdWeekDefinition- the identifier of the weekDefinitionplugin- the plugin- Returns:
- the instance of the weekDefinition
-
findByIdForm
List<WeekDefinition> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get all the week definitions of a form- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- a list of all the weekdefinitions of the form given
-
findByReservationRule
List<WeekDefinition> findByReservationRule(int nIdReservationRule, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the week definitions of a form for reservation rule- Parameters:
nIdReservationRule-plugin- the plugin- Returns:
- list of week definition
-
findByIdFormAndDateOfApply
WeekDefinition findByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the week definitions of a form for the date of apply- Parameters:
nIdForm- the form iddateOfApply- the date of applyplugin- the plugin- Returns:
- the week definition
-
findByIdReservationRuleAndDateOfApply
WeekDefinition findByIdReservationRuleAndDateOfApply(int nIdReservationRule, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the week definitions of a form for the date of apply- Parameters:
nIdReservationRule- the reservationRule iddateOfApply- the date of applyplugin- the plugin- Returns:
- the week definition
-
-