| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.cache.optimistic.TransactionWorkspaceImpl<K,V>
public class TransactionWorkspaceImpl<K,V>
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<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)
 | 
 Map<Fqn,WorkspaceNode<K,V>> | 
getNodes()
Returns the nodes.  | 
 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(Map<Fqn,WorkspaceNode<K,V>> nodes)
Sets the nodes.  | 
 void | 
setVersioningImplicit(boolean versioningImplicit)
Sets if versioning is implicit for a given tx.  | 
 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 Map<Fqn,WorkspaceNode<K,V>> getNodes()
getNodes in interface TransactionWorkspace<K,V>WorkspaceNodes, keyed on Fqnpublic void clearNodes()
TransactionWorkspace
clearNodes in interface TransactionWorkspace<K,V>public void setNodes(Map<Fqn,WorkspaceNode<K,V>> nodes)
setNodes in interface TransactionWorkspace<K,V>nodes - The nodes to set. Takes WorkspaceNodes.public WorkspaceNode<K,V> getNode(Fqn fqn)
getNode in interface TransactionWorkspace<K,V>public void addNode(WorkspaceNode<K,V> node)
TransactionWorkspace
addNode in interface TransactionWorkspace<K,V>public WorkspaceNode<K,V> removeNode(Fqn fqn)
TransactionWorkspace
removeNode in interface TransactionWorkspace<K,V>public SortedMap<Fqn,WorkspaceNode<K,V>> getNodesAfter(Fqn fqn)
TransactionWorkspace
getNodesAfter in interface TransactionWorkspace<K,V>public boolean isVersioningImplicit()
TransactionWorkspace
isVersioningImplicit in interface TransactionWorkspace<K,V>public void setVersioningImplicit(boolean versioningImplicit)
TransactionWorkspace
setVersioningImplicit in interface TransactionWorkspace<K,V>public boolean hasNode(Fqn fqn)
TransactionWorkspace
hasNode in interface TransactionWorkspace<K,V>public String toString()
toString in class Object
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||