fr.paris.lutece.plugins.appointment.business
Class AppointmentFormDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.appointment.business.AppointmentFormDAO
All Implemented Interfaces:
IAppointmentFormDAO

public final class AppointmentFormDAO
extends Object
implements IAppointmentFormDAO

This class provides Data Access methods for AppointmentForm objects


Constructor Summary
AppointmentFormDAO()
           
 
Method Summary
 void delete(int nAppointmentFormId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(AppointmentForm appointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 AppointmentForm load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 List<AppointmentForm> selectActiveAppointmentFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all active appointmentForm objects and returns them as a collection
 List<AppointmentForm> selectAppointmentFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the appointmentForm objects and returns them as a collection
 void store(AppointmentForm appointmentForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the record in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppointmentFormDAO

public AppointmentFormDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - The Plugin
Returns:
The new primary key

insert

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

Specified by:
insert in interface IAppointmentFormDAO
Parameters:
appointmentForm - instance of the AppointmentForm object to insert
plugin - the Plugin

load

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

Specified by:
load in interface IAppointmentFormDAO
Parameters:
nKey - The identifier of the appointmentForm
plugin - the Plugin
Returns:
The instance of the appointmentForm

delete

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

Specified by:
delete in interface IAppointmentFormDAO
Parameters:
nAppointmentFormId - int identifier of the AppointmentForm to delete
plugin - the Plugin

store

public void store(AppointmentForm appointmentForm,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table

Specified by:
store in interface IAppointmentFormDAO
Parameters:
appointmentForm - the reference of the AppointmentForm
plugin - the Plugin

selectAppointmentFormsList

public List<AppointmentForm> selectAppointmentFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the appointmentForm objects and returns them as a collection

Specified by:
selectAppointmentFormsList in interface IAppointmentFormDAO
Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the appointmentForm objects

selectActiveAppointmentFormsList

public List<AppointmentForm> selectActiveAppointmentFormsList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all active appointmentForm objects and returns them as a collection

Specified by:
selectActiveAppointmentFormsList in interface IAppointmentFormDAO
Parameters:
plugin - the Plugin
Returns:
The collection which contains the data of all the appointmentForm objects


Copyright © 2014 Mairie de Paris. All Rights Reserved.