fr.paris.lutece.plugins.form.business
Class FormDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.form.business.FormDAO
All Implemented Interfaces:
IFormDAO

public final class FormDAO
extends java.lang.Object
implements IFormDAO

class FormDAO


Constructor Summary
FormDAO()
           
 
Method Summary
 void delete(int nIdForm, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 fr.paris.lutece.util.ReferenceList getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all enable form returns them in a reference list
 int insert(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Form load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the Form from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 java.util.List<Form> selectFormList(FormFilter filter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of all the form who verify the filter and returns them in a list
 void store(Form form, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the form in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormDAO

public FormDAO()
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 int insert(Form form,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IFormDAO
Parameters:
form - instance of the Form to insert
plugin - the plugin
Returns:
the new form create

load

public Form load(int nId,
                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the Form from the table

Specified by:
load in interface IFormDAO
Parameters:
nId - The identifier of the form
plugin - the plugin
Returns:
the instance of the Form

delete

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

Specified by:
delete in interface IFormDAO
Parameters:
nIdForm - The identifier of the form
plugin - the plugin

store

public void store(Form form,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the form in the table

Specified by:
store in interface IFormDAO
Parameters:
form - instance of the Form object to update
plugin - the plugin

selectFormList

public java.util.List<Form> selectFormList(FormFilter filter,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the form who verify the filter and returns them in a list

Specified by:
selectFormList in interface IFormDAO
Parameters:
filter - the filter
plugin - the plugin
Returns:
the list of form

getEnableFormList

public fr.paris.lutece.util.ReferenceList getEnableFormList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all enable form returns them in a reference list

Specified by:
getEnableFormList in interface IFormDAO
Parameters:
plugin - the plugin
Returns:
a reference list of form


Copyright © 2010 Mairie de Paris. All Rights Reserved.