Class ResultSetWrapper
java.lang.Object
org.apache.jackrabbit.core.util.db.ResultSetWrapper
- All Implemented Interfaces:
InvocationHandler
This is a dynamic proxy in order to support both Java 5 and 6.
-
Method Summary
Modifier and TypeMethodDescriptionstatic final ResultSetnewInstance(Connection con, Statement stmt, ResultSet rs) Creates a newResultSetproxy which closes the givenConnectionandStatementif it is closed.
-
Method Details
-
newInstance
Creates a newResultSetproxy which closes the givenConnectionandStatementif it is closed.- Parameters:
con- the associatedConnectionstmt- the associatedStatementrs- theResultSetwhich backs the proxy- Returns:
- a
ResultSetproxy
-
invoke
- Specified by:
invokein interfaceInvocationHandler- Throws:
Throwable
-