|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
java.lang.AutoCloseable groovy.lang.GroovyObject java.sql.Wrapper groovy.sql.GroovyResultSet
public interface GroovyResultSet extends GroovyObject, ResultSet
Represents an extent of objects
Field Summary |
---|
Fields inherited from interface ResultSet | |
---|---|
FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE, CONCUR_READ_ONLY, CONCUR_UPDATABLE, HOLD_CURSORS_OVER_COMMIT, CLOSE_CURSORS_AT_COMMIT |
Method Summary | |
---|---|
void
|
add(Map values)
Adds a new row to this result set |
void
|
eachRow(Closure closure)
Call the closure once for each row in the result set. |
Object
|
getAt(int index)
Supports integer-based subscript operators for accessing at numbered columns starting at zero. |
Object
|
getAt(String columnName)
Gets the value of the designated column in the current row
as an |
void
|
putAt(int index, Object newValue)
Supports integer based subscript operators for updating the values of numbered columns starting at zero. |
void
|
putAt(String columnName, Object newValue)
Updates the designated column with an |
Methods inherited from interface GroovyObject | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Method Detail |
---|
public void add(Map values)
values
- the new values to add
public void eachRow(Closure closure)
closure
- the closure to call for each row
public Object getAt(int index)
index
- is the number of the column to look at starting at 1
public Object getAt(String columnName)
Object
.columnName
- the SQL name of the column
public void putAt(int index, Object newValue)
index
- is the number of the column to look at starting at 1newValue
- the new value for this index
public void putAt(String columnName, Object newValue)
Object
value.columnName
- the SQL name of the columnnewValue
- the updated value
Copyright © 2003-2013 The Codehaus. All rights reserved.