public interface ResultSet extends java.lang.Iterable<Row>, java.lang.AutoCloseable
To create a resultset object, call
Statement.executeQuery
.
A program that creates a resultset object must explicitly call
ResultSet.close
to reclaim its resources.
This interface is implemented internally. Applications do not implement this interface.
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the resultset object.
|
Statement |
getStatement()
Returns the
Statement that created this ResultSet. |
java.util.Iterator<Row> |
iterator()
Returns the
Iterator for this resultset. |
java.util.Iterator<Row> iterator()
Iterator
for this resultset. Each resultset object has only one Iterator so
repeated calls to this method will always return the same Iterator. If you need to
restart the iteration you must create a new resultset.
Note that the row returned can be used in tibdgRow methods
but may not be used in table operations.iterator
in interface java.lang.Iterable<Row>
void close() throws DataGridException
Releases all resources associated with this resultset object.
close
in interface java.lang.AutoCloseable
DataGridException
- in case of failuresStatement getStatement() throws DataGridException
Statement
that created this ResultSet.DataGridException
- in case of failures