public class Instance extends java.lang.Object implements java.io.Serializable, Cache.TimeOut
Modifier and Type | Field and Description |
---|---|
java.lang.Object |
bean |
BeanContext |
beanContext |
java.lang.Object |
containerId |
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 containerId,
java.lang.Object bean,
CreationalContext creationalContext,
java.util.Map<java.lang.String,java.lang.Object> interceptors,
java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> entityManagers,
LockFactory.StatefulLock lock) |
Instance(java.lang.Object deploymentId,
java.lang.Object primaryKey,
java.lang.Object containerId,
java.lang.Object bean,
CreationalContext creationalContext,
java.util.Map<java.lang.String,java.lang.Object> interceptors,
JtaEntityManagerRegistry.EntityManagerTracker[] entityManagerArray,
LockFactory.StatefulLock lock) |
Modifier and Type | Method and Description |
---|---|
BeanTransactionPolicy.SuspendedTransaction |
getBeanTransaction() |
java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> |
getEntityManagers(Index<EntityManagerFactory,BeanContext.EntityManagerConfiguration> factories) |
LockFactory.StatefulLock |
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 java.lang.Object containerId
public 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 containerId, java.lang.Object bean, CreationalContext creationalContext, java.util.Map<java.lang.String,java.lang.Object> interceptors, java.util.Map<EntityManagerFactory,JtaEntityManagerRegistry.EntityManagerTracker> entityManagers, LockFactory.StatefulLock lock)
public Instance(java.lang.Object deploymentId, java.lang.Object primaryKey, java.lang.Object containerId, java.lang.Object bean, CreationalContext creationalContext, java.util.Map<java.lang.String,java.lang.Object> interceptors, JtaEntityManagerRegistry.EntityManagerTracker[] entityManagerArray, LockFactory.StatefulLock lock)
public Duration getTimeOut()
getTimeOut
in interface Cache.TimeOut
public boolean isInUse()
public void setInUse(boolean inUse)
public BeanTransactionPolicy.SuspendedTransaction getBeanTransaction()
public void setBeanTransaction(BeanTransactionPolicy.SuspendedTransaction beanTransaction)
public Transaction getTransaction()
public LockFactory.StatefulLock 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