|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated 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
OptimisticTransactionContext
, which creates and maintains
an instance of TransactionWorkspace for each
transaction running.
Method Summary | |
---|---|
void |
addNode(WorkspaceNode<K,V> node)
Deprecated. Is thread safe so you dont need to deal with synchronising access to this method. |
void |
clearNodes()
Deprecated. Empties the collection of nodes held by this workspace. |
WorkspaceNode<K,V> |
getNode(Fqn fqn)
Deprecated. |
Map<Fqn,WorkspaceNode<K,V>> |
getNodes()
Deprecated. |
SortedMap<Fqn,WorkspaceNode<K,V>> |
getNodesAfter(Fqn fqn)
Deprecated. Returns all nodes equal to or after the given node. |
boolean |
hasNode(Fqn fqn)
Deprecated. returns true if the workspace contains a node with specified Fqn |
boolean |
isVersioningImplicit()
Deprecated. Tests if versioning is implicit for a given tx. |
WorkspaceNode<K,V> |
removeNode(Fqn fqn)
Deprecated. Is thread safe so you dont need to deal with synchronising access to this method. |
void |
setNodes(Map<Fqn,WorkspaceNode<K,V>> nodes)
Deprecated. |
void |
setVersioningImplicit(boolean versioningImplicit)
Deprecated. Sets if versioning is implicit for a given tx. |
Method Detail |
---|
Map<Fqn,WorkspaceNode<K,V>> getNodes()
WorkspaceNode
s, keyed on Fqn
void setNodes(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)
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 |