Class ConnectionImpl.ExceptionInterceptorChain
java.lang.Object
com.mysql.jdbc.ConnectionImpl.ExceptionInterceptorChain
- All Implemented Interfaces:
ExceptionInterceptor, Extension
- Enclosing class:
ConnectionImpl
public class ConnectionImpl.ExceptionInterceptorChain
extends Object
implements ExceptionInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) 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.voidinit(Connection conn, Properties properties) 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().interceptException(SQLException sqlEx, Connection conn)
-
Constructor Details
-
ExceptionInterceptorChain
ExceptionInterceptorChain(String interceptorClasses) throws SQLException - Throws:
SQLException
-
-
Method Details
-
addRingZero
- Throws:
SQLException
-
interceptException
- Specified by:
interceptExceptionin interfaceExceptionInterceptor
-
destroy
-
init
Description copied from interface:ExtensionCalled 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().- Specified by:
initin interfaceExtension- Parameters:
conn- the connection for which this extension is being createdproperties- 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.- Throws:
SQLException- should be thrown if the the Extension can not initialize itself.
-
getInterceptors
-