Package com.db4o.internal.btree
Class BTreeUpdate
- java.lang.Object
-
- com.db4o.internal.btree.BTreePatch
-
- com.db4o.internal.btree.BTreeUpdate
-
- Direct Known Subclasses:
BTreeCancelledRemoval
,BTreeRemove
public abstract class BTreeUpdate extends BTreePatch
-
-
Field Summary
Fields Modifier and Type Field Description protected BTreeUpdate
_next
-
Fields inherited from class com.db4o.internal.btree.BTreePatch
_object, _transaction
-
-
Constructor Summary
Constructors Constructor Description BTreeUpdate(Transaction transaction, java.lang.Object obj)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
adjustSizeOnRemovalByOtherTransaction(BTree btree, BTreeNode node)
void
append(BTreeUpdate patch)
protected void
applyKeyChange(java.lang.Object obj)
java.lang.Object
commit(Transaction trans, BTree btree, BTreeNode node)
protected abstract void
committed(BTree btree)
BTreePatch
forTransaction(Transaction trans)
protected abstract java.lang.Object
getCommittedObject()
protected boolean
hasNext()
protected java.lang.Object
internalCommit(Transaction trans, BTree btree)
java.lang.Object
key(Transaction trans)
void
removedBy(Transaction trans, BTree btree, BTreeNode node)
BTreeUpdate
removeFor(Transaction trans)
BTreeUpdate
replacePatch(BTreePatch patch, BTreeUpdate update)
java.lang.Object
rollback(Transaction trans, BTree btree)
protected abstract int
sizeDiff()
int
sizeDiff(Transaction trans)
-
Methods inherited from class com.db4o.internal.btree.BTreePatch
getObject, isAdd, isCancelledRemoval, isRemove, toString
-
-
-
-
Field Detail
-
_next
protected BTreeUpdate _next
-
-
Constructor Detail
-
BTreeUpdate
public BTreeUpdate(Transaction transaction, java.lang.Object obj)
-
-
Method Detail
-
hasNext
protected boolean hasNext()
-
forTransaction
public BTreePatch forTransaction(Transaction trans)
- Specified by:
forTransaction
in classBTreePatch
-
removeFor
public BTreeUpdate removeFor(Transaction trans)
-
append
public void append(BTreeUpdate patch)
-
applyKeyChange
protected void applyKeyChange(java.lang.Object obj)
-
committed
protected abstract void committed(BTree btree)
-
commit
public java.lang.Object commit(Transaction trans, BTree btree, BTreeNode node)
- Specified by:
commit
in classBTreePatch
-
internalCommit
protected final java.lang.Object internalCommit(Transaction trans, BTree btree)
-
getCommittedObject
protected abstract java.lang.Object getCommittedObject()
-
rollback
public java.lang.Object rollback(Transaction trans, BTree btree)
- Specified by:
rollback
in classBTreePatch
-
key
public java.lang.Object key(Transaction trans)
- Specified by:
key
in classBTreePatch
-
replacePatch
public BTreeUpdate replacePatch(BTreePatch patch, BTreeUpdate update)
-
removedBy
public void removedBy(Transaction trans, BTree btree, BTreeNode node)
-
adjustSizeOnRemovalByOtherTransaction
protected abstract void adjustSizeOnRemovalByOtherTransaction(BTree btree, BTreeNode node)
-
sizeDiff
public int sizeDiff(Transaction trans)
- Specified by:
sizeDiff
in classBTreePatch
-
sizeDiff
protected abstract int sizeDiff()
-
-