接口 ExceptionInterceptor
-
- 所有已知实现类:
ExceptionInterceptorChain
public interface ExceptionInterceptor
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voiddestroy()Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.ExceptionInterceptorinit(Properties props, 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)
-
-
-
方法详细资料
-
init
ExceptionInterceptor init(Properties props, 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().- 参数:
props- 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
-
destroy
void destroy()
Called by the driver when this extension should release any resources it is holding and cleanup internally before the connection is closed.
-
-