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 |
---|---|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Gets invoked each time an operation on
Connection is invoked. |
boolean |
isDeclaredException(java.lang.reflect.Method m,
java.lang.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 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
JdbcInterceptor
Connection
is invoked.
invoke
in interface java.lang.reflect.InvocationHandler
invoke
in class JdbcInterceptor
java.lang.Throwable
public boolean isDeclaredException(java.lang.reflect.Method m, java.lang.Class<?> clazz)
public void reset(ConnectionPool parent, PooledConnection con)
reset
in class JdbcInterceptor
parent
- - the connection pool owning the connectioncon
- - the pooled connectionCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.