Class FileHome

java.lang.Object
fr.paris.lutece.portal.business.file.FileHome

public final class FileHome extends Object
This class provides instances management methods (create, find, ...) for file objects
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    create(File file)
    Creation of an instance of record file
    static File
    findByPrimaryKey(int nKey)
    Returns an instance of a file whose identifier is specified in parameter
    static void
    remove(int nIdFile)
    Delete the file whose identifier is specified in parameter
    static void
    update(File file)
    Update of file which is specified in parameter

    Methods inherited from class java.lang.Object

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

    • create

      public static int create(File file)
      Creation of an instance of record file
      Parameters:
      file - The instance of the file which contains the informations to store
      Returns:
      the id of the file after creation
    • update

      public static void update(File file)
      Update of file which is specified in parameter
      Parameters:
      file - The instance of the record file which contains the informations to update
    • remove

      public static void remove(int nIdFile)
      Delete the file whose identifier is specified in parameter
      Parameters:
      nIdFile - The identifier of the record file
    • findByPrimaryKey

      public static File findByPrimaryKey(int nKey)
      Returns an instance of a file whose identifier is specified in parameter
      Parameters:
      nKey - The file primary key
      Returns:
      an instance of file