public class ExceptionInterceptorChain extends Object implements ExceptionInterceptor
| Modifier and Type | Field and Description |
|---|---|
(package private) List<ExceptionInterceptor> |
interceptors |
| Constructor and Description |
|---|
ExceptionInterceptorChain(String interceptorClasses,
Properties props,
Log log) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRingZero(ExceptionInterceptor interceptor) |
void |
destroy()
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() |
ExceptionInterceptor |
init(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().
|
Exception |
interceptException(Exception sqlEx) |
List<ExceptionInterceptor> interceptors
public ExceptionInterceptorChain(String interceptorClasses, Properties props, Log log)
public void addRingZero(ExceptionInterceptor interceptor)
public Exception interceptException(Exception sqlEx)
interceptException in interface ExceptionInterceptorpublic void destroy()
ExceptionInterceptordestroy in interface ExceptionInterceptorpublic ExceptionInterceptor init(Properties properties, Log log)
ExceptionInterceptorinit in interface ExceptionInterceptorproperties - 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 instanceExceptionInterceptorpublic List<ExceptionInterceptor> getInterceptors()