public class ResultSetMetaDataWrapper
extends groovy.lang.GroovyObjectSupport
ResultSetMetaData
.
This allows iteration over columns using idiomatic Groovy, e.g.:
meta.each {col -> println col.columnName }All
ResultSetMetaData
column methods taking a column index
are available on a column either as a no-arg getter or via a property.
This wrapper is created by an iterator invoked for ResultSetMetaData
.
SqlGroovyMethods
Constructor and Description |
---|
ResultSetMetaDataWrapper(ResultSetMetaData target,
int index) |
Modifier and Type | Method and Description |
---|---|
Object |
getProperty(String property) |
Object |
invokeMethod(String name,
Object args) |
void |
setProperty(String property,
Object newValue) |
public ResultSetMetaDataWrapper(ResultSetMetaData target, int index)
public Object invokeMethod(String name, Object args)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class groovy.lang.GroovyObjectSupport
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class groovy.lang.GroovyObjectSupport