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

java.lang.Object
  extended by fr.paris.lutece.plugins.blobstore.business.database.DatabaseBlobStoreHome
All Implemented Interfaces:
IDatabaseBlobStoreHome

public final class DatabaseBlobStoreHome
extends Object
implements IDatabaseBlobStoreHome

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


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

Field Detail

BEAN_SERVICE

public static final String BEAN_SERVICE
See Also:
Constant Field Values
Constructor Detail

DatabaseBlobStoreHome

public DatabaseBlobStoreHome()
Method Detail

getLastPrimaryKey

public String getLastPrimaryKey()
Description copied from interface: IDatabaseBlobStoreHome
Get the last primary key.

Specified by:
getLastPrimaryKey in interface IDatabaseBlobStoreHome
Returns:
The last primary key

create

public void create(BytesBlobStore blobStore)
Description copied from interface: IDatabaseBlobStoreHome
Creation of an instance of record physical file.

Specified by:
create in interface IDatabaseBlobStoreHome
Parameters:
blobStore - The instance of the physical file which contains the informations to store

update

public void update(BytesBlobStore blobStore)
Description copied from interface: IDatabaseBlobStoreHome
Update of physical file which is specified in parameter.

Specified by:
update in interface IDatabaseBlobStoreHome
Parameters:
blobStore - The instance of the record physicalFile which contains the informations to update

updateInputStream

public void updateInputStream(InputStreamBlobStore blobStore)
Description copied from interface: IDatabaseBlobStoreHome
Update of physical file which is specified in parameter.

Specified by:
updateInputStream in interface IDatabaseBlobStoreHome
Parameters:
blobStore - The instance of the record physicalFile which contains the informations to update

remove

public void remove(String strKey)
Description copied from interface: IDatabaseBlobStoreHome
Delete the physical file whose identifier is specified in parameter.

Specified by:
remove in interface IDatabaseBlobStoreHome
Parameters:
strKey - The identifier of the record physical file

findByPrimaryKey

public BytesBlobStore findByPrimaryKey(String strKey)
Description copied from interface: IDatabaseBlobStoreHome
Returns an instance of a physical file whose identifier is specified in parameter.

Specified by:
findByPrimaryKey in interface IDatabaseBlobStoreHome
Parameters:
strKey - The file primary key
Returns:
an instance of physical file

findByPrimaryKeyInputStream

public InputStream findByPrimaryKeyInputStream(String strKey)
Description copied from interface: IDatabaseBlobStoreHome
Returns an instance of a physical file whose identifier is specified in parameter.

Specified by:
findByPrimaryKeyInputStream in interface IDatabaseBlobStoreHome
Parameters:
strKey - The file primary key
Returns:
an instance of physical file

createInputStream

public void createInputStream(InputStreamBlobStore blobStore)
Description copied from interface: IDatabaseBlobStoreHome
Creation of an instance of record physical file.

Specified by:
createInputStream in interface IDatabaseBlobStoreHome
Parameters:
blobStore - The instance of the physical file which contains the inputstream to store


Copyright © 2014 Mairie de Paris. All Rights Reserved.