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

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

public final class FileHome
extends java.lang.Object

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


Method Summary
static int create(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Creation of an instance of record file
static File findByPrimaryKey(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Returns an instance of a file whose identifier is specified in parameter
static void remove(int nIdFile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete the file whose identifier is specified in parameter
static void update(File file, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update of 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(File file,
                         fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of record file

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

update

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

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

remove

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

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

findByPrimaryKey

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

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


Copyright © 2009 Mairie de Paris. All Rights Reserved.