fr.paris.lutece.portal.business.file
Class FileDAO

java.lang.Object
  extended by fr.paris.lutece.portal.business.file.FileDAO
All Implemented Interfaces:
IFileDAO

public final class FileDAO
extends java.lang.Object
implements IFileDAO

This class provides Data Access methods for Field objects


Constructor Summary
FileDAO()
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileDAO

public FileDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey()
Generates a new primary key

Specified by:
newPrimaryKey in interface IFileDAO
Returns:
The new primary key

insert

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

Specified by:
insert in interface IFileDAO
Parameters:
file - instance of the File object to insert
Returns:
the id of the new file

load

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

Specified by:
load in interface IFileDAO
Parameters:
nId - The identifier of the file
Returns:
the instance of the File

delete

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

Specified by:
delete in interface IFileDAO
Parameters:
nIdFile - The identifier of the file

store

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

Specified by:
store in interface IFileDAO
Parameters:
file - instance of the File object to update


Copyright © 2012 Mairie de Paris. All Rights Reserved.