org.jboss.cache.optimistic
Class TransactionWorkspaceImpl

java.lang.Object
  |
  +--org.jboss.cache.optimistic.TransactionWorkspaceImpl
All Implemented Interfaces:
TransactionWorkspace

public class TransactionWorkspaceImpl
extends java.lang.Object
implements TransactionWorkspace

TODO: MANIK: Add proper javadocs

Author:
Manik Surtani (manik@jboss.org), Steve Woodcock (stevew@jofti.com)

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()
           
 java.util.SortedMap getNodesAfter(Fqn fqn)
           
 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)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionWorkspaceImpl

public TransactionWorkspaceImpl()
Method Detail

setCache

public void setCache(TreeCache cache)

getCache

public TreeCache getCache()

getNodes

public java.util.Map getNodes()
Specified by:
getNodes in interface TransactionWorkspace
Returns:
Returns the nodes.

setNodes

public void setNodes(java.util.Map nodes)
Specified by:
setNodes in interface TransactionWorkspace
Parameters:
nodes - The nodes to set.

getNode

public WorkspaceNode getNode(Fqn fqn)
Specified by:
getNode in interface TransactionWorkspace

addNode

public void addNode(WorkspaceNode node)
Description copied from interface: TransactionWorkspace
Is thread safe so you dont need to deal with synchronising access to this method.

Specified by:
addNode in interface TransactionWorkspace
Parameters:
node -

removeNode

public java.lang.Object removeNode(Fqn fqn)
Description copied from interface: TransactionWorkspace
Is thread safe so you dont need to deal with synchronising access to this method.

Specified by:
removeNode in interface TransactionWorkspace

getNodesAfter

public java.util.SortedMap getNodesAfter(Fqn fqn)
Specified by:
getNodesAfter in interface TransactionWorkspace

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1998-2005 JBoss Inc . All Rights Reserved.