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

java.lang.Object
  extended by fr.paris.lutece.plugins.directory.business.PhysicalFileHome

public final class PhysicalFileHome
extends java.lang.Object

This class provides instances management methods (create, find, ...) for physical file objects


Method Summary
static int create(PhysicalFile physicalFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of record physical file
static PhysicalFile findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a physical file whose identifier is specified in parameter
static void remove(int nIdPhysicalFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the physical file whose identifier is specified in parameter
static void update(PhysicalFile physicalFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of physical file which is specified in parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static int create(PhysicalFile physicalFile,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of record physical file

Parameters:
physicalFile - The instance of the physical file which contains the informations to store
plugin - the plugin
Returns:
the id of the file after creation

update

public static void update(PhysicalFile physicalFile,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of physical file which is specified in parameter

Parameters:
physicalFile - The instance of the record physicalFile which contains the informations to update
plugin - the Plugin

remove

public static void remove(int nIdPhysicalFile,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete the physical file whose identifier is specified in parameter

Parameters:
nIdPhysicalFile - The identifier of the record physical file
plugin - the Plugin

findByPrimaryKey

public static PhysicalFile findByPrimaryKey(int nKey,
                                            fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a physical file whose identifier is specified in parameter

Parameters:
nKey - The file primary key
plugin - the Plugin
Returns:
an instance of physical file


Copyright © 2012 Mairie de Paris. All Rights Reserved.