D - S - public abstract class AbstractStatementInvocationHandler<Z,D extends Database<Z>,S extends Statement,F extends AbstractStatementProxyFactory<Z,D,S>> extends InputSinkRegistryInvocationHandler<Z,D,Connection,S,F>
logger| Constructor and Description |
|---|
AbstractStatementInvocationHandler(Class<S> statementClass,
F proxyFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected InvocationStrategy |
getInvocationStrategy(S statement,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected <R> Invoker<Z,D,S,R,SQLException> |
getInvoker(S proxy,
Method method,
Object... parameters)
Return the appropriate invoker for the specified method.
|
protected ProxyFactoryFactory<Z,D,S,SQLException,?,? extends Exception> |
getProxyFactoryFactory(S object,
Method method,
Object... parameters) |
protected boolean |
isBatchMethod(Method method) |
protected <R> void |
postInvoke(Invoker<Z,D,S,R,SQLException> invoker,
S proxy,
Method method,
Object... parameters) |
getInvokerinvokegetProxyFactorypublic AbstractStatementInvocationHandler(Class<S> statementClass, F proxyFactory)
protected ProxyFactoryFactory<Z,D,S,SQLException,?,? extends Exception> getProxyFactoryFactory(S object, Method method, Object... parameters) throws SQLException
getProxyFactoryFactory in class AbstractInvocationHandler<Z,D extends Database<Z>,S extends Statement,SQLException,F extends AbstractStatementProxyFactory<Z,D,S>>SQLExceptionprotected InvocationStrategy getInvocationStrategy(S statement, Method method, Object... parameters) throws SQLException
AbstractInvocationHandlerInvocationStrategy 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>,S extends Statement,SQLException,F extends AbstractStatementProxyFactory<Z,D,S>>statement - the proxied objectmethod - the method to invokeparameters - the method invocation parametersSQLExceptionprotected <R> Invoker<Z,D,S,R,SQLException> getInvoker(S proxy, Method method, Object... parameters) throws SQLException
AbstractInvocationHandlergetInvoker in class AbstractInvocationHandler<Z,D extends Database<Z>,S extends Statement,SQLException,F extends AbstractStatementProxyFactory<Z,D,S>>SQLExceptionprotected <R> void postInvoke(Invoker<Z,D,S,R,SQLException> invoker, S proxy, Method method, Object... parameters)
postInvoke in class AbstractInvocationHandler<Z,D extends Database<Z>,S extends Statement,SQLException,F extends AbstractStatementProxyFactory<Z,D,S>>protected boolean isBatchMethod(Method method)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.