Uses of Interface
org.springframework.jdbc.support.SQLExceptionTranslator
Package
Description
Classes supporting the
org.springframework.jdbc.core
package.Support classes for the JDBC framework, used by the classes in the
jdbc.core and jdbc.object packages.
Package providing integration of
Hibernate 5.x
with Spring concepts.
Support classes for adapting to specific JPA vendors.
-
Uses of SQLExceptionTranslator in org.springframework.jdbc.core.support
Modifier and TypeMethodDescriptionprotected final SQLExceptionTranslator
JdbcDaoSupport.getExceptionTranslator()
Return the SQLExceptionTranslator of this DAO's JdbcTemplate, for translating SQLExceptions in custom JDBC access code. -
Uses of SQLExceptionTranslator in org.springframework.jdbc.support
Modifier and TypeClassDescriptionclass
Base class forSQLExceptionTranslator
implementations that allow for a fallback to some otherSQLExceptionTranslator
, as well as for custom overrides.class
Implementation ofSQLExceptionTranslator
that analyzes vendor-specific error codes.class
SQLExceptionTranslator
implementation which analyzes the specificSQLException
subclass thrown by the JDBC driver.class
SQLExceptionTranslator
implementation that analyzes the SQL state in theSQLException
based on the first two digits (the SQL state "class").Modifier and TypeMethodDescriptionCustomSQLExceptionTranslatorRegistry.findTranslatorForDatabase
(String dbName) Find a custom translator for the specified database.SQLErrorCodes.getCustomSqlExceptionTranslator()
AbstractFallbackSQLExceptionTranslator.getCustomTranslator()
Return a custom exception translator, if any.JdbcAccessor.getExceptionTranslator()
Return the exception translator to use for this instance, creating a default if necessary.JdbcTransactionManager.getExceptionTranslator()
Return the exception translator to use for this instance, creating a default if necessary.AbstractFallbackSQLExceptionTranslator.getFallbackTranslator()
Return the fallback exception translator, if any.Modifier and TypeMethodDescriptionvoid
CustomSQLExceptionTranslatorRegistry.registerTranslator
(String dbName, SQLExceptionTranslator translator) Register a new custom translator for the specified database name.void
SQLErrorCodes.setCustomSqlExceptionTranslator
(SQLExceptionTranslator customSqlExceptionTranslator) void
AbstractFallbackSQLExceptionTranslator.setCustomTranslator
(SQLExceptionTranslator customTranslator) Set a custom exception translator to override any match that this translator would find.void
JdbcAccessor.setExceptionTranslator
(SQLExceptionTranslator exceptionTranslator) Set the exception translator for this instance.void
JdbcTransactionManager.setExceptionTranslator
(SQLExceptionTranslator exceptionTranslator) Set the exception translator for this transaction manager.void
AbstractFallbackSQLExceptionTranslator.setFallbackTranslator
(SQLExceptionTranslator fallback) Set the fallback translator to use when this translator cannot find a specific match itself.Modifier and TypeMethodDescriptionvoid
SQLErrorCodes.setCustomSqlExceptionTranslatorClass
(Class<? extends SQLExceptionTranslator> customTranslatorClass) void
CustomSQLExceptionTranslatorRegistrar.setTranslators
(Map<String, SQLExceptionTranslator> translators) Setter for a Map ofSQLExceptionTranslator
references where the key must be the database name as defined in thesql-error-codes.xml
file. -
Uses of SQLExceptionTranslator in org.springframework.orm.hibernate5
Modifier and TypeMethodDescriptionvoid
HibernateExceptionTranslator.setJdbcExceptionTranslator
(SQLExceptionTranslator jdbcExceptionTranslator) Set the JDBC exception translator for Hibernate exception translation purposes. -
Uses of SQLExceptionTranslator in org.springframework.orm.jpa.vendor
Modifier and TypeMethodDescriptionvoid
HibernateJpaDialect.setJdbcExceptionTranslator
(SQLExceptionTranslator exceptionTranslator) Set the JDBC exception translator for Hibernate exception translation purposes.