fr.paris.lutece.plugins.blobstore.business.database
Interface IDatabaseBlobStoreDAO


public interface IDatabaseBlobStoreDAO

IBlobStoreDAO.


Method Summary
 void delete(String strId)
          Delete a record from the table.
 void insert(BytesBlobStore blobStore)
          Insert a new record in the table.
 void insert(InputStreamBlobStore blobStore)
          Insert the InputStreamDatabaseBlobStore.
 BytesBlobStore load(String strId)
          Load the data from the table.
 InputStream loadInputStream(String strId)
          Load the inputstream from the table.
 String loadLastPrimaryKey()
          Get the last primary key.
 void store(BytesBlobStore blobStore)
          Update the data in the table.
 void store(InputStreamBlobStore blobStore)
          Update the data in the table.
 

Method Detail

loadLastPrimaryKey

String loadLastPrimaryKey()
Get the last primary key.

Returns:
The last primary key

insert

void insert(BytesBlobStore blobStore)
Insert a new record in the table.

Parameters:
blobStore - instance of the object to insert

load

BytesBlobStore load(String strId)
Load the data from the table.

Parameters:
strId - The identifier
Returns:
the instance of the PhysicalFile

loadInputStream

InputStream loadInputStream(String strId)
Load the inputstream from the table.

Parameters:
strId - The identifier
Returns:
the instance of the PhysicalFile

delete

void delete(String strId)
Delete a record from the table.

Parameters:
strId - The identifier

store

void store(BytesBlobStore blobStore)
Update the data in the table.

Parameters:
blobStore - instance of the object to update

insert

void insert(InputStreamBlobStore blobStore)
Insert the InputStreamDatabaseBlobStore.

Parameters:
blobStore - the InputStreamDatabaseBlobStore

store

void store(InputStreamBlobStore blobStore)
Update the data in the table.

Parameters:
blobStore - instance of the object to update


Copyright © 2014 Mairie de Paris. All Rights Reserved.