protected class EntityInstanceManager.SynchronizationWrapper extends java.lang.Object implements TransactionPolicy.TransactionSynchronization
TransactionPolicy.TransactionSynchronization.Status
Constructor and Description |
---|
SynchronizationWrapper(BeanContext beanContext,
java.lang.Object primaryKey,
EntityBean bean,
boolean available,
org.apache.openejb.core.entity.EntityInstanceManager.Key readyPoolKey,
TransactionPolicy txPolicy) |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(TransactionPolicy.TransactionSynchronization.Status status)
Called after the transaction is completed.
|
void |
associate() |
void |
beforeCompletion()
Called immediately before the transaction is completed.
|
void |
disassociate() |
EntityBean |
getEntityBean() |
boolean |
isAssociated() |
boolean |
isAvailable() |
void |
setEntityBean(EntityBean ebean) |
public SynchronizationWrapper(BeanContext beanContext, java.lang.Object primaryKey, EntityBean bean, boolean available, org.apache.openejb.core.entity.EntityInstanceManager.Key readyPoolKey, TransactionPolicy txPolicy)
public void associate()
public void disassociate()
public boolean isAssociated()
public boolean isAvailable()
public void setEntityBean(EntityBean ebean)
public EntityBean getEntityBean()
public void beforeCompletion()
TransactionPolicy.TransactionSynchronization
beforeCompletion
in interface TransactionPolicy.TransactionSynchronization
public void afterCompletion(TransactionPolicy.TransactionSynchronization.Status status)
TransactionPolicy.TransactionSynchronization
afterCompletion
in interface TransactionPolicy.TransactionSynchronization