Class TemporaryFileDAO

java.lang.Object
fr.paris.lutece.plugins.filegenerator.business.TemporaryFileDAO
All Implemented Interfaces:
ITemporaryFileDAO

@ApplicationScoped public final class TemporaryFileDAO extends Object implements ITemporaryFileDAO
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, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    findByUser(fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load all the files of an user.
    int
    insert(TemporaryFile file, 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 File from the table
    selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Select files older than the given number of days
    void
    store(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the file in the table

    Methods inherited from class java.lang.Object

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

    • TemporaryFileDAO

      public TemporaryFileDAO()
  • Method Details

    • insert

      public int insert(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface ITemporaryFileDAO
      Parameters:
      file - instance of the File object to insert
      Returns:
      the id of the new file
    • load

      public TemporaryFile load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the File from the table
      Specified by:
      load in interface ITemporaryFileDAO
      Parameters:
      nId - The identifier of the file
      Returns:
      the instance of the File
    • findByUser

      public List<TemporaryFile> findByUser(fr.paris.lutece.portal.business.user.AdminUser user, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITemporaryFileDAO
      Load all the files of an user.
      Specified by:
      findByUser in interface ITemporaryFileDAO
      Parameters:
      user - the user
      Returns:
      the list of File
    • delete

      public void delete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Specified by:
      delete in interface ITemporaryFileDAO
      Parameters:
      nIdFile - The identifier of the file
    • store

      public void store(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the file in the table
      Specified by:
      store in interface ITemporaryFileDAO
      Parameters:
      file - instance of the File object to update
    • selectFilesOlderThan

      public List<TemporaryFile> selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: ITemporaryFileDAO
      Select files older than the given number of days
      Specified by:
      selectFilesOlderThan in interface ITemporaryFileDAO