spring-framework / org.springframework.orm.jpa / EntityManagerHolder

EntityManagerHolder

open class EntityManagerHolder : ResourceHolderSupport

Holder wrapping a JPA EntityManager. JpaTransactionManager binds instances of this class to the thread, for a given EntityManagerFactory.

Note: This is an SPI class, not intended to be used by applications.

Author
Juergen Hoeller

Since
2.0

See Also
JpaTransactionManagerEntityManagerFactoryUtils

Constructors

<init>

EntityManagerHolder(entityManager: EntityManager)

Functions

clear

open fun clear(): Unit

getEntityManager

open fun getEntityManager(): EntityManager