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.
|
Java Source File Name | Type | Comment |
AbstractEntityManagerFactoryBean.java | Class | Abstract
org.springframework.beans.factory.FactoryBean that
creates a local JPA
javax.persistence.EntityManagerFactory instance within a Spring application context.
Encapsulates the common functionality between the different JPA
bootstrap contracts (standalone as well as container).
Implements support for standard JPA configuration as well as
Spring's
JpaVendorAdapter abstraction, and controls the
EntityManagerFactory's lifecycle.
This class also implements the
org.springframework.dao.support.PersistenceExceptionTranslator interface, as autodetected by Spring's
org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor ,
for AOP-based translation of native exceptions to Spring DataAccessExceptions.
Hence, the presence of e.g. |
DefaultJpaDialect.java | Class | Default implementation of the JpaDialect interface. |
EntityManagerFactoryAccessor.java | Class | Base class for any class that needs to access an EntityManagerFactory,
usually in order to obtain an EntityManager. |
EntityManagerFactoryInfo.java | Interface | Metadata interface for a Spring-managed EntityManagerFactory. |
EntityManagerFactoryPlus.java | Interface | Extension of the standard JPA EntityManagerFactory interface, linking in
Spring's EntityManagerFactoryPlusOperations interface which defines
additional operations (beyond JPA 1.0) in a vendor-independent fashion. |
EntityManagerFactoryPlusOperations.java | Interface | Interface that defines common operations beyond the standard
JPA EntityManagerFactory interface, in a vendor-independent fashion.
To be adapted to specific JPA providers through a JpaDialect.
As of Spring 2.0, this interface does not define any operations yet.
The pass-through mechanism to the underlying JpaDialect is already in
place. |
EntityManagerFactoryUtils.java | Class | Helper class featuring methods for JPA EntityManager handling,
allowing for reuse of EntityManager instances within transactions. |
EntityManagerHolder.java | Class | Holder wrapping a JPA EntityManager. |
EntityManagerPlus.java | Interface | Extension of the standard JPA EntityManager interface, linking in
Spring's EntityManagerPlusOperations interface which defines additional
operations (beyond JPA 1.0) in a vendor-independent fashion. |
EntityManagerPlusOperations.java | Interface | Interface that defines common operations beyond the standard
JPA EntityManager interface, in a vendor-independent fashion.
To be adapted to specific JPA providers through a JpaDialect.
As of Spring 2.0, this interface does not define any operations yet.
The pass-through mechanism to the underlying JpaDialect is already in
place. |
ExtendedEntityManagerCreator.java | Class | Factory for dynamic EntityManager proxies that follow the JPA spec's
semantics for "extended" EntityManagers. |
JpaAccessor.java | Class | Base class for JpaTemplate and JpaInterceptor, defining common
properties such as EntityManagerFactory and flushing behavior. |
JpaCallback.java | Interface | Callback interface for JPA code. |
JpaDialect.java | Interface | SPI strategy that encapsulates certain functionality that standard JPA 1.0
does not offer, such as access to the underlying JDBC Connection. |
JpaInterceptor.java | Class | This interceptor binds a new JPA EntityManager to the thread before a method
call, closing and removing it afterwards in case of any method outcome.
If there already is a pre-bound EntityManager (e.g. |
JpaObjectRetrievalFailureException.java | Class | JPA-specific subclass of ObjectRetrievalFailureException. |
JpaOperations.java | Interface | Interface that specifies a basic set of JPA operations,
implemented by
JpaTemplate . |
JpaOptimisticLockingFailureException.java | Class | JPA-specific subclass of ObjectOptimisticLockingFailureException. |
JpaSystemException.java | Class | JPA-specific subclass of UncategorizedDataAccessException,
for JPA system errors that do not match any concrete
org.springframework.dao exceptions. |
JpaTemplate.java | Class | Helper class that allows for writing JPA data access code in the same style
as with Spring's well-known JdoTemplate and HibernateTemplate classes.
Automatically converts PersistenceExceptions into Spring DataAccessExceptions,
following the org.springframework.dao exception hierarchy.
NOTE: JpaTemplate mainly exists as a sibling of JdoTemplate and
HibernateTemplate, to offer the same style for people used to it. |
JpaTransactionManager.java | Class | org.springframework.transaction.PlatformTransactionManager implementation
for a single JPA
javax.persistence.EntityManagerFactory . |
JpaVendorAdapter.java | Interface | SPI interface that allows to plug in vendor-specific behavior
into Spring's EntityManagerFactory creators. |
LocalContainerEntityManagerFactoryBean.java | Class | org.springframework.beans.factory.FactoryBean that creates a JPA
javax.persistence.EntityManagerFactory according to JPA's standard
container bootstrap contract. |
LocalEntityManagerFactoryBean.java | Class | org.springframework.beans.factory.FactoryBean that creates a JPA
javax.persistence.EntityManagerFactory according to JPA's standard
standalone bootstrap contract. |
SharedEntityManagerCreator.java | Class | Factory for a shared JPA EntityManager for a given EntityManagerFactory.
The shared EntityManager will behave just like an EntityManager fetched
from an application server's JNDI environment, as defined by the JPA
specification. |