|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.bundle.BundleDbPersistenceManager.DbBlobStore
protected class BundleDbPersistenceManager.DbBlobStore
Implementation of a blob store that stores the data inside the database
| Field Summary | |
|---|---|
protected java.lang.String |
blobDeleteSQL
|
protected java.lang.String |
blobInsertSQL
|
protected java.lang.String |
blobSelectExistSQL
|
protected java.lang.String |
blobSelectSQL
|
protected java.lang.String |
blobUpdateSQL
|
| Constructor Summary | |
|---|---|
BundleDbPersistenceManager.DbBlobStore()
|
|
| Method Summary | |
|---|---|
void |
close()
|
java.lang.String |
createId(PropertyId id,
int index)
Creates a unique identifier for the BLOB data associated with the given property id and value subscript. |
java.io.InputStream |
get(java.lang.String blobId)
Retrieves the BLOB data with the specified id as a binary stream. |
void |
put(java.lang.String blobId,
java.io.InputStream in,
long size)
Stores the BLOB data and returns a unique identifier. |
boolean |
remove(java.lang.String blobId)
Removes the BLOB data with the specified id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String blobInsertSQL
protected java.lang.String blobUpdateSQL
protected java.lang.String blobSelectSQL
protected java.lang.String blobSelectExistSQL
protected java.lang.String blobDeleteSQL
| Constructor Detail |
|---|
public BundleDbPersistenceManager.DbBlobStore()
throws java.sql.SQLException
java.sql.SQLException| Method Detail |
|---|
public java.lang.String createId(PropertyId id,
int index)
createId in interface BLOBStoreid - id of the property associated with the BLOB dataindex - subscript of the value holding the BLOB data
public java.io.InputStream get(java.lang.String blobId)
throws java.lang.Exception
get in interface BLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.createId(PropertyId, int)
java.lang.Exception - if an error occured
public void put(java.lang.String blobId,
java.io.InputStream in,
long size)
throws java.lang.Exception
put in interface BLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.createId(PropertyId, int)in - stream containing the BLOB datasize - size of the BLOB data
java.lang.Exception - if an error occured
public boolean remove(java.lang.String blobId)
throws java.lang.Exception
remove in interface BLOBStoreblobId - identifier of the BLOB data as returned by
BLOBStore.createId(PropertyId, int)
true if BLOB data with the given id exists and has
been successfully removed, false if there's no BLOB
data with the given id.
java.lang.Exception - if an error occuredpublic void close()
close in interface BundleDbPersistenceManager.CloseableBLOBStore
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||