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