org.apache.openejb.core.stateful
Class Instance

java.lang.Object
  extended by org.apache.openejb.core.stateful.Instance
All Implemented Interfaces:
java.io.Serializable

public class Instance
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
 java.lang.Object bean
           
 CoreDeploymentInfo deploymentInfo
           
 java.util.Map<java.lang.String,java.lang.Object> interceptors
           
 java.lang.Object primaryKey
           
 
Constructor Summary
Instance(CoreDeploymentInfo deploymentInfo, java.lang.Object primaryKey, java.lang.Object bean, java.util.Map<java.lang.String,java.lang.Object> interceptors, java.util.Map<javax.persistence.EntityManagerFactory,javax.persistence.EntityManager> entityManagers)
           
Instance(java.lang.Object deploymentId, java.lang.Object primaryKey, java.lang.Object bean, java.util.Map<java.lang.String,java.lang.Object> interceptors, javax.persistence.EntityManager[] entityManagerArray)
           
 
Method Summary
 BeanTransactionPolicy.SuspendedTransaction getBeanTransaction()
           
 java.util.Map<javax.persistence.EntityManagerFactory,javax.persistence.EntityManager> getEntityManagers(Index<javax.persistence.EntityManagerFactory,java.util.Map> factories)
           
 java.util.concurrent.locks.Lock getLock()
           
 javax.transaction.Transaction getTransaction()
           
 boolean isInUse()
           
 void setBeanTransaction(BeanTransactionPolicy.SuspendedTransaction beanTransaction)
           
 void setInUse(boolean inUse)
           
 void setTransaction(javax.transaction.Transaction transaction)
           
protected  java.lang.Object writeReplace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

deploymentInfo

public final CoreDeploymentInfo deploymentInfo

primaryKey

public final java.lang.Object primaryKey

bean

public final java.lang.Object bean

interceptors

public final java.util.Map<java.lang.String,java.lang.Object> interceptors
Constructor Detail

Instance

public Instance(CoreDeploymentInfo deploymentInfo,
                java.lang.Object primaryKey,
                java.lang.Object bean,
                java.util.Map<java.lang.String,java.lang.Object> interceptors,
                java.util.Map<javax.persistence.EntityManagerFactory,javax.persistence.EntityManager> entityManagers)

Instance

public Instance(java.lang.Object deploymentId,
                java.lang.Object primaryKey,
                java.lang.Object bean,
                java.util.Map<java.lang.String,java.lang.Object> interceptors,
                javax.persistence.EntityManager[] entityManagerArray)
Method Detail

isInUse

public boolean isInUse()

setInUse

public void setInUse(boolean inUse)

getBeanTransaction

public BeanTransactionPolicy.SuspendedTransaction getBeanTransaction()

setBeanTransaction

public void setBeanTransaction(BeanTransactionPolicy.SuspendedTransaction beanTransaction)

getTransaction

public javax.transaction.Transaction getTransaction()

getLock

public java.util.concurrent.locks.Lock getLock()

setTransaction

public void setTransaction(javax.transaction.Transaction transaction)

getEntityManagers

public java.util.Map<javax.persistence.EntityManagerFactory,javax.persistence.EntityManager> getEntityManagers(Index<javax.persistence.EntityManagerFactory,java.util.Map> factories)

writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.