public class

CacheSQLStateConverter

extends Object
implements SQLExceptionConverter
java.lang.Object
   ↳ org.hibernate.exception.CacheSQLStateConverter

Class Overview

A SQLExceptionConverter implementation specific to Caché SQL, accounting for its custom integrity constraint violation error codes.

Summary

Public Constructors
CacheSQLStateConverter(ViolatedConstraintNameExtracter extracter)
Public Methods
JDBCException convert(SQLException sqlException, String message, String sql)
Convert the given SQLException into Hibernate's JDBCException hierarchy.
Protected Methods
JDBCException handledNonSpecificException(SQLException sqlException, String message, String sql)
Handle an exception not converted to a specific type based on the SQLState.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.hibernate.exception.SQLExceptionConverter

Public Constructors

public CacheSQLStateConverter (ViolatedConstraintNameExtracter extracter)

Public Methods

public JDBCException convert (SQLException sqlException, String message, String sql)

Convert the given SQLException into Hibernate's JDBCException hierarchy.

Parameters
sqlException The SQLException to be converted.
message An optional error message.
sql Optionally, the sql being performed when the exception occurred.
Returns
  • The resulting JDBCException.

Protected Methods

protected JDBCException handledNonSpecificException (SQLException sqlException, String message, String sql)

Handle an exception not converted to a specific type based on the SQLState.

Parameters
sqlException The exception to be handled.
message An optional message
sql Optionally, the sql being performed when the exception occurred.
Returns
  • The converted exception; should never be null.