public class ExtendedEntityManager extends AbstractEntityManager implements Serializable, SynchronizationTypeAccess
NONE_LOCK_MODE, NULL_LOCK_MODE, OPTIMISTIC_FORCE_INCREMENT_LOCK_MODE, OPTIMISTIC_LOCK_MODE, PESSIMISTIC_FORCE_INCREMENT_LOCK_MODE, PESSIMISTIC_READ_LOCK_MODE, PESSIMISTIC_WRITE_LOCK_MODE, READ_LOCK_MODE, WRITE_LOCK_MODE
Constructor and Description |
---|
ExtendedEntityManager(String puScopedName,
javax.persistence.EntityManager underlyingEntityManager,
javax.persistence.SynchronizationType synchronizationType,
TransactionSynchronizationRegistry transactionSynchronizationRegistry,
TransactionManager transactionManager) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Catch the application trying to close the container managed entity manager and throw an IllegalStateException
|
protected boolean |
deferEntityDetachUntilClose() |
boolean |
equals(Object otherObject)
Check if this object's UUID is equal to the otherObject's UUID
|
protected javax.persistence.EntityManager |
getEntityManager()
The JPA SFSB interceptor will track the stack of SFSB invocations.
|
int |
getReferenceCount() |
String |
getScopedPuName()
Get the fully application scoped persistence unit name
Private api
|
javax.persistence.SynchronizationType |
getSynchronizationType() |
int |
hashCode() |
void |
increaseReferenceCount()
Start of reference count handling.
|
void |
internalAssociateWithJtaTx()
Associate the extended persistence context with the current JTA transaction (if one is found)
this method is private to the JPA subsystem
|
protected boolean |
isExtendedPersistenceContext() |
protected boolean |
isInTx() |
void |
refCountedClose() |
String |
toString()
End of reference count handling
|
clear, contains, createEntityGraph, createEntityGraph, createNamedQuery, createNamedQuery, createNamedStoredProcedureQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, createQuery, createQuery, createStoredProcedureQuery, createStoredProcedureQuery, createStoredProcedureQuery, detach, detachNonTxInvocation, detachQueryNonTxInvocation, detachTypedQueryNonTxInvocation, find, find, find, find, flush, getCriteriaBuilder, getDelegate, getEntityGraph, getEntityGraphs, getEntityManagerFactory, getFlushMode, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isJoinedToTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
public ExtendedEntityManager(String puScopedName, javax.persistence.EntityManager underlyingEntityManager, javax.persistence.SynchronizationType synchronizationType, TransactionSynchronizationRegistry transactionSynchronizationRegistry, TransactionManager transactionManager)
protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class AbstractEntityManager
public void internalAssociateWithJtaTx()
protected boolean isExtendedPersistenceContext()
isExtendedPersistenceContext
in class AbstractEntityManager
protected boolean isInTx()
isInTx
in class AbstractEntityManager
public void close()
close
in interface javax.persistence.EntityManager
close
in class AbstractEntityManager
public void increaseReferenceCount()
public int getReferenceCount()
public void refCountedClose()
public String toString()
public String getScopedPuName()
public boolean equals(Object otherObject)
public javax.persistence.SynchronizationType getSynchronizationType()
getSynchronizationType
in interface SynchronizationTypeAccess
getSynchronizationType
in class AbstractEntityManager
protected boolean deferEntityDetachUntilClose()
deferEntityDetachUntilClose
in class AbstractEntityManager
Copyright © 2017 JBoss by Red Hat. All rights reserved.