|FRAMES NO FRAMES|
|SUMMARY: NESTED | FIELD | CONSTR | METHOD||DETAIL: FIELD | CONSTR | METHOD|
public final class GroovyResultSetProxy
GroovyResultSetProxy is used to create a proxy for GroovyResultSet. Due to the version incompatibility between java 6 and older versions methods with additional logic were moved into an extension class. When getting properties or calling methods, the runtime will try to first execute these on the extension and then on the ResultSet itself. This way it is possible to replace and add methods. To overload methods from ResultSet all methods have to be implemented on the extension class.
Creates a new proxy instance.
Creates a new proxy instance with a custom extension.
Gets a proxy instance that can be used as GroovyResultSet.
Invokes a method for the GroovyResultSet.
|Methods inherited from class Object|
|wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll|
public GroovyResultSetProxy(ResultSet set)
set- the result set to delegate to
public GroovyResultSetProxy(GroovyResultSetExtension ext)
ext- the extension
public GroovyResultSet getImpl()
public Object invoke(Object proxy, Method method, Object args)
proxy- the result set
method- 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 instead
args- for the call
Copyright © 2003-2013 The Codehaus. All rights reserved.