org.firebirdsql.pool

Class ResultSetHandler

Implemented Interfaces:
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.
Author:
Roman Rokytskyy

Constructor Summary

ResultSetHandler(Statement owner, ResultSet target)
Create instance of this class for the specified prepared statement proxy and target result set.

Method Summary

static Method
findMethod(Class clazz, String name, Class[] params)
Object
invoke(Object proxy, Method method, Object[] args)
Implementation of the dynamic proxy handler interface.

Constructor Details

ResultSetHandler

public ResultSetHandler(Statement owner,
                        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.

Method Details

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.