fr.paris.lutece.plugins.directory.business
Interface IPhysicalFileDAO

All Known Implementing Classes:
PhysicalFileDAO

public interface IPhysicalFileDAO

IPhysicalFileDAO


Method Summary
 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
 

Method Detail

newPrimaryKey

int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Generates a new primary key

Parameters:
plugin - the plugin
Returns:
The new primary key

insert

int insert(PhysicalFile physicalFile,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
physicalFile - instance of the PhysicalFile object to insert
plugin - the plugin
Returns:
the id of the new physical file

load

PhysicalFile load(int nId,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of the PhysicalFile from the table

Parameters:
nId - The identifier of the file
plugin - the plugin
Returns:
the instance of the PhysicalFile

delete

void delete(int nIdPhysicalFile,
            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Parameters:
nIdPhysicalFile - The identifier of the PhyscalFile
plugin - the plugin

store

void store(PhysicalFile physicalFile,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the physical file in the table

Parameters:
physicalFile - instance of the physicalFile object to update
plugin - the plugin


Copyright © 2010 Mairie de Paris. All Rights Reserved.