org.openejb.core
Class ThreadContext

java.lang.Object
  extended byorg.openejb.core.ThreadContext
All Implemented Interfaces:
Cloneable

public class ThreadContext
extends Object
implements Cloneable

TODO: Add comment


Field Summary
protected  byte currentOperation
          TODO: Add comment
protected  DeploymentInfo deploymentInfo
          TODO: Add comment
protected static Class implClass
          TODO: Add comment
protected  Object primaryKey
          TODO: Add comment
protected  Object securityIdentity
          TODO: Add comment
protected static FastThreadLocal threadStorage
          TODO: Add comment
protected  Object unspecified
          Unspecified is any object that a customer container may want to attach to the current thread context.
protected  boolean valid
          TODO: Add comment
 
Constructor Summary
ThreadContext()
           
 
Method Summary
 Object clone()
           
 byte getCurrentOperation()
           
 DeploymentInfo getDeploymentInfo()
           
 Object getPrimaryKey()
           
 Object getSecurityIdentity()
           
static ThreadContext getThreadContext()
           
 Object getUnspecified()
           
static void invalidate()
           
static boolean isValid()
           
protected  void makeInvalid()
           
protected static ThreadContext newThreadContext()
           
 void set(DeploymentInfo di, Object primKey, Object securityIdentity)
           
 void setCurrentOperation(byte op)
           
 void setDeploymentInfo(DeploymentInfo info)
           
 void setPrimaryKey(Object primKey)
           
 void setSecurityIdentity(Object identity)
           
static void setThreadContext(ThreadContext tc)
           
 void setUnspecified(Object obj)
           
 boolean valid()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadStorage

protected static final FastThreadLocal threadStorage
TODO: Add comment


implClass

protected static Class implClass
TODO: Add comment


valid

protected boolean valid
TODO: Add comment


deploymentInfo

protected DeploymentInfo deploymentInfo
TODO: Add comment


primaryKey

protected Object primaryKey
TODO: Add comment


currentOperation

protected byte currentOperation
TODO: Add comment


securityIdentity

protected Object securityIdentity
TODO: Add comment


unspecified

protected Object unspecified
Unspecified is any object that a customer container may want to attach to the current thread context. (e.g. CastorCMP11_EntityContainer attaches a JDO Database object to the thread.

Constructor Detail

ThreadContext

public ThreadContext()
Method Detail

newThreadContext

protected static ThreadContext newThreadContext()

isValid

public static boolean isValid()

makeInvalid

protected void makeInvalid()

invalidate

public static void invalidate()

setThreadContext

public static void setThreadContext(ThreadContext tc)

getThreadContext

public static ThreadContext getThreadContext()

getCurrentOperation

public byte getCurrentOperation()

getPrimaryKey

public Object getPrimaryKey()

getDeploymentInfo

public DeploymentInfo getDeploymentInfo()

getSecurityIdentity

public Object getSecurityIdentity()

getUnspecified

public Object getUnspecified()

set

public void set(DeploymentInfo di,
                Object primKey,
                Object securityIdentity)

setCurrentOperation

public void setCurrentOperation(byte op)

setPrimaryKey

public void setPrimaryKey(Object primKey)

setSecurityIdentity

public void setSecurityIdentity(Object identity)

setDeploymentInfo

public void setDeploymentInfo(DeploymentInfo info)

setUnspecified

public void setUnspecified(Object obj)

valid

public boolean valid()

clone

public Object clone()
             throws CloneNotSupportedException
Throws:
CloneNotSupportedException


Copyright © 1999-2007 OpenEJB. All Rights Reserved.