private static class ExtendedEntityManagerCreator.ExtendedEntityManagerInvocationHandler
extends java.lang.Object
implements java.lang.reflect.InvocationHandler, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private boolean |
containerManaged |
private PersistenceExceptionTranslator |
exceptionTranslator |
private boolean |
jta |
private static Log |
logger |
private boolean |
synchronizedWithTransaction |
private EntityManager |
target |
Modifier | Constructor and Description |
---|---|
private |
ExtendedEntityManagerInvocationHandler(EntityManager target,
PersistenceExceptionTranslator exceptionTranslator,
java.lang.Boolean jta,
boolean containerManaged,
boolean synchronizedWithTransaction) |
Modifier and Type | Method and Description |
---|---|
private void |
doJoinTransaction(boolean enforce)
Join an existing transaction, if not already joined.
|
private void |
enlistInCurrentTransaction()
Enlist this application-managed EntityManager in the current transaction.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
private boolean |
isJtaEntityManager() |
private static final Log logger
private final EntityManager target
private final PersistenceExceptionTranslator exceptionTranslator
private final boolean jta
private final boolean containerManaged
private final boolean synchronizedWithTransaction
private ExtendedEntityManagerInvocationHandler(EntityManager target, PersistenceExceptionTranslator exceptionTranslator, java.lang.Boolean jta, boolean containerManaged, boolean synchronizedWithTransaction)
private boolean isJtaEntityManager()
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
private void doJoinTransaction(boolean enforce)
enforce
- whether to enforce the transaction
(i.e. whether failure to join is considered fatal)private void enlistInCurrentTransaction()