org.apache.jackrabbit.core.util.db
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newInstance
public static final ResultSet newInstance(Connection con,
Statement stmt,
ResultSet rs)
- Creates a new
ResultSet
proxy which closes the given Connection
and
Statement
if it is closed.
- Parameters:
con
- the associated Connection
stmt
- the associated Statement
rs
- the ResultSet
which backs the proxy
- Returns:
- a
ResultSet
proxy
invoke
public Object invoke(Object proxy,
Method m,
Object[] args)
throws Throwable
-
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.