本文整理汇总了Java中com.mysql.jdbc.ExceptionInterceptor类的典型用法代码示例。如果您正苦于以下问题:Java ExceptionInterceptor类的具体用法?Java ExceptionInterceptor怎么用?Java ExceptionInterceptor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExceptionInterceptor类属于com.mysql.jdbc包,在下文中一共展示了ExceptionInterceptor类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: JDBC4NClob
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
JDBC4NClob(ExceptionInterceptor exceptionInterceptor) {
super(exceptionInterceptor);
}
示例2: getExceptionInterceptor
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
@Override
public ExceptionInterceptor getExceptionInterceptor() {
if (this.currentConnection == null) {
return null;
}
return this.currentConnection.getExceptionInterceptor();
}
示例3: checkSqlType
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
static int checkSqlType(int sqlType, ExceptionInterceptor exceptionInterceptor) throws SQLException {
if (JDBC42Helper.isSqlTypeSupported(sqlType)) {
return sqlType;
}
throw SQLError.createSQLFeatureNotSupportedException(Messages.getString("UnsupportedSQLType.0") + JDBCType.valueOf(sqlType),
SQLError.SQL_STATE_DRIVER_NOT_CAPABLE, exceptionInterceptor);
}
示例4: getExceptionInterceptor
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
@Override
public ExceptionInterceptor getExceptionInterceptor() {
if (this.currentConnection == null) {
return null;
}
return getActiveConnectionPassive().getExceptionInterceptor();
}
示例5: getExceptionInterceptor
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
public ExceptionInterceptor getExceptionInterceptor() {
if (this.currentConnection == null) {
return null;
}
return getActiveConnectionPassive().getExceptionInterceptor();
}
示例6: getExceptionInterceptor
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
protected ExceptionInterceptor getExceptionInterceptor() {
return this.exceptionInterceptor;
}
示例7: getExceptionInterceptor
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
public ExceptionInterceptor getExceptionInterceptor() {
return this.pooledConnection.getExceptionInterceptor();
}
示例8: translateAndCheckSqlType
import com.mysql.jdbc.ExceptionInterceptor; //导入依赖的package包/类
static int translateAndCheckSqlType(SQLType sqlType, ExceptionInterceptor exceptionInterceptor) throws SQLException {
return JDBC42Helper.checkSqlType(sqlType.getVendorTypeNumber(), exceptionInterceptor);
}