|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.mdr.persistence.btreeimpl.btreestorage.TransactionCache
public class TransactionCache
| Nested Class Summary | |
|---|---|
class |
TransactionCache.CacheIterator
|
static class |
TransactionCache.Record
|
| Field Summary | |
|---|---|
static byte |
OP_DELETE
|
static byte |
OP_INSERT
|
static byte |
OP_REPLACE
|
| Constructor Summary | |
|---|---|
TransactionCache()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte OP_INSERT
public static final byte OP_DELETE
public static final byte OP_REPLACE
| Constructor Detail |
|---|
public TransactionCache()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||