public class TransactionScopedEntityManager extends AbstractEntityManager implements Serializable
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 |
|---|
TransactionScopedEntityManager(String puScopedName,
Map properties,
javax.persistence.EntityManagerFactory emf,
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()
return true if non-tx invocations should defer detaching of entities until entity manager is closed.
|
protected javax.persistence.EntityManager |
getEntityManager() |
javax.persistence.SynchronizationType |
getSynchronizationType() |
protected boolean |
isExtendedPersistenceContext() |
protected boolean |
isInTx() |
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, unwrappublic TransactionScopedEntityManager(String puScopedName, Map properties, javax.persistence.EntityManagerFactory emf, javax.persistence.SynchronizationType synchronizationType, TransactionSynchronizationRegistry transactionSynchronizationRegistry, TransactionManager transactionManager)
protected javax.persistence.EntityManager getEntityManager()
getEntityManager in class AbstractEntityManagerprotected boolean isExtendedPersistenceContext()
isExtendedPersistenceContext in class AbstractEntityManagerprotected boolean isInTx()
isInTx in class AbstractEntityManagerpublic void close()
close in interface javax.persistence.EntityManagerclose in class AbstractEntityManagerpublic javax.persistence.SynchronizationType getSynchronizationType()
getSynchronizationType in class AbstractEntityManagerprotected boolean deferEntityDetachUntilClose()
deferEntityDetachUntilClose in class AbstractEntityManagerCopyright © 2019 JBoss by Red Hat. All rights reserved.