fr.paris.lutece.plugins.appointment.business
Interface IAppointmentDAO

All Known Implementing Classes:
AppointmentDAO

public interface IAppointmentDAO

IAppointmentDAO Interface


Method Summary
 int countAppointmentsByIdForm(int nIdForm, Date date, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the number of appointments associated with a given form and with a date after a given date
 void delete(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void deleteAppointmentResponse(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove the association between an appointment and responses
 int findIdAppointmentByIdResponse(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Find the id of the appointment associated with a given response
 List<Integer> findListIdResponse(int nIdAppointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of id of responses associated with an appointment
 int getNbAppointmentByIdDay(Date dateAppointment, int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the number of appointment of a given date and associated with a given form
 void insert(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insertAppointmentResponse(int nIdAppointment, int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Associates a response to an appointment
 Appointment load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 void removeAppointmentResponsesByIdResponse(int nIdResponse, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Remove an appointment responses from the id of a response.
 List<Integer> selectAppointmentIdByFilter(AppointmentFilter appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of ids of appointments matching a given filter
 List<Appointment> selectAppointmentListByFilter(AppointmentFilter appointmentFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the list of appointments matching a given filter
 List<Appointment> selectAppointmentListById(List<Integer> listIdAppointments, String strOrderBy, boolean bSortAsc, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get a list of appointments from their ids
 List<Appointment> selectAppointmentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the appointment objects and returns them as a collection
 List<Appointment> selectAppointmentsListByIdForm(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of appointment objects associated with a given form and returns them in a collection
 void store(Appointment appointment, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 

Method Detail

insert

void insert(Appointment appointment,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
appointment - instance of the Appointment object to insert
plugin - the Plugin

store

void store(Appointment appointment,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Parameters:
appointment - the reference of the Appointment
plugin - the Plugin

delete

void delete(int nIdAppointment,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdAppointment - int identifier of the Appointment to delete
plugin - the Plugin

load

Appointment load(int nKey,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Parameters:
nKey - The identifier of the appointment
plugin - the Plugin
Returns:
The instance of the appointment

selectAppointmentsList

List<Appointment> selectAppointmentsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the appointment objects and returns them as a collection

Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the appointment objects

selectAppointmentsListByIdForm

List<Appointment> selectAppointmentsListByIdForm(int nIdForm,
                                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of appointment objects associated with a given form and returns them in a collection

Parameters:
nIdForm - the id of the form
plugin - the Plugin
Returns:
the collection which contains the data of appointment objects

selectAppointmentListByFilter

List<Appointment> selectAppointmentListByFilter(AppointmentFilter appointmentFilter,
                                                fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of appointments matching a given filter

Parameters:
appointmentFilter - The filter appointments must match
plugin - The plugin
Returns:
The list of appointments that match the given filter

selectAppointmentIdByFilter

List<Integer> selectAppointmentIdByFilter(AppointmentFilter appointmentFilter,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of ids of appointments matching a given filter

Parameters:
appointmentFilter - The filter appointments must match
plugin - The plugin
Returns:
The list of ids of appointments that match the given filter

selectAppointmentListById

List<Appointment> selectAppointmentListById(List<Integer> listIdAppointments,
                                            String strOrderBy,
                                            boolean bSortAsc,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get a list of appointments from their ids

Parameters:
listIdAppointments - The list of ids of appointments to get
strOrderBy - The name of the column to sort rows
bSortAsc - True to sort ascending, false otherwise
plugin - The plugin
Returns:
The list of appointments which ids are given in parameters

getNbAppointmentByIdDay

int getNbAppointmentByIdDay(Date dateAppointment,
                            int nIdForm,
                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of appointment of a given date and associated with a given form

Parameters:
dateAppointment - The date of appointments to count
nIdForm - The id of the appointment form
plugin - The plugin
Returns:
the number of appointments, or 0 if no appointment was found

insertAppointmentResponse

void insertAppointmentResponse(int nIdAppointment,
                               int nIdResponse,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Associates a response to an appointment

Parameters:
nIdAppointment - The id of the appointment
nIdResponse - The id of the response
plugin - The plugin

findListIdResponse

List<Integer> findListIdResponse(int nIdAppointment,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of id of responses associated with an appointment

Parameters:
nIdAppointment - the id of the appointment
plugin - the plugin
Returns:
the list of responses, or an empty list if no response was found

deleteAppointmentResponse

void deleteAppointmentResponse(int nIdAppointment,
                               fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the association between an appointment and responses

Parameters:
nIdAppointment - The id of the appointment
plugin - The plugin

countAppointmentsByIdForm

int countAppointmentsByIdForm(int nIdForm,
                              Date date,
                              fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the number of appointments associated with a given form and with a date after a given date

Parameters:
nIdForm - The id of the form
date - The minimum date of appointments to consider
plugin - The plugin
Returns:
The number of appointments associated with the form

removeAppointmentResponsesByIdResponse

void removeAppointmentResponsesByIdResponse(int nIdResponse,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an appointment responses from the id of a response.

Parameters:
nIdResponse - The id of the response
plugin - The plugin

findIdAppointmentByIdResponse

int findIdAppointmentByIdResponse(int nIdResponse,
                                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the id of the appointment associated with a given response

Parameters:
nIdResponse - The id of the response
plugin - The plugin
Returns:
The id of the appointment, or 0 if no appointment is associated with he given response.


Copyright © 2014 Mairie de Paris. All Rights Reserved.