Uses of Interface
org.springframework.jdbc.support.SQLExceptionTranslator
Packages that use 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
Methods in org.springframework.jdbc.core.support that return SQLExceptionTranslatorModifier and TypeMethodDescriptionprotected final SQLExceptionTranslatorJdbcDaoSupport.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 SQLExceptionTranslatorModifier and TypeClassDescriptionclassBase class forSQLExceptionTranslatorimplementations that allow for fallback to some otherSQLExceptionTranslator.classImplementation ofSQLExceptionTranslatorthat analyzes vendor-specific error codes.classSQLExceptionTranslatorimplementation which analyzes the specificSQLExceptionsubclass thrown by the JDBC driver.classSQLExceptionTranslatorimplementation that analyzes the SQL state in theSQLExceptionbased on the first two digits (the SQL state "class").Methods in org.springframework.jdbc.support that return SQLExceptionTranslatorModifier and TypeMethodDescriptionCustomSQLExceptionTranslatorRegistry.findTranslatorForDatabase(String dbName) Find a custom translator for the specified database.SQLErrorCodes.getCustomSqlExceptionTranslator()JdbcAccessor.getExceptionTranslator()Return the exception translator for this instance.JdbcTransactionManager.getExceptionTranslator()Return the exception translator for this instance.AbstractFallbackSQLExceptionTranslator.getFallbackTranslator()Return the fallback exception translator, if any.Methods in org.springframework.jdbc.support with parameters of type SQLExceptionTranslatorModifier and TypeMethodDescriptionvoidCustomSQLExceptionTranslatorRegistry.registerTranslator(String dbName, SQLExceptionTranslator translator) Register a new custom translator for the specified database name.voidSQLErrorCodes.setCustomSqlExceptionTranslator(SQLExceptionTranslator customSqlExceptionTranslator) voidJdbcAccessor.setExceptionTranslator(SQLExceptionTranslator exceptionTranslator) Set the exception translator for this instance.voidJdbcTransactionManager.setExceptionTranslator(SQLExceptionTranslator exceptionTranslator) Set the exception translator for this instance.voidAbstractFallbackSQLExceptionTranslator.setFallbackTranslator(SQLExceptionTranslator fallback) Override the default SQL state fallback translator (typically aSQLStateSQLExceptionTranslator).Method parameters in org.springframework.jdbc.support with type arguments of type SQLExceptionTranslatorModifier and TypeMethodDescriptionvoidSQLErrorCodes.setCustomSqlExceptionTranslatorClass(Class<? extends SQLExceptionTranslator> customTranslatorClass) voidCustomSQLExceptionTranslatorRegistrar.setTranslators(Map<String, SQLExceptionTranslator> translators) Setter for a Map ofSQLExceptionTranslatorreferences where the key must be the database name as defined in thesql-error-codes.xmlfile. -
Uses of SQLExceptionTranslator in org.springframework.orm.hibernate5
Methods in org.springframework.orm.hibernate5 with parameters of type SQLExceptionTranslatorModifier and TypeMethodDescriptionvoidHibernateExceptionTranslator.setJdbcExceptionTranslator(SQLExceptionTranslator jdbcExceptionTranslator) Set the JDBC exception translator for Hibernate exception translation purposes. -
Uses of SQLExceptionTranslator in org.springframework.orm.jpa.vendor
Methods in org.springframework.orm.jpa.vendor with parameters of type SQLExceptionTranslatorModifier and TypeMethodDescriptionvoidHibernateJpaDialect.setJdbcExceptionTranslator(SQLExceptionTranslator jdbcExceptionTranslator) Set the JDBC exception translator for Hibernate exception translation purposes.