D - C - public abstract class AbstractPooledConnectionInvocationHandler<Z,D extends Database<Z>,C extends PooledConnection,F extends AbstractPooledConnectionProxyFactory<Z,D,C>> extends ChildInvocationHandler<Z,D,Z,SQLException,C,SQLException,F>
logger| Constructor and Description |
|---|
AbstractPooledConnectionInvocationHandler(Class<C> proxyClass,
F proxyFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected InvocationStrategy |
getInvocationStrategy(C connection,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected ProxyFactoryFactory<Z,D,C,SQLException,?,? extends Exception> |
getProxyFactoryFactory(C object,
Method method,
Object... parameters) |
protected <R> void |
postInvoke(Invoker<Z,D,C,R,SQLException> invoker,
C proxy,
Method method,
Object... parameters) |
invokegetInvoker, getInvoker, getProxyFactorypublic AbstractPooledConnectionInvocationHandler(Class<C> proxyClass, F proxyFactory)
protected ProxyFactoryFactory<Z,D,C,SQLException,?,? extends Exception> getProxyFactoryFactory(C object, Method method, Object... parameters) throws SQLException
getProxyFactoryFactory in class AbstractInvocationHandler<Z,D extends Database<Z>,C extends PooledConnection,SQLException,F extends AbstractPooledConnectionProxyFactory<Z,D,C>>SQLExceptionprotected InvocationStrategy getInvocationStrategy(C connection, Method method, Object... parameters) throws SQLException
InvocationStrategy for the specified method.
This implementation detects Wrapper methods; and Object.equals(java.lang.Object), Object.hashCode(), and Object.toString().
Default invocation strategy is AllResultsCollector.getInvocationStrategy in class AbstractInvocationHandler<Z,D extends Database<Z>,C extends PooledConnection,SQLException,F extends AbstractPooledConnectionProxyFactory<Z,D,C>>connection - the proxied objectmethod - the method to invokeparameters - the method invocation parametersSQLExceptionAbstractInvocationHandler.getInvocationStrategy(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])protected <R> void postInvoke(Invoker<Z,D,C,R,SQLException> invoker, C proxy, Method method, Object... parameters)
postInvoke in class AbstractInvocationHandler<Z,D extends Database<Z>,C extends PooledConnection,SQLException,F extends AbstractPooledConnectionProxyFactory<Z,D,C>>Copyright © 2004–2014 Paul Ferraro. All rights reserved.