|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
---|---|
GroovyResultSetExtension |
extension
|
MetaClass |
metaClass
|
Constructor Summary | |
GroovyResultSetProxy(ResultSet set)
Creates a new procy instance. |
|
GroovyResultSetProxy(GroovyResultSetExtension ext)
Creates a new proxy instance with a custom extension. |
Method Summary | |
---|---|
GroovyResultSet |
getImpl()
Gets a proxy instance that can be used as GroovyResultSet. |
MetaClass |
getMetaClass()
|
Object |
invoke(Object proxy, Method method, def args)
Invokes a method for the GroovyResultSet. |
MetaClass |
setMetaClass(MetaClass mc)
|
Constructor Detail |
---|
public GroovyResultSetProxy(ResultSet set)
public GroovyResultSetProxy(GroovyResultSetExtension ext)
Method Detail |
---|
public GroovyResultSet getImpl()
MetaClass getMetaClass()
public Object invoke(Object proxy, Method method, def args)
MetaClass setMetaClass(MetaClass mc)