Class TemporaryFileDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.filegenerator.business.TemporaryFileDAO
-
- All Implemented Interfaces:
ITemporaryFileDAO
public final class TemporaryFileDAO extends java.lang.Object implements ITemporaryFileDAO
This class provides Data Access methods for Field objects
-
-
Constructor Summary
Constructors Constructor Description TemporaryFileDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablejava.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.intinsert(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.TemporaryFileload(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of the File from the tablejava.util.List<TemporaryFile>selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin)Select files older than the given number of daysvoidstore(TemporaryFile file, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the file in the table
-
-
-
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:
insertin interfaceITemporaryFileDAO- 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:
loadin interfaceITemporaryFileDAO- 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:ITemporaryFileDAOLoad all the files of an user.- Specified by:
findByUserin interfaceITemporaryFileDAO- 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:
deletein interfaceITemporaryFileDAO- 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:
storein interfaceITemporaryFileDAO- Parameters:
file- instance of the File object to update
-
selectFilesOlderThan
public java.util.List<TemporaryFile> selectFilesOlderThan(int days, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:ITemporaryFileDAOSelect files older than the given number of days- Specified by:
selectFilesOlderThanin interfaceITemporaryFileDAO
-
-