类 CacheSQLExceptionConversionDelegate
- java.lang.Object
-
- org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
-
- org.hibernate.exception.internal.CacheSQLExceptionConversionDelegate
-
- 所有已实现的接口:
SQLExceptionConversionDelegate
public class CacheSQLExceptionConversionDelegate extends AbstractSQLExceptionConversionDelegate
ASQLExceptionConversionDelegateimplementation specific to Caché SQL, accounting for its custom integrity constraint violation error codes.- 作者:
- Jonathan Levinson
-
-
构造器概要
构造器 构造器 说明 CacheSQLExceptionConversionDelegate(ConversionContext conversionContext)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 JDBCExceptionconvert(SQLException sqlException, String message, String sql)Convert the given SQLException into Hibernate's JDBCException hierarchy.-
从类继承的方法 org.hibernate.exception.spi.AbstractSQLExceptionConversionDelegate
getConversionContext
-
-
-
-
构造器详细资料
-
CacheSQLExceptionConversionDelegate
public CacheSQLExceptionConversionDelegate(ConversionContext conversionContext)
-
-
方法详细资料
-
convert
public JDBCException convert(SQLException sqlException, String message, String sql)
Convert the given SQLException into Hibernate's JDBCException hierarchy.- 参数:
sqlException- The SQLException to be converted.message- An optional error message.sql- Optionally, the sql being performed when the exception occurred.- 返回:
- The resulting JDBCException; returns null if it could not be converted.
-
-