public class DisposableConnectionFacade extends JdbcInterceptor
PooledConnection. The DisposableConnectionFacade intercepts
 two methods:
 Connection.close() - returns the connection to the
       pool then breaks the link between cutoff and the next interceptor.
       May be called multiple times.Object.toString() - returns a custom string for this
       objectPoolConfiguration.setUseEquals(boolean) has been called with a
 true argument.CLOSE_VAL, EQUALS_VAL, GETCONNECTION_VAL, HASHCODE_VAL, ISCLOSED_VAL, ISVALID_VAL, ISWRAPPERFOR_VAL, properties, TOSTRING_VAL, UNWRAP_VAL| Modifier | Constructor and Description | 
|---|---|
| protected  | DisposableConnectionFacade(JdbcInterceptor interceptor) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| int | hashCode() | 
| Object | invoke(Object proxy,
      Method method,
      Object[] args)Gets invoked each time an operation on  Connectionis invoked. | 
| void | reset(ConnectionPool parent,
     PooledConnection con)Gets called each time the connection is borrowed from the pool
 This means that if an interceptor holds a reference to the connection
 the interceptor can be reused for another connection. | 
compare, compare, disconnected, getNext, getProperties, isUseEquals, poolClosed, poolStarted, setNext, setProperties, setUseEqualsprotected DisposableConnectionFacade(JdbcInterceptor interceptor)
public void reset(ConnectionPool parent, PooledConnection con)
JdbcInterceptorreset in class JdbcInterceptorparent - - the connection pool owning the connectioncon - - the pooled connectionpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
JdbcInterceptorConnection is invoked.
 invoke in interface InvocationHandlerinvoke in class JdbcInterceptorThrowableCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.