Top Description Fields Constructors Methods
org.hibernate.engine.jdbc.dialect.spi

public Class BasicSQLExceptionConverter

extends Object
Class Inheritance
Imports
java.sql.SQLException, org.hibernate.JDBCException, org.hibernate.exception.internal.SQLStateConversionDelegate, .StandardSQLExceptionConverter, org.hibernate.exception.spi.SQLExceptionConverter, org.hibernate.internal.CoreLogging, .CoreMessageLogger

A helper to centralize conversion of SQLExceptions to JDBCExceptions.

Used while querying JDBC metadata during bootstrapping

Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private static final SQLExceptionConverter
public static final BasicSQLExceptionConverter
INSTANCE

Singleton access

private static final CoreMessageLogger
public static final String
MSG

Message

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JDBCException

Returns:

The converted exception.
convert
(SQLException
The exception to convert.
sqlException
)

Perform a conversion.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CONVERTERback to summary
private static final SQLExceptionConverter CONVERTER
INSTANCEback to summary
public static final BasicSQLExceptionConverter INSTANCE

Singleton access

LOGback to summary
private static final CoreMessageLogger LOG
MSGback to summary
public static final String MSG

Message

Constructor Detail

BasicSQLExceptionConverterback to summary
public BasicSQLExceptionConverter()

Method Detail

convertback to summary
public JDBCException convert(SQLException sqlException)

Perform a conversion.

Parameters
sqlException:SQLException

The exception to convert.

Returns:JDBCException

The converted exception.