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 Objectinvoke(Object proxy, Method m, Object[] args)static ResultSetnewInstance(Connection con, Statement stmt, ResultSet rs)Creates a newResultSetproxy which closes the givenConnectionandStatementif it is closed.
-
-
-
Method Detail
-
newInstance
public static final ResultSet newInstance(Connection con, Statement stmt, ResultSet rs)
Creates a newResultSetproxy which closes the givenConnectionandStatementif it is closed.- Parameters:
con- the associatedConnectionstmt- the associatedStatementrs- theResultSetwhich backs the proxy- Returns:
- a
ResultSetproxy
-
-