| Constructor and Description |
|---|
SlotDAO() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a appointment from the table
|
void |
deleteByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a appointment from the table
|
List<Slot> |
findByIdAppointment(int nIdAppointment,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the slots of a form
|
List<Slot> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the slots of a form
|
List<Slot> |
findByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the slot for the date range
|
List<Slot> |
findIsSpecificByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the specific slot for the form
|
List<Slot> |
findOpenSlotsByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the open slots
|
List<Slot> |
findOpenSlotsByIdFormAndDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the open slots for the given date range
|
List<Slot> |
findSlotWithAppointmentByDateRange(int nIdForm,
LocalDateTime startingDateTime,
LocalDateTime endingDateTime,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns all the slot containing an appointment for the date range
|
Slot |
findSlotWithMaxDate(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the slot with the max date
|
List<LocalDate> |
findSpecificSlotDates(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the specific slot dates from the form
|
void |
insert(Slot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table
|
void |
resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
update the availabilities metrics
|
Slot |
select(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
void |
update(Slot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
void |
updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces,
int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
update Potential Remaining Places
|
public void insert(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOpublic void update(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOpublic void delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOpublic void deleteByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOdeleteByIdForm in interface ISlotDAOnIdForm - identifier of the formplugin - the pluginpublic Slot select(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOpublic List<Slot> findByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindByIdFormAndDateRange in interface ISlotDAOnIdForm - the Form IdstartingDateTime - the starting dateendingDateTime - the ending dateplugin - the pluginpublic List<Slot> findSlotWithAppointmentByDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindSlotWithAppointmentByDateRange in interface ISlotDAOnIdForm - the Form IdstartingDateTime - the starting dateendingDateTime - the ending dateplugin - the pluginpublic List<Slot> findIsSpecificByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindIsSpecificByIdForm in interface ISlotDAOnIdForm - the Form Idplugin - the pluginpublic List<Slot> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindByIdForm in interface ISlotDAOnIdForm - the form idplugin - the pluginpublic List<Slot> findOpenSlotsByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindOpenSlotsByIdFormAndDateRange in interface ISlotDAOnIdForm - the Form IdstartingDateTime - the starting dateendingDateTime - the ending dateplugin - the pluginpublic List<Slot> findOpenSlotsByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindOpenSlotsByIdForm in interface ISlotDAOnIdForm - the Form Idplugin - the pluginpublic List<Slot> findByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindByIdAppointment in interface ISlotDAOnIdAppointment - the appointment idplugin - the pluginpublic Slot findSlotWithMaxDate(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindSlotWithMaxDate in interface ISlotDAOnIdForm - the form idplugin - the pluginpublic void updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces,
int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOupdatePotentialRemainingPlaces in interface ISlotDAOpublic void resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOresetPotentialRemainingPlaces in interface ISlotDAOplugin - the pluginpublic List<LocalDate> findSpecificSlotDates(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAOfindSpecificSlotDates in interface ISlotDAOnIdForm - the id Formplugin - the pluginCopyright © 2021 City of Paris. All rights reserved.