public final class GroovyResultSetProxy extends Object implements InvocationHandler
Constructor and Description |
---|
GroovyResultSetProxy(GroovyResultSetExtension ext)
Creates a new proxy instance with a custom extension.
|
GroovyResultSetProxy(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.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Invokes a method for the GroovyResultSet.
|
public GroovyResultSetProxy(ResultSet set)
set
- the result set to delegate toGroovyResultSetExtension
public GroovyResultSetProxy(GroovyResultSetExtension ext)
ext
- the extensionGroovyResultSetExtension
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
proxy
- 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 callThrowable
ResultSet
,
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
public GroovyResultSet getImpl()