public final class GroovyResultSetProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler
| Constructor and Description |
|---|
GroovyResultSetProxy(GroovyResultSetExtension ext)
Creates a new proxy instance with a custom extension.
|
GroovyResultSetProxy(java.sql.ResultSet set)
Creates a new proxy instance.
|
| Modifier and Type | Method and Description |
|---|---|
GroovyResultSet |
getImpl()
Gets a proxy instance that can be used as GroovyResultSet.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invokes a method for the GroovyResultSet.
|
public GroovyResultSetProxy(java.sql.ResultSet set)
set - the result set to delegate toGroovyResultSetExtensionpublic GroovyResultSetProxy(GroovyResultSetExtension ext)
ext - the extensionGroovyResultSetExtensionpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerproxy - the result setmethod - the method name of this method will be used
to make a call on the extension. If this fails the call will be
done on the proxy insteadargs - for the calljava.lang.ThrowableResultSet,
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])public GroovyResultSet getImpl()