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

All Known Implementing Classes:
FileDAO

public interface IFileDAO

IFileDAO


Method Summary
 void delete(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 int insert(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 File load(int nId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data of the File from the table
 int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Generates a new primary key
 void store(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the 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(File file,
           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Parameters:
file - instance of the File object to insert
plugin - the plugin
Returns:
the id of the new file

load

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

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

delete

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

Parameters:
nIdFile - The identifier of the file
plugin - the plugin

store

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

Parameters:
file - instance of the File object to update
plugin - the plugin


Copyright © 2009 Mairie de Paris. All Rights Reserved.