Class TemporaryFileDAO

  • All Implemented Interfaces:
    ITemporaryFileDAO

    public final class TemporaryFileDAO
    extends java.lang.Object
    implements ITemporaryFileDAO
    This class provides Data Access methods for Field objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      java.util.List<TemporaryFile> 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.
      TemporaryFile load​(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of the File from the table
      java.util.List<TemporaryFile> 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 Detail

      • TemporaryFileDAO

        public TemporaryFileDAO()
    • Method Detail

      • 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 java.util.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