fr.paris.lutece.plugins.blobstore.business.database
Class DatabaseBlobStoreHome

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.business.database.DatabaseBlobStoreHome

public final class DatabaseBlobStoreHome
extends java.lang.Object

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


Method Summary
static void create(BytesBlobStore blobStore)
          Creation of an instance of record physical file
static void createInputStream(InputStreamBlobStore blobStore)
          Creation of an instance of record physical file
static BytesBlobStore findByPrimaryKey(java.lang.String strKey)
          Returns an instance of a physical file whose identifier is specified in parameter
static java.io.InputStream findByPrimaryKeyInputStream(java.lang.String strKey)
          Returns an instance of a physical file whose identifier is specified in parameter
static java.lang.String getLastPrimaryKey()
          Get the last primary key
static void remove(java.lang.String strKey)
          Delete the physical file whose identifier is specified in parameter
static void update(BytesBlobStore blobStore)
          Update of physical file which is specified in parameter
static void updateInputStream(InputStreamBlobStore blobStore)
          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

getLastPrimaryKey

public static java.lang.String getLastPrimaryKey()
Get the last primary key

Returns:
The last primary key

create

public static void create(BytesBlobStore blobStore)
Creation of an instance of record physical file

Parameters:
blobStore - The instance of the physical file which contains the informations to store

update

public static void update(BytesBlobStore blobStore)
Update of physical file which is specified in parameter

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

updateInputStream

public static void updateInputStream(InputStreamBlobStore blobStore)
Update of physical file which is specified in parameter

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

remove

public static void remove(java.lang.String strKey)
Delete the physical file whose identifier is specified in parameter

Parameters:
strKey - The identifier of the record physical file

findByPrimaryKey

public static BytesBlobStore findByPrimaryKey(java.lang.String strKey)
Returns an instance of a physical file whose identifier is specified in parameter

Parameters:
strKey - The file primary key
Returns:
an instance of physical file

findByPrimaryKeyInputStream

public static java.io.InputStream findByPrimaryKeyInputStream(java.lang.String strKey)
Returns an instance of a physical file whose identifier is specified in parameter

Parameters:
strKey - The file primary key
Returns:
an instance of physical file

createInputStream

public static void createInputStream(InputStreamBlobStore blobStore)
Creation of an instance of record physical file

Parameters:
blobStore - The instance of the physical file which contains the inputstream to store


Copyright © 2011 Mairie de Paris. All Rights Reserved.