Interface IWeekDefinitionDAO
- All Known Implementing Classes:
WeekDefinitionDAO
public interface IWeekDefinitionDAO
WeekDefinition DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(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 tablefindByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get all the week definitions of a formfindByIdFormAndDateOfApply(int nIdForm, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the week definitions of a form for the date of applyfindByIdReservationRuleAndDateOfApply(int nIdReservationRule, LocalDate dateOfApply, fr.paris.lutece.portal.service.plugin.Plugin plugin) Get the week definitions of a form for the date of applyfindByReservationRule(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 tableselect(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 Details
-
insert
Insert a new record in the table- Parameters:
appointment- instance of the WeekDefinition object to insertplugin- the plugin
-
update
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
Load the data from the table- Parameters:
nIdWeekDefinition- the identifier of the weekDefinitionplugin- the plugin- Returns:
- the instance of the weekDefinition
-
findByIdForm
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
-