Class FileDAO

java.lang.Object
fr.paris.lutece.portal.business.file.FileDAO
All Implemented Interfaces:
IFileDAO

public final class FileDAO extends Object implements IFileDAO
This class provides Data Access methods for Field objects
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    delete(int nIdFile)
    Delete a record from the table
    int
    insert(File file)
    Insert a new record in the table.
    load(int nId)
    Load the data of the File from the table
    void
    store(File file)
    Update the file in the table

    Methods inherited from class java.lang.Object

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

    • FileDAO

      public FileDAO()
  • Method Details

    • insert

      public int insert(File file)
      Insert a new record in the table.
      Specified by:
      insert in interface IFileDAO
      Parameters:
      file - instance of the File object to insert
      Returns:
      the id of the new file
    • load

      public File load(int nId)
      Load the data of the File from the table
      Specified by:
      load in interface IFileDAO
      Parameters:
      nId - The identifier of the file
      Returns:
      the instance of the File
    • delete

      public void delete(int nIdFile)
      Delete a record from the table
      Specified by:
      delete in interface IFileDAO
      Parameters:
      nIdFile - The identifier of the file
    • store

      public void store(File file)
      Update the file in the table
      Specified by:
      store in interface IFileDAO
      Parameters:
      file - instance of the File object to update