程序包 org.springframework.orm.jpa
Package providing integration of JPA (Java Persistence API) with Spring concepts. Contains EntityManagerFactory helper classes, a template plus callback for JPA access, and an implementation of Spring's transaction SPI for local JPA transactions.
接口概要 接口 说明 EntityManagerFactoryInfo Metadata interface for a Spring-managed JPAEntityManagerFactory
.EntityManagerProxy Subinterface ofEntityManager
to be implemented by EntityManager proxies.JpaDialect SPI strategy that encapsulates certain functionality that standard JPA 2.0 does not offer, such as access to the underlying JDBC Connection.JpaVendorAdapter SPI interface that allows to plug in vendor-specific behavior into Spring's EntityManagerFactory creators.类概要 类 说明 AbstractEntityManagerFactoryBean AbstractFactoryBean
that creates a local JPAEntityManagerFactory
instance within a Spring application context.DefaultJpaDialect Default implementation of theJpaDialect
interface.EntityManagerFactoryAccessor Base class for any class that needs to access a JPAEntityManagerFactory
, usually in order to obtain a JPAEntityManager
.EntityManagerFactoryUtils Helper class featuring methods for JPA EntityManager handling, allowing for reuse of EntityManager instances within transactions.EntityManagerHolder Holder wrapping a JPA EntityManager.ExtendedEntityManagerCreator Delegate for creating a variety ofEntityManager
proxies that follow the JPA spec's semantics for "extended" EntityManagers.JpaTransactionManager PlatformTransactionManager
implementation for a single JPAEntityManagerFactory
.LocalContainerEntityManagerFactoryBean FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard container bootstrap contract.LocalEntityManagerFactoryBean FactoryBean
that creates a JPAEntityManagerFactory
according to JPA's standard standalone bootstrap contract.SharedEntityManagerCreator Delegate for creating a shareable JPAEntityManager
reference for a givenEntityManagerFactory
.异常错误概要 异常错误 说明 JpaObjectRetrievalFailureException JPA-specific subclass of ObjectRetrievalFailureException.JpaOptimisticLockingFailureException JPA-specific subclass of ObjectOptimisticLockingFailureException.JpaSystemException JPA-specific subclass of UncategorizedDataAccessException, for JPA system errors that do not match any concreteorg.springframework.dao
exceptions.