public class TransactionScopedEntityManager extends AbstractEntityManager implements Serializable
Constructor and Description |
---|
TransactionScopedEntityManager(String puScopedName,
Map properties,
javax.persistence.EntityManagerFactory emf) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Catch the application trying to close the container managed entity manager and throw an IllegalStateException
|
protected javax.persistence.EntityManager |
getEntityManager() |
protected boolean |
isExtendedPersistenceContext() |
protected boolean |
isInTx() |
clear, contains, createNamedQuery, createNamedQuery, createNativeQuery, createNativeQuery, createNativeQuery, createQuery, createQuery, createQuery, detach, detachNonTxInvocation, detachQueryNonTxInvocation, detachTypedQueryNonTxInvocation, find, find, find, find, flush, getCriteriaBuilder, getDelegate, getEntityManagerFactory, getFlushMode, getLockMode, getMetamodel, getProperties, getReference, getTransaction, isOpen, joinTransaction, lock, lock, merge, persist, refresh, refresh, refresh, refresh, remove, setFlushMode, setProperty, unwrap
protected javax.persistence.EntityManager getEntityManager()
getEntityManager
in class AbstractEntityManager
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
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.