|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.optimistic.TransactionWorkspaceImpl
public class TransactionWorkspaceImpl
Contains a mapping of Fqn to WorkspaceNodes.
Each entry corresponds to a series of changed nodes within the transaction.
| Constructor Summary | |
|---|---|
TransactionWorkspaceImpl()
|
|
| Method Summary | |
|---|---|
void |
addNode(WorkspaceNode node)
Is thread safe so you dont need to deal with synchronising access to this method. |
TreeCache |
getCache()
|
WorkspaceNode |
getNode(Fqn fqn)
|
java.util.Map |
getNodes()
Returns the nodes. |
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 |
setCache(TreeCache cache)
|
void |
setNodes(java.util.Map nodes)
Sets the nodes. |
void |
setVersioningImplicit(boolean versioningImplicit)
Sets if versioning is implicit for a given tx. |
java.lang.String |
toString()
Returns debug information. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionWorkspaceImpl()
| Method Detail |
|---|
public void setCache(TreeCache cache)
public TreeCache getCache()
public java.util.Map getNodes()
getNodes in interface TransactionWorkspaceWorkspaceNodes, keyed on Fqnpublic void setNodes(java.util.Map nodes)
setNodes in interface TransactionWorkspacenodes - The nodes to set. Takes WorkspaceNodes.public WorkspaceNode getNode(Fqn fqn)
getNode in interface TransactionWorkspacepublic void addNode(WorkspaceNode node)
TransactionWorkspace
addNode in interface TransactionWorkspacepublic java.lang.Object removeNode(Fqn fqn)
TransactionWorkspace
removeNode in interface TransactionWorkspacepublic java.util.SortedMap getNodesAfter(Fqn fqn)
TransactionWorkspace
getNodesAfter in interface TransactionWorkspacepublic boolean isVersioningImplicit()
TransactionWorkspace
isVersioningImplicit in interface TransactionWorkspacepublic void setVersioningImplicit(boolean versioningImplicit)
TransactionWorkspace
setVersioningImplicit in interface TransactionWorkspacepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||