类 ExceptionInterceptorChain
- java.lang.Object
-
- com.mysql.cj.exceptions.ExceptionInterceptorChain
-
- 所有已实现的接口:
ExceptionInterceptor
public class ExceptionInterceptorChain extends Object implements ExceptionInterceptor
-
-
构造器概要
构造器 构造器 说明 ExceptionInterceptorChain(String interceptorClasses, Properties props, Log log)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddRingZero(ExceptionInterceptor interceptor)voiddestroy()Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.List<ExceptionInterceptor>getInterceptors()ExceptionInterceptorinit(Properties properties, Log log)Called once per connection that wants to use the extension The properties are the same ones passed in in the URL or arguments to Driver.connect() or DriverManager.getConnection().ExceptioninterceptException(Exception sqlEx)
-
-
-
构造器详细资料
-
ExceptionInterceptorChain
public ExceptionInterceptorChain(String interceptorClasses, Properties props, Log log)
-
-
方法详细资料
-
addRingZero
public void addRingZero(ExceptionInterceptor interceptor)
-
interceptException
public Exception interceptException(Exception sqlEx)
- 指定者:
interceptException在接口中ExceptionInterceptor
-
destroy
public void destroy()
从接口复制的说明:ExceptionInterceptorCalled by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.- 指定者:
destroy在接口中ExceptionInterceptor
-
init
public ExceptionInterceptor init(Properties properties, Log log)
从接口复制的说明:ExceptionInterceptorCalled once per connection that wants to use the extension The properties are the same ones passed in in the URL or arguments to Driver.connect() or DriverManager.getConnection().- 指定者:
init在接口中ExceptionInterceptor- 参数:
properties- configuration values as passed to the connection. Note that in order to support javax.sql.DataSources, configuration properties specific to an interceptor must be passed via setURL() on the DataSource. Extension properties are not exposed via accessor/mutator methods on DataSources.log- logger instance- 返回:
ExceptionInterceptor
-
getInterceptors
public List<ExceptionInterceptor> getInterceptors()
-
-