Interface ISlotDAO
- All Known Implementing Classes:
SlotDAO
public interface ISlotDAO
Slot DAO Interface
- Author:
- Laurent Payen
-
Method Summary
Modifier and TypeMethodDescriptionvoiddelete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a appointment from the tablevoiddeleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a appointment from the tablefindByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the slots of a formfindByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the slots of a formfindByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the slot for the date rangefindIsSpecificByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the specific slot for the formfindOpenSlotsByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the open slotsfindOpenSlotsByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the open slots for the given date rangefindSlotWithAppointmentByDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the slot containing an appointment for the date rangefindSlotWithMaxDate(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the slot with the max datefindSpecificSlotDates(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the specific slot dates from the formvoidInsert a new record in the tablevoidresetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin) update the availabilities metricsselect(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Load the data from the tablevoidUpdate the record in the tablevoidupdatePotentialRemainingPlaces(int nbPotentialRemainingPlaces, int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) update Potential Remaining Places
-
Method Details
-
insert
Insert a new record in the table- Parameters:
slot- instance of the Slot object to insertplugin- the plugin
-
update
Update the record in the table- Parameters:
slot- the reference of the Slotplugin- the plugin
-
delete
void delete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a appointment from the table- Parameters:
nIdSlot- identifier of the Slot to deleteplugin- the plugin
-
deleteByIdForm
void deleteByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Delete a appointment from the table- Parameters:
nIdForm- identifier of the formplugin- the plugin
-
select
Load the data from the table- Parameters:
nIdSlot- the identifier of the Slotplugin- the plugin- Returns:
- the instance of the Slot
-
findByIdFormAndDateRange
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- Parameters:
nIdForm- the Form IdstartingDateTime- the starting dateendingDateTime- the ending dateplugin- the plugin- Returns:
- a list of slots whose dates are included in the given period
-
findSlotWithAppointmentByDateRange
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- Parameters:
nIdForm- the Form IdstartingDateTime- the starting dateendingDateTime- the ending dateplugin- the plugin- Returns:
- a list of slots whose dates are included in the given period and is containing an appointment
-
findIsSpecificByIdForm
Returns all the specific slot for the form- Parameters:
nIdForm- the Form Idplugin- the plugin- Returns:
- a list of specific slots
-
findByIdForm
Returns all the slots of a form- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- a list of all the slots of the form
-
findOpenSlotsByIdFormAndDateRange
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- Parameters:
nIdForm- the Form IdstartingDateTime- the starting dateendingDateTime- the ending dateplugin- the plugin- Returns:
- a list of open slots whose dates are included in the given period
-
findOpenSlotsByIdForm
Returns all the open slots- Parameters:
nIdForm- the Form Idplugin- the plugin- Returns:
- a list of open slots
-
findSlotWithMaxDate
Return the slot with the max date- Parameters:
nIdForm- the form idplugin- the plugin- Returns:
- the slot
-
findByIdAppointment
List<Slot> findByIdAppointment(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin) Returns all the slots of a form- Parameters:
nIdAppointment- the appointment idplugin- the plugin- Returns:
- a list of all the slots of the form
-
updatePotentialRemainingPlaces
void updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces, int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin) update Potential Remaining Places- Parameters:
nbPotentialRemainingPlaces-nIdSlot-plugin-
-
resetPotentialRemainingPlaces
void resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin) update the availabilities metrics- Parameters:
plugin- the plugin
-
findSpecificSlotDates
List<LocalDate> findSpecificSlotDates(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin) Return the specific slot dates from the form- Parameters:
nIdForm- the id Formplugin- the plugin- Returns:
- list of date
-