public class Instance
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
bean |
BeanContext |
beanContext |
CreationalContext |
creationalContext |
java.util.Map<java.lang.String,java.lang.Object> |
interceptors |
java.lang.Object |
primaryKey |
Constructor and Description |
---|
Instance(BeanContext beanContext,
java.lang.Object primaryKey,
java.lang.Object bean,
java.util.Map<java.lang.String,java.lang.Object> interceptors,
CreationalContext creationalContext,
java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> entityManagers) |
Instance(java.lang.Object deploymentId,
java.lang.Object primaryKey,
java.lang.Object bean,
java.util.Map<java.lang.String,java.lang.Object> interceptors,
CreationalContext creationalContext,
JtaEntityManagerRegistry.EntityManagerTracker[] entityManagerArray) |
Modifier and Type | Method and Description |
---|---|
BeanTransactionPolicy.SuspendedTransaction |
getBeanTransaction() |
java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> |
getEntityManagers(Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> factories) |
java.util.concurrent.locks.Lock |
getLock() |
Duration |
getTimeOut() |
Transaction |
getTransaction() |
boolean |
isInUse() |
void |
releaseLock() |
void |
setBeanTransaction(BeanTransactionPolicy.SuspendedTransaction beanTransaction) |
void |
setInUse(boolean inUse) |
void |
setTransaction(Transaction transaction) |
protected java.lang.Object |
writeReplace() |
public final BeanContext beanContext
public final java.lang.Object primaryKey
public final java.lang.Object bean
public final CreationalContext creationalContext
public final java.util.Map<java.lang.String,java.lang.Object> interceptors
public Instance(BeanContext beanContext, java.lang.Object primaryKey, java.lang.Object bean, java.util.Map<java.lang.String,java.lang.Object> interceptors, CreationalContext creationalContext, java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> entityManagers)
public Instance(java.lang.Object deploymentId, java.lang.Object primaryKey, java.lang.Object bean, java.util.Map<java.lang.String,java.lang.Object> interceptors, CreationalContext creationalContext, JtaEntityManagerRegistry.EntityManagerTracker[] entityManagerArray)
public Duration getTimeOut()
public boolean isInUse()
public void setInUse(boolean inUse)
public BeanTransactionPolicy.SuspendedTransaction getBeanTransaction()
public void setBeanTransaction(BeanTransactionPolicy.SuspendedTransaction beanTransaction)
public Transaction getTransaction()
public java.util.concurrent.locks.Lock getLock()
public void setTransaction(Transaction transaction)
public void releaseLock()
public java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> getEntityManagers(Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> factories)
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException