Constructor and Description |
---|
FileDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
void |
insert(File file,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
File |
load(int nIdFile,
int nIdDirectory,
fr.paris.lutece.portal.service.plugin.Plugin plugin) |
File |
load(int nKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
Collection<File> |
selectFilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the file objects and returns them as a collection
|
Collection<Integer> |
selectIdFilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the id of all the file objects and returns them as a collection
|
void |
store(File file,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- The Pluginpublic void insert(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public File load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public File load(int nIdFile, int nIdDirectory, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public void store(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
public Collection<File> selectFilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectFilesList
in interface IFileDAO
plugin
- the Pluginpublic Collection<Integer> selectIdFilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectIdFilesList
in interface IFileDAO
plugin
- the PluginCopyright © 2016 City of Paris. All rights reserved.