org.firebirdsql.pool
Class ResultSetHandler
java.lang.Object
org.firebirdsql.pool.ResultSetHandler
- InvocationHandler
public class ResultSetHandler
extends java.lang.Object
implements InvocationHandler
Wrapper for result sets. This class watches the ResultSet.getStatement()
invocations and substitutes the result of the method call with the proxy
wrapping corresponding prepared statement.
ResultSetHandler(Statement owner, ResultSet target) - Create instance of this class for the specified prepared statement proxy
and target result set.
|
static Method | findMethod(Class clazz, String name, Class[] params)
|
Object | invoke(Object proxy, Method method, Object[] args) - Implementation of the dynamic proxy handler interface.
|
ResultSetHandler
public ResultSetHandler(Statement owner,
ResultSet target)
Create instance of this class for the specified prepared statement proxy
and target result set.
owner
- dynamic proxy implementing PreparedStatement
interface that generated result set to wrap.target
- result set to wrap.
findMethod
public static Method findMethod(Class clazz,
String name,
Class[] params)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
Implementation of the dynamic proxy handler interface.
Copyright B) 2001 David Jencks and other authors. All rights reserved.