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.
|
org.springframework.orm.hibernate3 |
Package providing integration of
Hibernate 3.x
with Spring concepts.
|
org.springframework.orm.jdo |
Package providing integration of JDO (Java Date Objects) with Spring concepts.
|
Modifier and Type | Method and Description |
---|---|
protected SQLExceptionTranslator |
JdbcDaoSupport.getExceptionTranslator()
Return the SQLExceptionTranslator of this DAO's JdbcTemplate,
for translating SQLExceptions in custom JDBC access code.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFallbackSQLExceptionTranslator
Base class for
SQLExceptionTranslator implementations that allow for
fallback to some other SQLExceptionTranslator . |
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"). |
Modifier and Type | Method and Description |
---|---|
SQLExceptionTranslator |
CustomSQLExceptionTranslatorRegistry.findTranslatorForDatabase(String dbName)
Find a custom translator for the specified database.
|
SQLExceptionTranslator |
SQLErrorCodes.getCustomSqlExceptionTranslator() |
SQLExceptionTranslator |
JdbcAccessor.getExceptionTranslator()
Return the exception translator for this instance.
|
SQLExceptionTranslator |
AbstractFallbackSQLExceptionTranslator.getFallbackTranslator()
Return the fallback exception translator, if any.
|
Modifier and Type | Method and Description |
---|---|
void |
CustomSQLExceptionTranslatorRegistry.registerTranslator(String dbName,
SQLExceptionTranslator translator)
Register a new custom translator for the specified database name.
|
void |
SQLErrorCodes.setCustomSqlExceptionTranslator(SQLExceptionTranslator customSqlExceptionTranslator) |
void |
JdbcAccessor.setExceptionTranslator(SQLExceptionTranslator exceptionTranslator)
Set the exception translator for this instance.
|
void |
AbstractFallbackSQLExceptionTranslator.setFallbackTranslator(SQLExceptionTranslator fallback)
Override the default SQL state fallback translator
(typically a
SQLStateSQLExceptionTranslator ). |
Modifier and Type | Method and 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. |
Modifier and Type | Method and Description |
---|---|
protected SQLExceptionTranslator |
HibernateTransactionManager.getDefaultJdbcExceptionTranslator()
Obtain a default SQLExceptionTranslator, lazily creating it if necessary.
|
protected SQLExceptionTranslator |
HibernateAccessor.getDefaultJdbcExceptionTranslator()
Obtain a default SQLExceptionTranslator, lazily creating it if necessary.
|
SQLExceptionTranslator |
HibernateTransactionManager.getJdbcExceptionTranslator()
Return the JDBC exception translator for this transaction manager, if any.
|
SQLExceptionTranslator |
HibernateAccessor.getJdbcExceptionTranslator()
Return the JDBC exception translator for this instance, if any.
|
static SQLExceptionTranslator |
SessionFactoryUtils.newJdbcExceptionTranslator(org.hibernate.SessionFactory sessionFactory)
Create an appropriate SQLExceptionTranslator for the given SessionFactory.
|
Modifier and Type | Method and Description |
---|---|
protected DataAccessException |
HibernateTransactionManager.convertJdbcAccessException(org.hibernate.JDBCException ex,
SQLExceptionTranslator translator)
Convert the given Hibernate JDBCException to an appropriate exception
from the
org.springframework.dao hierarchy, using the
given SQLExceptionTranslator. |
protected DataAccessException |
HibernateAccessor.convertJdbcAccessException(org.hibernate.JDBCException ex,
SQLExceptionTranslator translator)
Convert the given Hibernate JDBCException to an appropriate exception
from the
org.springframework.dao hierarchy, using the
given SQLExceptionTranslator. |
static org.hibernate.Session |
SessionFactoryUtils.getSession(org.hibernate.SessionFactory sessionFactory,
org.hibernate.Interceptor entityInterceptor,
SQLExceptionTranslator jdbcExceptionTranslator)
Get a Hibernate Session for the given SessionFactory.
|
void |
HibernateTransactionManager.setJdbcExceptionTranslator(SQLExceptionTranslator jdbcExceptionTranslator)
Set the JDBC exception translator for this transaction manager.
|
void |
HibernateAccessor.setJdbcExceptionTranslator(SQLExceptionTranslator jdbcExceptionTranslator)
Set the JDBC exception translator for this instance.
|
void |
HibernateExceptionTranslator.setJdbcExceptionTranslator(SQLExceptionTranslator jdbcExceptionTranslator)
Set the JDBC exception translator for the SessionFactory,
exposed via the PersistenceExceptionTranslator interface.
|
Modifier and Type | Method and Description |
---|---|
SQLExceptionTranslator |
DefaultJdoDialect.getJdbcExceptionTranslator()
Return the JDBC exception translator for this dialect, if any.
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultJdoDialect.setJdbcExceptionTranslator(SQLExceptionTranslator jdbcExceptionTranslator)
Set the JDBC exception translator for this dialect.
|
Copyright © 2015. All rights reserved.