Package | Description |
---|---|
org.springframework.dao.annotation |
Annotation support for DAOs.
|
org.springframework.dao.support |
Support classes for DAO implementations,
providing miscellaneous utility methods.
|
org.springframework.orm.hibernate5 |
Package providing integration of
Hibernate 5.x
with Spring concepts.
|
org.springframework.orm.jpa |
Package providing integration of JPA (Java Persistence API) with Spring concepts.
|
org.springframework.orm.jpa.vendor |
Support classes for adapting to specific JPA vendors.
|
Constructor and Description |
---|
PersistenceExceptionTranslationAdvisor(PersistenceExceptionTranslator persistenceExceptionTranslator,
Class<? extends Annotation> repositoryAnnotationType)
Create a new PersistenceExceptionTranslationAdvisor.
|
Modifier and Type | Class and Description |
---|---|
class |
ChainedPersistenceExceptionTranslator
Implementation of
PersistenceExceptionTranslator that supports chaining,
allowing the addition of PersistenceExceptionTranslator instances in order. |
Modifier and Type | Method and Description |
---|---|
protected PersistenceExceptionTranslator |
PersistenceExceptionTranslationInterceptor.detectPersistenceExceptionTranslators(ListableBeanFactory bf)
Detect all PersistenceExceptionTranslators in the given BeanFactory.
|
PersistenceExceptionTranslator[] |
ChainedPersistenceExceptionTranslator.getDelegates()
Return all registered PersistenceExceptionTranslator delegates (as array).
|
Modifier and Type | Method and Description |
---|---|
void |
ChainedPersistenceExceptionTranslator.addDelegate(PersistenceExceptionTranslator pet)
Add a PersistenceExceptionTranslator to the chained delegate list.
|
void |
PersistenceExceptionTranslationInterceptor.setPersistenceExceptionTranslator(PersistenceExceptionTranslator pet)
Specify the PersistenceExceptionTranslator to use.
|
static RuntimeException |
DataAccessUtils.translateIfNecessary(RuntimeException rawException,
PersistenceExceptionTranslator pet)
Return a translated exception if this is appropriate,
otherwise return the given exception as-is.
|
Constructor and Description |
---|
PersistenceExceptionTranslationInterceptor(PersistenceExceptionTranslator pet)
Create a new PersistenceExceptionTranslationInterceptor
for the given PersistenceExceptionTranslator.
|
Modifier and Type | Class and Description |
---|---|
class |
HibernateExceptionTranslator
PersistenceExceptionTranslator capable of translating HibernateException
instances to Spring's DataAccessException hierarchy. |
class |
LocalSessionFactoryBean
FactoryBean that creates a Hibernate SessionFactory . |
Modifier and Type | Interface and Description |
---|---|
interface |
JpaDialect
SPI strategy that encapsulates certain functionality that standard JPA 2.1 does
not offer, such as access to the underlying JDBC Connection.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractEntityManagerFactoryBean
Abstract
FactoryBean that creates
a local JPA EntityManagerFactory instance within
a Spring application context. |
class |
DefaultJpaDialect
Default implementation of the
JpaDialect interface. |
class |
LocalContainerEntityManagerFactoryBean
FactoryBean that creates a JPA
EntityManagerFactory according to JPA's standard
container bootstrap contract. |
class |
LocalEntityManagerFactoryBean
FactoryBean that creates a JPA
EntityManagerFactory according to JPA's standard
standalone bootstrap contract. |
Modifier and Type | Class and Description |
---|---|
class |
EclipseLinkJpaDialect
JpaDialect implementation for Eclipse
Persistence Services (EclipseLink). |
class |
HibernateJpaDialect
JpaDialect implementation for
Hibernate EntityManager. |