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

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

public final class DatabaseBlobStoreDAO
extends java.lang.Object
implements IDatabaseBlobStoreDAO

BlobStoreDAO


Constructor Summary
DatabaseBlobStoreDAO()
           
 
Method Summary
 void delete(java.lang.String strId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Delete a record from the table
 void insert(BytesBlobStore blobStore, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert a new record in the table.
 void insert(InputStreamBlobStore blobStore, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Insert the InputStreamDatabaseBlobStore
 BytesBlobStore load(java.lang.String strId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the data from the table
 java.io.InputStream loadInputStream(java.lang.String strId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Load the inputstream from the table
 java.lang.String loadLastPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Get the last primary key
 void store(BytesBlobStore blobStore, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the data in the table
 void store(InputStreamBlobStore blobStore, fr.paris.lutece.portal.service.plugin.Plugin plugin)
          Update the data in the table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseBlobStoreDAO

public DatabaseBlobStoreDAO()
Method Detail

loadLastPrimaryKey

public java.lang.String loadLastPrimaryKey(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the last primary key

Specified by:
loadLastPrimaryKey in interface IDatabaseBlobStoreDAO
Parameters:
plugin - Plugin
Returns:
The last primary key

insert

public void insert(BytesBlobStore blobStore,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.

Specified by:
insert in interface IDatabaseBlobStoreDAO
Parameters:
blobStore - instance of the object to insert
plugin - Plugin

load

public BytesBlobStore load(java.lang.String strId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table

Specified by:
load in interface IDatabaseBlobStoreDAO
Parameters:
strId - The identifier
plugin - Plugin
Returns:
the instance of the PhysicalFile

delete

public void delete(java.lang.String strId,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Delete a record from the table

Specified by:
delete in interface IDatabaseBlobStoreDAO
Parameters:
strId - The identifier
plugin - Plugin

store

public void store(BytesBlobStore blobStore,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the data in the table

Specified by:
store in interface IDatabaseBlobStoreDAO
Parameters:
blobStore - instance of the object to update
plugin - Plugin

insert

public void insert(InputStreamBlobStore blobStore,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert the InputStreamDatabaseBlobStore

Specified by:
insert in interface IDatabaseBlobStoreDAO
Parameters:
blobStore - the InputStreamDatabaseBlobStore
plugin - the Plugin

store

public void store(InputStreamBlobStore blobStore,
                  fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the data in the table

Specified by:
store in interface IDatabaseBlobStoreDAO
Parameters:
blobStore - instance of the object to update
plugin - Plugin

loadInputStream

public java.io.InputStream loadInputStream(java.lang.String strId,
                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the inputstream from the table

Specified by:
loadInputStream in interface IDatabaseBlobStoreDAO
Parameters:
strId - The identifier
plugin - Plugin
Returns:
the instance of the PhysicalFile


Copyright © 2011 Mairie de Paris. All Rights Reserved.