Package org.springframework.orm.jpa
Class EntityManagerHolder
java.lang.Object
org.springframework.transaction.support.ResourceHolderSupport
org.springframework.orm.jpa.EntityManagerHolder
- All Implemented Interfaces:
- ResourceHolder
- Direct Known Subclasses:
- SessionHolder
Resource holder wrapping a JPA 
EntityManager.
 JpaTransactionManager binds instances of this class to the thread,
 for a given EntityManagerFactory.
 Also serves as a base class for SessionHolder,
 as of 5.1.
 
Note: This is an SPI class, not intended to be used by applications.
- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Clear the transactional state of this resource holder.protected SavepointManagerprotected booleanprotected voidsetSavepointManager(SavepointManager savepointManager) protected voidsetTransactionActive(boolean transactionActive) Methods inherited from class org.springframework.transaction.support.ResourceHolderSupportgetDeadline, getTimeToLiveInMillis, getTimeToLiveInSeconds, hasTimeout, isOpen, isRollbackOnly, isSynchronizedWithTransaction, isVoid, released, requested, reset, resetRollbackOnly, setRollbackOnly, setSynchronizedWithTransaction, setTimeoutInMillis, setTimeoutInSeconds, unbound
- 
Constructor Details- 
EntityManagerHolder
 
- 
- 
Method Details- 
getEntityManager
- 
setTransactionActiveprotected void setTransactionActive(boolean transactionActive) 
- 
isTransactionActiveprotected boolean isTransactionActive()
- 
setSavepointManager
- 
getSavepointManager
- 
clearpublic void clear()Description copied from class:ResourceHolderSupportClear the transactional state of this resource holder.- Overrides:
- clearin class- ResourceHolderSupport
 
 
-