public class TrapException extends JdbcInterceptor
CLOSE_VAL, EQUALS_VAL, GETCONNECTION_VAL, HASHCODE_VAL, ISCLOSED_VAL, ISVALID_VAL, ISWRAPPERFOR_VAL, properties, TOSTRING_VAL, UNWRAP_VAL
Constructor and Description |
---|
TrapException() |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Gets invoked each time an operation on
Connection is invoked. |
boolean |
isDeclaredException(Method m,
Class<?> clazz) |
void |
reset(ConnectionPool parent,
PooledConnection con)
no-op for this interceptor. no state is stored.
|
compare, compare, disconnected, getNext, getProperties, isUseEquals, poolClosed, poolStarted, setNext, setProperties, setUseEquals
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
JdbcInterceptor
Connection
is invoked.
invoke
in interface InvocationHandler
invoke
in class JdbcInterceptor
Throwable
public void reset(ConnectionPool parent, PooledConnection con)
reset
in class JdbcInterceptor
parent
- - the connection pool owning the connectioncon
- - the pooled connectionCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.