public final class PhysicalFileDAO extends Object implements IPhysicalFileDAO
Constructor and Description |
---|
PhysicalFileDAO() |
Modifier and Type | Method and Description |
---|---|
void |
delete(int nIdPhysicalFile,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table
|
int |
insert(PhysicalFile physicalFile,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.
|
PhysicalFile |
load(int nId,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the PhysicalFile from the table
|
int |
newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key
|
void |
store(PhysicalFile physicalFile,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the physical file in the table
|
public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
newPrimaryKey
in interface IPhysicalFileDAO
plugin
- the pluginpublic int insert(PhysicalFile physicalFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IPhysicalFileDAO
physicalFile
- instance of the PhysicalFile object to insertplugin
- the pluginpublic PhysicalFile load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IPhysicalFileDAO
nId
- The identifier of the fileplugin
- the pluginpublic void delete(int nIdPhysicalFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IPhysicalFileDAO
nIdPhysicalFile
- The identifier of the PhyscalFileplugin
- the pluginpublic void store(PhysicalFile physicalFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IPhysicalFileDAO
physicalFile
- instance of the physicalFile object to updateplugin
- the pluginCopyright © 2016 City of Paris. All rights reserved.