public class TransBlob extends TransactionalComponentLifecycle<org.apache.jena.dboe.trans.data.TransBlob.BlobState>
TransactionalComponentLifecycle.ComponentState<X>| Constructor and Description |
|---|
TransBlob(ComponentId cid,
org.apache.jena.dboe.base.file.BufferChannel file) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanStart() |
void |
finishRecovery() |
ByteBuffer |
getBlob() |
String |
getString()
Get data as string - convenience operation
|
void |
recover(ByteBuffer ref) |
void |
setBlob(ByteBuffer bb)
Set the byte buffer.
|
void |
setString(String dataStr)
Set data from string - convenience operation
|
void |
startRecovery() |
String |
toString() |
abort, attach, begin, commit, commitEnd, commitPrepare, complete, detach, getComponentId, getComponentState, promote, setComponentState, shutdownpublic TransBlob(ComponentId cid, org.apache.jena.dboe.base.file.BufferChannel file)
public void setBlob(ByteBuffer bb)
getBlob().
We avoid a copy in and copy out - we trust the caller.
The byte buffer should be configured for read if used with getString().public ByteBuffer getBlob()
public void setString(String dataStr)
public String getString()
public void startRecovery()
startRecovery in interface TransactionalComponentstartRecovery in class TransactionalComponentLifecycle<org.apache.jena.dboe.trans.data.TransBlob.BlobState>public void recover(ByteBuffer ref)
recover in interface TransactionalComponentrecover in class TransactionalComponentLifecycle<org.apache.jena.dboe.trans.data.TransBlob.BlobState>public void finishRecovery()
finishRecovery in interface TransactionalComponentfinishRecovery in class TransactionalComponentLifecycle<org.apache.jena.dboe.trans.data.TransBlob.BlobState>public void cleanStart()
Licensed under the Apache License, Version 2.0