# Uses of Interface
org.springframework.jdbc.support.SQLExceptionTranslator

Packages that use SQLExceptionTranslator
Package
Description
org.springframework.jdbc.core.support
Classes supporting the `org.springframework.jdbc.core` package.
org.springframework.jdbc.support
Support classes for the JDBC framework, used by the classes in the jdbc.core and jdbc.object packages.

## Uses of SQLExceptionTranslator in org.springframework.jdbc.core.support

Methods in org.springframework.jdbc.core.support that return SQLExceptionTranslator
Modifier and Type
Method
Description
`protected 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

Classes in org.springframework.jdbc.support that implement SQLExceptionTranslator
Modifier and Type
Class
Description
`class`
`AbstractFallbackSQLExceptionTranslator`
Base class for `SQLExceptionTranslator` implementations that allow for a fallback to some other `SQLExceptionTranslator`, as well as for custom overrides.
`class`
`SQLErrorCodeSQLExceptionTranslator`
Implementation of `SQLExceptionTranslator` that analyzes vendor-specific error codes.
`class`
`SQLExceptionSubclassTranslator`
`SQLExceptionTranslator` implementation which analyzes the specific `SQLException` subclass thrown by the JDBC driver.
`class`
`SQLStateSQLExceptionTranslator`
`SQLExceptionTranslator` implementation that analyzes the SQL state in the `SQLException` based on the first two digits (the SQL state "class").
Methods in org.springframework.jdbc.support that return SQLExceptionTranslator
Modifier and Type
Method
Description
`SQLExceptionTranslator`
CustomSQLExceptionTranslatorRegistry.`findTranslatorForDatabase(String dbName)`
Find a custom translator for the specified database.
`SQLExceptionTranslator`
SQLErrorCodes.`getCustomSqlExceptionTranslator()`
`SQLExceptionTranslator`
AbstractFallbackSQLExceptionTranslator.`getCustomTranslator()`
Return a custom exception translator, if any.
`SQLExceptionTranslator`
JdbcAccessor.`getExceptionTranslator()`
Return the exception translator to use for this instance, creating a default if necessary.
`SQLExceptionTranslator`
JdbcTransactionManager.`getExceptionTranslator()`
Return the exception translator to use for this instance, creating a default if necessary.
`SQLExceptionTranslator`
AbstractFallbackSQLExceptionTranslator.`getFallbackTranslator()`
Return the fallback exception translator, if any.
Methods in org.springframework.jdbc.support with parameters of type SQLExceptionTranslator
Modifier and Type
Method
Description
`void`
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.
Method parameters in org.springframework.jdbc.support with type arguments of type SQLExceptionTranslator
Modifier and Type
Method
Description
`void`
SQLErrorCodes.`setCustomSqlExceptionTranslatorClass(Class<? extends SQLExceptionTranslator> customTranslatorClass)`
`void`
CustomSQLExceptionTranslatorRegistrar.`setTranslators(Map<String,SQLExceptionTranslator> translators)`
Setter for a Map of `SQLExceptionTranslator` references where the key must be the database name as defined in the `sql-error-codes.xml` file.