|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.appointment.business.calendar.AppointmentSlotDAO
public class AppointmentSlotDAO
DAOUtuil for appointment slot
| Constructor Summary | |
|---|---|
AppointmentSlotDAO()
|
|
| Method Summary | |
|---|---|
void |
create(AppointmentSlot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Create a new appointment slot |
void |
delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment slot from its id |
void |
deleteAllByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove appointment slots associated with a given form. |
void |
deleteByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment slot associated with a given day |
void |
deleteByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove appointment slots associated with a given form. |
void |
deleteByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete every slots associated with a given form and a given day of week |
void |
deleteOldSlots(Date dateMonday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete every slots that are associated with a day before a given day. |
List<AppointmentSlot> |
findByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every slots associated with a given day |
List<AppointmentSlot> |
findByIdDayWithFreePlaces(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given day, and compute for each slot the number of free places |
List<AppointmentSlot> |
findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find every slots associated with a given form and not associated with any day |
List<AppointmentSlot> |
findByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given form for a given day of week. |
List<AppointmentSlot> |
findByIdFormWithFreePlaces(int nIdForm,
int nDayOfWeek,
Date dateDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of slots associated with a given form for a given day of week. |
AppointmentSlot |
findByPrimaryKey(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a slot from its primary key |
AppointmentSlot |
findByPrimaryKeyWithFreePlaces(int nIdSlot,
Date date,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find a slot from its primary key. |
void |
setDefaultSlotListSize(int nDefaultSlotListSize)
Set the default size of slot lists |
void |
update(AppointmentSlot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update an appointment slot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppointmentSlotDAO()
| Method Detail |
|---|
public void create(AppointmentSlot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
create in interface IAppointmentSlotDAOslot - The appointment slot to createplugin - The plugin
public void update(AppointmentSlot slot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IAppointmentSlotDAOslot - The appointment slot to updateplugin - The plugin
public void delete(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IAppointmentSlotDAOnIdSlot - The id of the slot to removeplugin - The plugin
public void deleteAllByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteAllByIdForm in interface IAppointmentSlotDAOnIdForm - The id of the form to remove slots fromplugin - The plugin
public void deleteByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdDay in interface IAppointmentSlotDAOnIdDay - The id of the day to remove slots fromplugin - The plugin
public void deleteByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdForm in interface IAppointmentSlotDAOnIdForm - The id of the form to remove slots fromplugin - The plugin
public void deleteByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteByIdFormAndDayOfWeek in interface IAppointmentSlotDAOnIdForm - The id of the formnDayOfWeek - The day of the weekplugin - The plugin
public void deleteOldSlots(Date dateMonday,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteOldSlots in interface IAppointmentSlotDAOdateMonday - The date of the day to remove slotsplugin - The plugin
public AppointmentSlot findByPrimaryKey(int nIdSlot,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IAppointmentSlotDAOnIdSlot - the id of the slot to removeplugin - The plugin
public AppointmentSlot findByPrimaryKeyWithFreePlaces(int nIdSlot,
Date date,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKeyWithFreePlaces in interface IAppointmentSlotDAOnIdSlot - The id of the slotdate - The date of the day to check for placesplugin - The plugin
public List<AppointmentSlot> findByIdForm(int nIdForm,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdForm in interface IAppointmentSlotDAOnIdForm - the id of the formplugin - The plugin
public List<AppointmentSlot> findByIdFormAndDayOfWeek(int nIdForm,
int nDayOfWeek,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdFormAndDayOfWeek in interface IAppointmentSlotDAOnIdForm - the if of the formnDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)plugin - The plugin
public List<AppointmentSlot> findByIdDay(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdDay in interface IAppointmentSlotDAOnIdDay - the id of the dayplugin - The plugin
public List<AppointmentSlot> findByIdDayWithFreePlaces(int nIdDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdDayWithFreePlaces in interface IAppointmentSlotDAOnIdDay - The id of the dayplugin - The plugin
public List<AppointmentSlot> findByIdFormWithFreePlaces(int nIdForm,
int nDayOfWeek,
Date dateDay,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByIdFormWithFreePlaces in interface IAppointmentSlotDAOnIdForm - the if of the formnDayOfWeek - The day of the week (1 for Monday, 2 for Tuesday, ...)dateDay - The date of the dayplugin - The plugin
public void setDefaultSlotListSize(int nDefaultSlotListSize)
nDefaultSlotListSize - the default size of slot list
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||