org.firebirdsql.pool
Class ResultSetHandler
java.lang.Object
org.firebirdsql.pool.ResultSetHandler
- All Implemented Interfaces:
- java.lang.reflect.InvocationHandler
public class ResultSetHandler
- extends java.lang.Object
- implements java.lang.reflect.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.
- Author:
- Roman Rokytskyy
Constructor Summary |
ResultSetHandler(java.sql.Statement owner,
java.sql.ResultSet target)
Create instance of this class for the specified prepared statement proxy
and target result set. |
Method Summary |
static java.lang.reflect.Method |
findMethod(java.lang.Class clazz,
java.lang.String name,
java.lang.Class[] params)
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Implementation of the dynamic proxy handler interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultSetHandler
public ResultSetHandler(java.sql.Statement owner,
java.sql.ResultSet target)
- Create instance of this class for the specified prepared statement proxy
and target result set.
- Parameters:
owner
- dynamic proxy implementing PreparedStatement
interface that generated result set to wrap.target
- result set to wrap.
findMethod
public static java.lang.reflect.Method findMethod(java.lang.Class clazz,
java.lang.String name,
java.lang.Class[] params)
invoke
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
- Implementation of the dynamic proxy handler interface.
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
Copyright © 2001 David Jencks and other authors. All rights reserved.