Class ResultSetWrapper
- java.lang.Object
-
- org.apache.jackrabbit.core.util.db.ResultSetWrapper
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public final class ResultSetWrapper extends java.lang.Object implements java.lang.reflect.InvocationHandler
This is a dynamic proxy in order to support both Java 5 and 6.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args)
static java.sql.ResultSet
newInstance(java.sql.Connection con, java.sql.Statement stmt, java.sql.ResultSet rs)
Creates a newResultSet
proxy which closes the givenConnection
andStatement
if it is closed.
-
-
-
Method Detail
-
newInstance
public static final java.sql.ResultSet newInstance(java.sql.Connection con, java.sql.Statement stmt, java.sql.ResultSet rs)
Creates a newResultSet
proxy which closes the givenConnection
andStatement
if it is closed.- Parameters:
con
- the associatedConnection
stmt
- the associatedStatement
rs
- theResultSet
which backs the proxy- Returns:
- a
ResultSet
proxy
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method m, java.lang.Object[] args) throws java.lang.Throwable
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
- Throws:
java.lang.Throwable
-
-