D
- S
- public class ResultSetInvocationHandler<Z,D extends Database<Z>,S extends Statement> extends InputSinkRegistryInvocationHandler<Z,D,S,ResultSet,ResultSetProxyFactory<Z,D,S>>
logger
Constructor and Description |
---|
ResultSetInvocationHandler(ResultSetProxyFactory<Z,D,S> factory) |
Modifier and Type | Method and Description |
---|---|
protected InvocationStrategy |
getInvocationStrategy(ResultSet resultSet,
Method method,
Object... parameters)
Returns the appropriate
InvocationStrategy for the specified method. |
protected <R> Invoker<Z,D,ResultSet,R,SQLException> |
getInvoker(ResultSet results,
Method method,
Object... parameters)
Return the appropriate invoker for the specified method.
|
protected ProxyFactoryFactory<Z,D,ResultSet,SQLException,?,? extends Exception> |
getProxyFactoryFactory(ResultSet object,
Method method,
Object... parameters) |
protected <R> void |
postInvoke(Invoker<Z,D,ResultSet,R,SQLException> invoker,
ResultSet results,
Method method,
Object... parameters) |
getInvoker
invoke
getProxyFactory
public ResultSetInvocationHandler(ResultSetProxyFactory<Z,D,S> factory)
factory
- a factory for creating result set proxiesprotected ProxyFactoryFactory<Z,D,ResultSet,SQLException,?,? extends Exception> getProxyFactoryFactory(ResultSet object, Method method, Object... parameters) throws SQLException
getProxyFactoryFactory
in class AbstractInvocationHandler<Z,D extends Database<Z>,ResultSet,SQLException,ResultSetProxyFactory<Z,D extends Database<Z>,S extends Statement>>
SQLException
protected InvocationStrategy getInvocationStrategy(ResultSet resultSet, Method method, Object... parameters) throws SQLException
AbstractInvocationHandler
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>,ResultSet,SQLException,ResultSetProxyFactory<Z,D extends Database<Z>,S extends Statement>>
resultSet
- the proxied objectmethod
- the method to invokeparameters
- the method invocation parametersSQLException
protected <R> Invoker<Z,D,ResultSet,R,SQLException> getInvoker(ResultSet results, Method method, Object... parameters) throws SQLException
AbstractInvocationHandler
getInvoker
in class AbstractInvocationHandler<Z,D extends Database<Z>,ResultSet,SQLException,ResultSetProxyFactory<Z,D extends Database<Z>,S extends Statement>>
SQLException
protected <R> void postInvoke(Invoker<Z,D,ResultSet,R,SQLException> invoker, ResultSet results, Method method, Object... parameters)
postInvoke
in class AbstractInvocationHandler<Z,D extends Database<Z>,ResultSet,SQLException,ResultSetProxyFactory<Z,D extends Database<Z>,S extends Statement>>
Copyright © 2004–2014 Paul Ferraro. All rights reserved.