public class IscsiWriteTrx extends Object implements IIscsiWriteTrx
Constructor and Description |
---|
IscsiWriteTrx(IBucketWriteTrx pPageTrx,
ISession pSession)
Create a new IscsiWriteTrx
|
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort all modifications of the exclusive write transaction.
|
void |
bootstrap(byte[] bytes)
This method inserts the given data into the database.
|
void |
close()
Close this transaction
|
void |
commit()
ICommitStrategy all modifications of the exclusive write transaction.
|
BlockDataElement |
getCurrentData()
The data that the cursor currently points on
|
byte[] |
getValueOfCurrentData()
A quick get method to get the value of the current data.
|
boolean |
isClosed()
Check whether or not this transaction has been closed
|
boolean |
moveTo(long pKey)
Move the cursor to the given data key
|
void |
setValue(byte[] val)
Set value of data.
|
public IscsiWriteTrx(IBucketWriteTrx pPageTrx, ISession pSession) throws TTException
pPageTrx
- delegation page transactionpSession
- session from treetankTTException
public void bootstrap(byte[] bytes) throws TTException
bootstrap
in interface IIscsiWriteTrx
TTException
public void setValue(byte[] val) throws TTException
setValue
in interface IIscsiWriteTrx
val
- new value of dataTTException
- if value couldn't be setpublic void commit() throws TTException
commit
in interface IIscsiWriteTrx
TTException
- if this revision couldn't be commitedpublic void abort() throws TTException
abort
in interface IIscsiWriteTrx
TTException
- if this revision couldn't be abortedpublic boolean moveTo(long pKey)
moveTo
in interface IIscsiReadTrx
public byte[] getValueOfCurrentData()
getValueOfCurrentData
in interface IIscsiReadTrx
public BlockDataElement getCurrentData()
getCurrentData
in interface IIscsiReadTrx
public void close() throws TTIOException
close
in interface IIscsiReadTrx
TTIOException
public boolean isClosed()
isClosed
in interface IIscsiReadTrx
Copyright © 2013. All Rights Reserved.