Package | Description |
---|---|
org.springframework.dao |
Exception hierarchy enabling sophisticated error handling independent
of the data access approach in use.
|
org.springframework.jca.cci |
This package contains Spring's support for the Common Client Interface (CCI),
as defined by the J2EE Connector Architecture.
|
org.springframework.jdbc |
The classes in this package make JDBC easier to use and
reduce the likelihood of common errors.
|
org.springframework.jdbc.datasource.lookup |
Provides a strategy for looking up JDBC DataSources by name.
|
org.springframework.jdbc.support.xml |
Abstraction for handling fields of SQLXML data type.
|
org.springframework.orm |
Root package for Spring's O/R Mapping integration classes.
|
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.r2dbc |
The classes in this package make R2DBC easier to use and
reduce the likelihood of common errors.
|
org.springframework.r2dbc.connection.lookup |
Provides a strategy for looking up R2DBC ConnectionFactories by name.
|
org.springframework.r2dbc.core.binding |
Classes providing an abstraction over SQL bind markers.
|
Modifier and Type | Class and Description |
---|---|
class |
CleanupFailureDataAccessException
Exception thrown when we couldn't clean up after a data access operation,
but the actual operation went OK.
|
class |
DataAccessResourceFailureException
Data access exception thrown when a resource fails completely:
for example, if we can't connect to a database using JDBC.
|
class |
DataIntegrityViolationException
Exception thrown when an attempt to insert or update data
results in violation of an integrity constraint.
|
class |
DataRetrievalFailureException
Exception thrown if certain expected data could not be retrieved, e.g.
|
class |
DuplicateKeyException
Exception thrown when an attempt to insert or update data
results in violation of a primary key or unique constraint.
|
class |
EmptyResultDataAccessException
Data access exception thrown when a result was expected to have at least
one row (or element) but zero rows (or elements) were actually returned.
|
class |
IncorrectResultSizeDataAccessException
Data access exception thrown when a result was not of the expected size,
for example when expecting a single row but getting 0 or more than 1 rows.
|
class |
IncorrectUpdateSemanticsDataAccessException
Data access exception thrown when something unintended appears to have
happened with an update, but the transaction hasn't already been rolled back.
|
class |
InvalidDataAccessApiUsageException
Exception thrown on incorrect usage of the API, such as failing to
"compile" a query object that needed compilation before execution.
|
class |
InvalidDataAccessResourceUsageException
Root for exceptions thrown when we use a data access resource incorrectly.
|
class |
NonTransientDataAccessResourceException
Data access exception thrown when a resource fails completely and the failure is permanent.
|
class |
PermissionDeniedDataAccessException
Exception thrown when the underlying resource denied a permission
to access a specific element, such as a specific database table.
|
class |
TypeMismatchDataAccessException
Exception thrown on mismatch between Java type and database type:
for example on an attempt to set an object of the wrong type
in an RDBMS column.
|
class |
UncategorizedDataAccessException
Normal superclass when we can't distinguish anything more specific
than "something went wrong with the underlying resource": for example,
an SQLException from JDBC we can't pinpoint more precisely.
|
Modifier and Type | Class and Description |
---|---|
class |
CannotCreateRecordException
Deprecated.
as of 5.3, in favor of specific data access APIs
(or native CCI usage if there is no alternative)
|
class |
CannotGetCciConnectionException
Deprecated.
as of 5.3, in favor of specific data access APIs
(or native CCI usage if there is no alternative)
|
class |
CciOperationNotSupportedException
Deprecated.
as of 5.3, in favor of specific data access APIs
(or native CCI usage if there is no alternative)
|
class |
RecordTypeNotSupportedException
Deprecated.
as of 5.3, in favor of specific data access APIs
(or native CCI usage if there is no alternative)
|
Modifier and Type | Class and Description |
---|---|
class |
BadSqlGrammarException
Exception thrown when SQL specified is invalid.
|
class |
CannotGetJdbcConnectionException
Fatal exception thrown when we can't connect to an RDBMS using JDBC.
|
class |
IncorrectResultSetColumnCountException
Data access exception thrown when a result set did not have the correct column count,
for example when expecting a single column but getting 0 or more than 1 column.
|
class |
InvalidResultSetAccessException
Exception thrown when a ResultSet has been accessed in an invalid fashion.
|
class |
JdbcUpdateAffectedIncorrectNumberOfRowsException
Exception thrown when a JDBC update affects an unexpected number of rows.
|
class |
LobRetrievalFailureException
Exception to be thrown when a LOB could not be retrieved.
|
class |
SQLWarningException
Exception thrown when we're not ignoring
SQLWarnings . |
class |
UncategorizedSQLException
Exception thrown when we can't classify an SQLException into
one of our generic data access exceptions.
|
Modifier and Type | Class and Description |
---|---|
class |
DataSourceLookupFailureException
Exception to be thrown by a DataSourceLookup implementation,
indicating that the specified DataSource could not be obtained.
|
Modifier and Type | Class and Description |
---|---|
class |
SqlXmlFeatureNotImplementedException
Exception thrown when the underlying implementation does not support the
requested feature of the API.
|
Modifier and Type | Class and Description |
---|---|
class |
ObjectRetrievalFailureException
Exception thrown if a mapped object could not be retrieved via its identifier.
|
Modifier and Type | Class and Description |
---|---|
class |
HibernateJdbcException
Hibernate-specific subclass of UncategorizedDataAccessException,
for JDBC exceptions that Hibernate wrapped.
|
class |
HibernateObjectRetrievalFailureException
Hibernate-specific subclass of ObjectRetrievalFailureException.
|
class |
HibernateQueryException
Hibernate-specific subclass of InvalidDataAccessResourceUsageException,
thrown on invalid HQL query syntax.
|
class |
HibernateSystemException
Hibernate-specific subclass of UncategorizedDataAccessException,
for Hibernate system errors that do not match any concrete
org.springframework.dao exceptions. |
Modifier and Type | Class and Description |
---|---|
class |
JpaObjectRetrievalFailureException
JPA-specific subclass of ObjectRetrievalFailureException.
|
class |
JpaSystemException
JPA-specific subclass of UncategorizedDataAccessException,
for JPA system errors that do not match any concrete
org.springframework.dao exceptions. |
Modifier and Type | Class and Description |
---|---|
class |
UncategorizedR2dbcException
Exception thrown when we can't classify a
R2dbcException into
one of our generic data access exceptions. |
Modifier and Type | Class and Description |
---|---|
class |
ConnectionFactoryLookupFailureException
Exception to be thrown by a
ConnectionFactoryLookup implementation,
indicating that the specified ConnectionFactory could
not be obtained. |
Modifier and Type | Class and Description |
---|---|
static class |
BindMarkersFactoryResolver.NoBindMarkersFactoryException
Exception thrown when
BindMarkersFactoryResolver cannot resolve a
BindMarkersFactory . |