org.jboss.cache.optimistic
Class TransactionWorkspaceImpl<K,V>

java.lang.Object
  extended by org.jboss.cache.optimistic.TransactionWorkspaceImpl<K,V>
All Implemented Interfaces:
TransactionWorkspace<K,V>

Deprecated. will be removed along with optimistic and pessimistic locking.

@Deprecated
public class TransactionWorkspaceImpl<K,V>
extends Object
implements TransactionWorkspace<K,V>

Contains a mapping of Fqn to WorkspaceNodes. Each entry corresponds to a series of changed nodes within the transaction.

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

Constructor Summary
TransactionWorkspaceImpl()
          Deprecated.  
 
Method Summary
 void addNode(WorkspaceNode<K,V> node)
          Deprecated. Is thread safe so you dont need to deal with synchronising access to this method.
 void clearNodes()
          Deprecated. Empties the collection of nodes held by this workspace.
 WorkspaceNode<K,V> getNode(Fqn fqn)
          Deprecated.  
 Map<Fqn,WorkspaceNode<K,V>> getNodes()
          Deprecated. Returns the nodes.
 SortedMap<Fqn,WorkspaceNode<K,V>> getNodesAfter(Fqn fqn)
          Deprecated. Returns all nodes equal to or after the given node.
 boolean hasNode(Fqn fqn)
          Deprecated. returns true if the workspace contains a node with specified Fqn
 boolean isVersioningImplicit()
          Deprecated. Tests if versioning is implicit for a given tx.
 WorkspaceNode<K,V> removeNode(Fqn fqn)
          Deprecated. Is thread safe so you dont need to deal with synchronising access to this method.
 void setNodes(Map<Fqn,WorkspaceNode<K,V>> nodes)
          Deprecated. Sets the nodes.
 void setVersioningImplicit(boolean versioningImplicit)
          Deprecated. Sets if versioning is implicit for a given tx.
 String toString()
          Deprecated. Returns debug information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransactionWorkspaceImpl

public TransactionWorkspaceImpl()
Deprecated. 
Method Detail

getNodes

public Map<Fqn,WorkspaceNode<K,V>> getNodes()
Deprecated. 
Returns the nodes.

Specified by:
getNodes in interface TransactionWorkspace<K,V>
Returns:
Returns a map of WorkspaceNodes, keyed on Fqn

clearNodes

public void clearNodes()
Deprecated. 
Description copied from interface: TransactionWorkspace
Empties the collection of nodes held by this workspace.

Specified by:
clearNodes in interface TransactionWorkspace<K,V>

setNodes

public void setNodes(Map<Fqn,WorkspaceNode<K,V>> nodes)
Deprecated. 
Sets the nodes.

Specified by:
setNodes in interface TransactionWorkspace<K,V>
Parameters:
nodes - The nodes to set. Takes WorkspaceNodes.

getNode

public WorkspaceNode<K,V> getNode(Fqn fqn)
Deprecated. 
Specified by:
getNode in interface TransactionWorkspace<K,V>

addNode

public void addNode(WorkspaceNode<K,V> node)
Deprecated. 
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<K,V>

removeNode

public WorkspaceNode<K,V> removeNode(Fqn fqn)
Deprecated. 
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<K,V>

getNodesAfter

public SortedMap<Fqn,WorkspaceNode<K,V>> getNodesAfter(Fqn fqn)
Deprecated. 
Description copied from interface: TransactionWorkspace
Returns all nodes equal to or after the given node.

Specified by:
getNodesAfter in interface TransactionWorkspace<K,V>

isVersioningImplicit

public boolean isVersioningImplicit()
Deprecated. 
Description copied from interface: TransactionWorkspace
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<K,V>

setVersioningImplicit

public void setVersioningImplicit(boolean versioningImplicit)
Deprecated. 
Description copied from interface: TransactionWorkspace
Sets 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:
setVersioningImplicit in interface TransactionWorkspace<K,V>

hasNode

public boolean hasNode(Fqn fqn)
Deprecated. 
Description copied from interface: TransactionWorkspace
returns true if the workspace contains a node with specified Fqn

Specified by:
hasNode in interface TransactionWorkspace<K,V>

toString

public String toString()
Deprecated. 
Returns debug information.

Overrides:
toString in class Object


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.