org.jboss.cache.optimistic
Class TransactionWorkspaceImpl

java.lang.Object
  extended by 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)
           
 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)
           
 void setVersioningImplicit(boolean versioningImplicit)
          If set to true, the interceptor chain will handle versioning (implicit to JBossCache).
 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

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

isVersioningImplicit

public boolean isVersioningImplicit()
Tests if versioning is implicit for a given tx. If set to true, the interceptor chain will handle versioning (implicit to JBossCache). If set to false, DataVersions will have to come from the caller.

Specified by:
isVersioningImplicit in interface TransactionWorkspace

setVersioningImplicit

public void setVersioningImplicit(boolean versioningImplicit)
If set to true, the interceptor chain will handle versioning (implicit to JBossCache). If set to false, DataVersions will have to come from the caller.

Specified by:
setVersioningImplicit in interface TransactionWorkspace

toString

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


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