Top Description Fields Constructors Methods
org.hibernate.exception.internal

public Class CacheSQLExceptionConversionDelegate

extends AbstractSQLExceptionConversionDelegate
Class Inheritance
Imports
java.sql.SQLException, java.util.HashSet, .Set, org.hibernate.JDBCException, org.hibernate.exception.ConstraintViolationException, .DataException, org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate, .ConversionContext, org.hibernate.internal.util.JdbcExceptionHelper

A org.hibernate.exception.spi.SQLExceptionConversionDelegate implementation specific to Caché SQL, accounting for its custom integrity constraint violation error codes.
Author
Jonathan Levinson

Field Summary

Modifier and TypeField and Description
private static final Set<String>
private static final Set<Integer>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JDBCException

Returns:

The resulting JDBCException; returns null if it could not be converted.
convert
(SQLException
The SQLException to be converted.
sqlException
,
String
An optional error message.
message
,
String
Optionally, the sql being performed when the exception occurred.
sql
)

Implements org.hibernate.exception.spi.SQLExceptionConversionDelegate.convert.

Convert the given SQLException into Hibernate's JDBCException hierarchy.
Inherited from org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate:
getConversionContext

Field Detail

DATA_CATEGORIESback to summary
private static final Set<String> DATA_CATEGORIES
INTEGRITY_VIOLATION_CATEGORIESback to summary
private static final Set<Integer> INTEGRITY_VIOLATION_CATEGORIES

Constructor Detail

CacheSQLExceptionConversionDelegateback to summary
public CacheSQLExceptionConversionDelegate(ConversionContext conversionContext)

Method Detail

convertback to summary
public JDBCException convert(SQLException sqlException, String message, String sql)

Implements org.hibernate.exception.spi.SQLExceptionConversionDelegate.convert.

Convert the given SQLException into Hibernate's JDBCException hierarchy.

Parameters
sqlException:SQLException

The SQLException to be converted.

message:String

An optional error message.

sql:String

Optionally, the sql being performed when the exception occurred.

Returns:JDBCException

The resulting JDBCException; returns null if it could not be converted.

Annotations
@Override