Package com.db4o.internal.slots
Class SlotChange
- java.lang.Object
-
- com.db4o.foundation.Tree<java.lang.Integer>
-
- com.db4o.internal.TreeInt
-
- com.db4o.internal.slots.SlotChange
-
- All Implemented Interfaces:
DeepClone
,ShallowClone
,Visitable<java.lang.Integer>
,Readable
,ReadWriteable
- Direct Known Subclasses:
SystemSlotChange
public class SlotChange extends TreeInt
-
-
Field Summary
Fields Modifier and Type Field Description protected Slot
_newSlot
-
Fields inherited from class com.db4o.foundation.Tree
_preceding, _size, _subsequent
-
-
Constructor Summary
Constructors Constructor Description SlotChange(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accumulateFreeSlot(TransactionalIdSystemImpl idSystem, FreespaceCommitter freespaceCommitter, boolean forFreespace)
protected boolean
forFreespace()
protected void
free(FreespaceManager freespaceManager, Slot slot)
protected void
freePreviouslyModifiedSlot(FreespaceManager freespaceManager)
protected boolean
freeToSystemFreespaceSystem()
boolean
isDeleted()
boolean
isNew()
protected Slot
modifiedSlotInParentIdSystem(TransactionalIdSystemImpl idSystem)
Slot
newSlot()
FIXME: Check where pointers should be freed on commit.void
notifyDeleted(FreespaceManager freespaceManager)
void
notifySlotCreated(Slot slot)
void
notifySlotUpdated(FreespaceManager freespaceManager, Slot slot)
java.lang.Object
read(ByteArrayBuffer reader)
boolean
removeId()
void
rollback(FreespaceManager freespaceManager)
java.lang.Object
shallowClone()
boolean
slotModified()
java.lang.String
toString()
void
write(ByteArrayBuffer writer)
void
writePointer(LocalObjectContainer container)
-
Methods inherited from class com.db4o.internal.TreeInt
add, addAll, compare, duplicates, equals, find, find, key, marshalledLength, marshalledLength, marshalledLength, ownLength, removeLike, shallowCloneInternal, write, write
-
Methods inherited from class com.db4o.foundation.Tree
accept, add, add, add, addedOrExisting, balance, balanceCheckNulls, calculateSize, deepClone, deepClone, depth, filter, find, find, findGreaterOrEqual, findSmaller, first, last, last, nodes, onAttemptToAddDuplicate, ownSize, remove, removeChildren, removeFirst, removeLike, removeLike, removeNode, root, rotateLeft, rotateRight, setSizeOwn, setSizeOwnPlus, setSizeOwnPlus, setSizeOwnPreceding, setSizeOwnPrecedingSubsequent, setSizeOwnSubsequent, size, size, traverse, traverse, traverse, traverseFromLeaves, wasAddedToTree
-
-
-
-
Field Detail
-
_newSlot
protected Slot _newSlot
-
-
Method Detail
-
shallowClone
public java.lang.Object shallowClone()
- Specified by:
shallowClone
in interfaceShallowClone
- Overrides:
shallowClone
in classTreeInt
-
accumulateFreeSlot
public void accumulateFreeSlot(TransactionalIdSystemImpl idSystem, FreespaceCommitter freespaceCommitter, boolean forFreespace)
-
forFreespace
protected boolean forFreespace()
-
modifiedSlotInParentIdSystem
protected Slot modifiedSlotInParentIdSystem(TransactionalIdSystemImpl idSystem)
-
isDeleted
public boolean isDeleted()
-
isNew
public boolean isNew()
-
slotModified
public final boolean slotModified()
-
newSlot
public Slot newSlot()
FIXME: Check where pointers should be freed on commit. This should be triggered in this class.
-
read
public java.lang.Object read(ByteArrayBuffer reader)
-
rollback
public void rollback(FreespaceManager freespaceManager)
-
write
public void write(ByteArrayBuffer writer)
- Specified by:
write
in interfaceReadWriteable
- Overrides:
write
in classTreeInt
-
writePointer
public final void writePointer(LocalObjectContainer container)
-
notifySlotUpdated
public void notifySlotUpdated(FreespaceManager freespaceManager, Slot slot)
-
freePreviouslyModifiedSlot
protected void freePreviouslyModifiedSlot(FreespaceManager freespaceManager)
-
free
protected void free(FreespaceManager freespaceManager, Slot slot)
-
notifySlotCreated
public void notifySlotCreated(Slot slot)
-
notifyDeleted
public void notifyDeleted(FreespaceManager freespaceManager)
-
removeId
public boolean removeId()
-
freeToSystemFreespaceSystem
protected boolean freeToSystemFreespaceSystem()
-
-