|
||||||||||
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 WorkspaceNode
s.
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 TransactionWorkspace
WorkspaceNode
s, keyed on Fqn
public void setNodes(java.util.Map nodes)
setNodes
in interface TransactionWorkspace
nodes
- The nodes to set. Takes WorkspaceNode
s.public WorkspaceNode getNode(Fqn fqn)
getNode
in interface TransactionWorkspace
public void addNode(WorkspaceNode node)
TransactionWorkspace
addNode
in interface TransactionWorkspace
public java.lang.Object removeNode(Fqn fqn)
TransactionWorkspace
removeNode
in interface TransactionWorkspace
public java.util.SortedMap getNodesAfter(Fqn fqn)
TransactionWorkspace
getNodesAfter
in interface TransactionWorkspace
public boolean isVersioningImplicit()
TransactionWorkspace
isVersioningImplicit
in interface TransactionWorkspace
public void setVersioningImplicit(boolean versioningImplicit)
TransactionWorkspace
setVersioningImplicit
in interface TransactionWorkspace
public 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 |