fr.paris.lutece.portal.business.file
Interface IFileDAO

All Known Implementing Classes:
FileDAO

public interface IFileDAO

IFileDAO


Method Summary
 void delete(int nIdFile)
          Delete a record from the table
 int insert(File file)
          Insert a new record in the table.
 File load(int nId)
          Load the data of the File from the table
 int newPrimaryKey()
          Generates a new primary key
 void store(File file)
          Update the file in the table
 

Method Detail

newPrimaryKey

int newPrimaryKey()
Generates a new primary key

Returns:
The new primary key

insert

int insert(File file)
Insert a new record in the table.

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

load

File load(int nId)
Load the data of the File from the table

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

delete

void delete(int nIdFile)
Delete a record from the table

Parameters:
nIdFile - The identifier of the file

store

void store(File file)
Update the file in the table

Parameters:
file - instance of the File object to update


Copyright © 2012 Mairie de Paris. All Rights Reserved.