|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.sql.GroovyResultSet
Represents an extent of objects
Constructor Summary | |
GroovyResultSet(java.sql.ResultSet resultSet)
|
Method Summary | |
void |
add(java.util.Map values)
Adds a new row to this result set |
java.lang.Object |
getAt(int index)
Supports integer based subscript operators for accessing at numbered columns starting at zero. |
java.lang.Object |
getProperty(java.lang.String property)
|
boolean |
next()
Iterates to the next row |
protected int |
normalizeIndex(int index)
Takes a zero based index and convert it into an SQL based 1 based index. |
boolean |
previous()
Moves to the previous row |
void |
putAt(int index,
java.lang.Object newValue)
Supports integer based subscript operators for updating the values of numbered columns starting at zero. |
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value |
Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, invokeMethod, setMetaClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GroovyResultSet(java.sql.ResultSet resultSet)
Method Detail |
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
public void setProperty(java.lang.String property, java.lang.Object newValue)
GroovyObject
setProperty
in interface GroovyObject
setProperty
in class GroovyObjectSupport
public boolean next() throws java.sql.SQLException
java.sql.SQLException
public boolean previous() throws java.sql.SQLException
java.sql.SQLException
public java.lang.Object getAt(int index) throws java.sql.SQLException
index
- is the number of the column to look at starting at 1
java.sql.SQLException
public void putAt(int index, java.lang.Object newValue) throws java.sql.SQLException
index
- is the number of the column to look at starting at 1
java.sql.SQLException
public void add(java.util.Map values) throws java.sql.SQLException
values
-
java.sql.SQLException
protected int normalizeIndex(int index) throws java.sql.SQLException
index
-
java.sql.SQLException
- if some exception occurs finding out the column count
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |