Constructor and Description |
---|
SlotDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
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
|
Slot |
findSlotWithMaxDate(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Return the slot with the max date
|
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
|
getNewPrimaryKey
public void insert(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
public void update(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
public void delete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
public Slot select(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
public List<Slot> findByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
findByIdFormAndDateRange
in interface ISlotDAO
nIdForm
- the Form IdstartingDateTime
- the starting dateendingDateTime
- the ending dateplugin
- the pluginpublic List<Slot> findIsSpecificByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
findIsSpecificByIdForm
in interface ISlotDAO
nIdForm
- the Form Idplugin
- the pluginpublic List<Slot> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
findByIdForm
in interface ISlotDAO
nIdForm
- the form idplugin
- the pluginpublic List<Slot> findOpenSlotsByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
findOpenSlotsByIdFormAndDateRange
in interface ISlotDAO
nIdForm
- the Form IdstartingDateTime
- the starting dateendingDateTime
- the ending dateplugin
- the pluginpublic List<Slot> findOpenSlotsByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
findOpenSlotsByIdForm
in interface ISlotDAO
nIdForm
- the Form Idplugin
- the pluginpublic Slot findSlotWithMaxDate(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
findSlotWithMaxDate
in interface ISlotDAO
nIdForm
- the form idplugin
- the pluginpublic void updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces, int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
updatePotentialRemainingPlaces
in interface ISlotDAO
public void resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
ISlotDAO
resetPotentialRemainingPlaces
in interface ISlotDAO
Copyright © 2020 City of Paris. All rights reserved.