public class TransactionCache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
TransactionCache.CacheIterator |
static class |
TransactionCache.Record |
| Modifier and Type | Field and Description |
|---|---|
static byte |
OP_DELETE |
static byte |
OP_INSERT |
static byte |
OP_REPLACE |
| Constructor and Description |
|---|
TransactionCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addDeleted(MOFID id)
adds one delete operation
|
void |
addInserted(MOFID id,
byte[] value)
adds one insert operation
|
void |
addReplaced(MOFID id,
byte[] value)
adds one replace operation
|
void |
clear()
Resets cache (to store no operations).
|
void |
commit()
Commits operations temporarly stored in @link #operations.
|
boolean |
containsCommitedData() |
TransactionCache.CacheIterator |
iterator()
Returns cache iterator.
|
boolean |
tresholdReached() |
public static final byte OP_INSERT
public static final byte OP_DELETE
public static final byte OP_REPLACE
public boolean tresholdReached()
public boolean containsCommitedData()
public void clear()
public void addInserted(MOFID id, byte[] value)
public void addDeleted(MOFID id)
public void addReplaced(MOFID id, byte[] value)
public void commit()
public TransactionCache.CacheIterator iterator()
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.