public class EntityManagerHolder extends ResourceHolderSupport
Note: This is an SPI class, not intended to be used by applications.
JpaTransactionManager
,
EntityManagerFactoryUtils
Constructor and Description |
---|
EntityManagerHolder(EntityManager entityManager) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear the transactional state of this resource holder.
|
EntityManager |
getEntityManager() |
protected SavepointManager |
getSavepointManager() |
protected boolean |
isTransactionActive() |
protected void |
setSavepointManager(SavepointManager savepointManager) |
protected void |
setTransactionActive(boolean transactionActive) |
getDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
public EntityManagerHolder(EntityManager entityManager)
public EntityManager getEntityManager()
protected void setTransactionActive(boolean transactionActive)
protected boolean isTransactionActive()
protected void setSavepointManager(SavepointManager savepointManager)
protected SavepointManager getSavepointManager()
public void clear()
ResourceHolderSupport
clear
in class ResourceHolderSupport