org.openejb.core
Class ThreadContext

java.lang.Object
  |
  +--org.openejb.core.ThreadContext
Direct Known Subclasses:
TyrexThreadContext

public class ThreadContext
extends java.lang.Object

TODO: Add comment


Field Summary
protected  byte currentOperation
          TODO: Add comment
protected  DeploymentInfo deploymentInfo
          TODO: Add comment
protected static java.lang.Class implClass
          TODO: Add comment
protected  java.lang.Object primaryKey
          TODO: Add comment
protected  java.lang.Object securityIdentity
          TODO: Add comment
protected static FastThreadLocal threadStorage
          TODO: Add comment
protected  java.lang.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
(package private) static void ()
           
 byte getCurrentOperation()
          TODO: Add comment
 DeploymentInfo getDeploymentInfo()
          TODO: Add comment
 java.lang.Object getPrimaryKey()
          TODO: Add comment
 java.lang.Object getSecurityIdentity()
          TODO: Add comment
static ThreadContext getThreadContext()
          TODO: Add comment
 java.lang.Object getUnspecified()
          TODO: Add comment
static void invalidate()
          TODO: Add comment
static boolean isValid()
          TODO: Add comment
protected  void makeInvalid()
          TODO: Add comment
protected static ThreadContext newThreadContext()
          TODO: Add comment
 void set(DeploymentInfo di, java.lang.Object primKey, java.lang.Object securityIdentity)
          TODO: Add comment
 void setCurrentOperation(byte op)
          TODO: Add comment
 void setDeploymentInfo(DeploymentInfo info)
          TODO: Add comment
 void setPrimaryKey(java.lang.Object primKey)
          TODO: Add comment
 void setSecurityIdentity(java.lang.Object identity)
          TODO: Add comment
static void setThreadContext(ThreadContext tc)
          TODO: Add comment
 void setUnspecified(java.lang.Object obj)
          TODO: Add comment
 boolean valid()
          TODO: Add comment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

threadStorage

protected static FastThreadLocal threadStorage
TODO: Add comment

implClass

protected static java.lang.Class implClass
TODO: Add comment

valid

protected boolean valid
TODO: Add comment

deploymentInfo

protected DeploymentInfo deploymentInfo
TODO: Add comment

primaryKey

protected java.lang.Object primaryKey
TODO: Add comment

currentOperation

protected byte currentOperation
TODO: Add comment

securityIdentity

protected java.lang.Object securityIdentity
TODO: Add comment

unspecified

protected java.lang.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

static void ()

newThreadContext

protected static ThreadContext newThreadContext()
TODO: Add comment
Returns:
 

isValid

public static boolean isValid()
TODO: Add comment
Returns:
 

makeInvalid

protected void makeInvalid()
TODO: Add comment

invalidate

public static void invalidate()
TODO: Add comment

setThreadContext

public static void setThreadContext(ThreadContext tc)
TODO: Add comment
Parameters:
tc -  

getThreadContext

public static ThreadContext getThreadContext()
TODO: Add comment
Returns:
 

getCurrentOperation

public byte getCurrentOperation()
TODO: Add comment
Returns:
 

getPrimaryKey

public java.lang.Object getPrimaryKey()
TODO: Add comment
Returns:
 

getDeploymentInfo

public DeploymentInfo getDeploymentInfo()
TODO: Add comment
Returns:
 

getSecurityIdentity

public java.lang.Object getSecurityIdentity()
TODO: Add comment
Returns:
 

getUnspecified

public java.lang.Object getUnspecified()
TODO: Add comment
Returns:
 

set

public void set(DeploymentInfo di,
                java.lang.Object primKey,
                java.lang.Object securityIdentity)
TODO: Add comment
Parameters:
di -  
primKey -  
securityIdentity -  

setCurrentOperation

public void setCurrentOperation(byte op)
TODO: Add comment
Parameters:
op -  

setPrimaryKey

public void setPrimaryKey(java.lang.Object primKey)
TODO: Add comment
Parameters:
primKey -  

setSecurityIdentity

public void setSecurityIdentity(java.lang.Object identity)
TODO: Add comment
Parameters:
identity -  

setDeploymentInfo

public void setDeploymentInfo(DeploymentInfo info)
TODO: Add comment
Parameters:
info -  

setUnspecified

public void setUnspecified(java.lang.Object obj)
TODO: Add comment
Parameters:
obj -  

valid

public boolean valid()
TODO: Add comment
Returns: