fr.paris.lutece.plugins.directory.business
Class PhysicalFileDAO

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.PhysicalFileDAO
All Implemented Interfaces:
IPhysicalFileDAO

public final class PhysicalFileDAO
extends Object
implements IPhysicalFileDAO

This class provides Data Access methods for Field objects


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

Constructor Detail

PhysicalFileDAO

public PhysicalFileDAO()
Method Detail

newPrimaryKey

public int newPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IPhysicalFileDAO
Generates a new primary key

Specified by:
newPrimaryKey in interface IPhysicalFileDAO
Parameters:
plugin - the plugin
Returns:
The new primary key

insert

public int insert(PhysicalFile physicalFile,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IPhysicalFileDAO
Insert a new record in the table.

Specified by:
insert in interface IPhysicalFileDAO
Parameters:
physicalFile - instance of the PhysicalFile object to insert
plugin - the plugin
Returns:
the id of the new physical file

load

public PhysicalFile load(int nId,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IPhysicalFileDAO
Load the data of the PhysicalFile from the table

Specified by:
load in interface IPhysicalFileDAO
Parameters:
nId - The identifier of the file
plugin - the plugin
Returns:
the instance of the PhysicalFile

delete

public void delete(int nIdPhysicalFile,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IPhysicalFileDAO
Delete a record from the table

Specified by:
delete in interface IPhysicalFileDAO
Parameters:
nIdPhysicalFile - The identifier of the PhyscalFile
plugin - the plugin

store

public void store(PhysicalFile physicalFile,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface: IPhysicalFileDAO
Update the physical file in the table

Specified by:
store in interface IPhysicalFileDAO
Parameters:
physicalFile - instance of the physicalFile object to update
plugin - the plugin


Copyright © 2013 Mairie de Paris. All Rights Reserved.