Class RecapDAO

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

public final class RecapDAO extends Object implements IRecapDAO
This class provides Data Access methods for ReportingFiche objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RecapDAO

      public RecapDAO()
  • Method Details

    • 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