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

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

public final class RecapDAO
extends java.lang.Object
implements IRecapDAO

This class provides Data Access methods for ReportingFiche objects


Constructor Summary
RecapDAO()
           
 
Method Summary
 void delete(int nIdRecap, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(Recap recap, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 Recap load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the recap from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 void store(Recap recap, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the recap in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecapDAO

public RecapDAO()
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(Recap recap,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IRecapDAO
Parameters:
recap - instance of the Recap object to insert
plugin - the plugin
Returns:
the id of the new recap

load

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

Specified by:
load in interface IRecapDAO
Parameters:
nId - The identifier of the recap
plugin - the plugin
Returns:
the instance of the Recap

delete

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

Specified by:
delete in interface IRecapDAO
Parameters:
nIdRecap - The identifier of the recap
plugin - the plugin

store

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

Specified by:
store in interface IRecapDAO
Parameters:
recap - instance of the Recap object to update
plugin - the plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.