|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TransactionWorkspace<K,V>
Used to contain a copy of the tree being worked on within the scope of a given transaction.
Maintains WorkspaceNode
s rather than conventional
OptimisticTransactionEntry
, which creates and maintains
an instance of TransactionWorkspace for each
transaction running.
Method Summary | |
---|---|
void |
addNode(WorkspaceNode<K,V> node)
Is thread safe so you dont need to deal with synchronising access to this method. |
void |
clearNodes()
Empties the collection of nodes held by this workspace. |
WorkspaceNode<K,V> |
getNode(Fqn fqn)
|
java.util.Map<Fqn,WorkspaceNode<K,V>> |
getNodes()
|
java.util.SortedMap<Fqn,WorkspaceNode<K,V>> |
getNodesAfter(Fqn fqn)
Returns all nodes equal to or after the given node. |
boolean |
hasNode(Fqn fqn)
returns true if the workspace contains a node with specified Fqn |
boolean |
isVersioningImplicit()
Tests if versioning is implicit for a given tx. |
WorkspaceNode<K,V> |
removeNode(Fqn fqn)
Is thread safe so you dont need to deal with synchronising access to this method. |
void |
setNodes(java.util.Map<Fqn,WorkspaceNode<K,V>> nodes)
|
void |
setVersioningImplicit(boolean versioningImplicit)
Sets if versioning is implicit for a given tx. |
Method Detail |
---|
java.util.Map<Fqn,WorkspaceNode<K,V>> getNodes()
WorkspaceNode
s, keyed on Fqn
void setNodes(java.util.Map<Fqn,WorkspaceNode<K,V>> nodes)
nodes
- The nodes to set. Takes WorkspaceNode
s.WorkspaceNode<K,V> getNode(Fqn fqn)
void addNode(WorkspaceNode<K,V> node)
node
- WorkspaceNode<K,V> removeNode(Fqn fqn)
java.util.SortedMap<Fqn,WorkspaceNode<K,V>> getNodesAfter(Fqn fqn)
boolean isVersioningImplicit()
void setVersioningImplicit(boolean versioningImplicit)
boolean hasNode(Fqn fqn)
void clearNodes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |