jrun.ejb
Class Instance

jrun.ejb.Instance
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
EntityInstance, MessageDrivenInstance, SessionInstance

public abstract class Instance
implements java.io.Serializable

One Instance per EnterpriseBean and EJBContext.

Author:
Sean Neville, Paul Reilly
See Also:
Serialized Form

Field Summary
protected  javax.ejb.EnterpriseBean enterpriseBean
           
protected  InstanceContext instanceContext
           
 
Constructor Summary
Instance()
           
 
Method Summary
 void afterBegin()
          Invoked by the CMT Interceptor in an EJB Container
 void afterCompletion(int status)
          Invoked by the TM
 void beforeCompletion()
          Invoked by the TM
 void clear()
           
 java.lang.reflect.Method getCurrentMethod()
           
 javax.ejb.EnterpriseBean getEnterpriseBean()
           
 java.lang.Object getID()
           
 InstanceContext getInstanceContext()
           
 int getOperation()
           
 Operations getOperations()
           
 SimplePrincipal getPrincipal()
           
 byte getTransactionType()
           
 boolean isHomeMethod()
           
 boolean isInUse()
           
 boolean isLocked()
           
 void lock()
           
 void setCurrentMethod(java.lang.reflect.Method currentMethod)
           
 void setEnterpriseBean(javax.ejb.EnterpriseBean enterpriseBean)
           
 void setHomeMethod(boolean homeMethod)
           
 void setID(java.lang.Object id)
           
 void setInstanceContext(InstanceContext instanceContext)
           
 void setInUse(boolean isInUse)
           
 void setOperation(int operation, byte transactionType)
           
 void setOperations(Operations operations)
           
 void setPrincipal(SimplePrincipal principal)
           
 void unlock()
           
 void unsetOperation()
           
 

Field Detail

enterpriseBean

protected javax.ejb.EnterpriseBean enterpriseBean

instanceContext

protected InstanceContext instanceContext
Constructor Detail

Instance

public Instance()
Method Detail

getEnterpriseBean

public javax.ejb.EnterpriseBean getEnterpriseBean()

setEnterpriseBean

public void setEnterpriseBean(javax.ejb.EnterpriseBean enterpriseBean)

getID

public java.lang.Object getID()

setID

public void setID(java.lang.Object id)

isInUse

public boolean isInUse()

setInUse

public void setInUse(boolean isInUse)

getInstanceContext

public InstanceContext getInstanceContext()

setInstanceContext

public void setInstanceContext(InstanceContext instanceContext)

getPrincipal

public SimplePrincipal getPrincipal()

setPrincipal

public void setPrincipal(SimplePrincipal principal)

getCurrentMethod

public java.lang.reflect.Method getCurrentMethod()

setCurrentMethod

public void setCurrentMethod(java.lang.reflect.Method currentMethod)

isHomeMethod

public boolean isHomeMethod()

setHomeMethod

public void setHomeMethod(boolean homeMethod)

lock

public void lock()

unlock

public void unlock()

isLocked

public boolean isLocked()

clear

public void clear()

getOperation

public int getOperation()

getOperations

public Operations getOperations()

setOperations

public void setOperations(Operations operations)

getTransactionType

public byte getTransactionType()

setOperation

public void setOperation(int operation,
                         byte transactionType)

unsetOperation

public void unsetOperation()

afterBegin

public void afterBegin()
                throws javax.ejb.EJBException
Invoked by the CMT Interceptor in an EJB Container

beforeCompletion

public void beforeCompletion()
                      throws javax.ejb.EJBException
Invoked by the TM

afterCompletion

public void afterCompletion(int status)
Invoked by the TM


Copyright � 2002 Macromedia Corporation. All Rights Reserved.