public interface ISlotDAO
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME
The name of the bean of the DAO
|
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
|
static final String BEAN_NAME
void insert(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
slot
- instance of the Slot object to insertplugin
- the pluginvoid update(Slot slot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
slot
- the reference of the Slotplugin
- the pluginvoid delete(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSlot
- identifier of the Slot to deleteplugin
- the pluginSlot select(int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdSlot
- the identifier of the Slotplugin
- the pluginList<Slot> findByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm
- the Form IdstartingDateTime
- the starting dateendingDateTime
- the ending dateplugin
- the pluginList<Slot> findIsSpecificByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm
- the Form Idplugin
- the pluginList<Slot> findByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm
- the form idplugin
- the pluginList<Slot> findOpenSlotsByIdFormAndDateRange(int nIdForm, LocalDateTime startingDateTime, LocalDateTime endingDateTime, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm
- the Form IdstartingDateTime
- the starting dateendingDateTime
- the ending dateplugin
- the pluginList<Slot> findOpenSlotsByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm
- the Form Idplugin
- the pluginSlot findSlotWithMaxDate(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdForm
- the form idplugin
- the pluginvoid updatePotentialRemainingPlaces(int nbPotentialRemainingPlaces, int nIdSlot, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nbPotentialRemainingPlaces
- nIdSlot
- plugin
- void resetPotentialRemainingPlaces(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Copyright © 2020 City of Paris. All rights reserved.