Class ResultSetWrapper
- java.lang.Object
-
- org.apache.jackrabbit.core.util.db.ResultSetWrapper
-
- All Implemented Interfaces:
InvocationHandler
public final class ResultSetWrapper extends Object implements 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 Object
invoke(Object proxy, Method m, Object[] args)
static ResultSet
newInstance(Connection con, Statement stmt, ResultSet rs)
Creates a newResultSet
proxy which closes the givenConnection
andStatement
if it is closed.
-
-
-
Method Detail
-
newInstance
public static final ResultSet newInstance(Connection con, Statement stmt, 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
-
-