sqlj.runtime.NamedIterator interface
The sqlj.runtime.NamedIterator interface is implemented when an SQLJ application executes an iterator declaration clause for a named iterator.
A named iterator includes result table column names, and the order of the columns in the iterator is not important.
An implementation of the sqlj.runtime.NamedIterator interface includes an accessor method for each column in the result table. An accessor method returns the data from its column of the result table. The name of an accessor method matches the name of the corresponding column in the named iterator.
Methods (inherited from the ResultSetIterator interface)
- close
- Format:
public abstract void close() throws SQLException
Releases database resources that the iterator uses.
- isClosed
- Format:
public abstract boolean isClosed() throws SQLException
Returns a value of
true
if the close method has been invoked. Returnsfalse
if the close method has not been invoked. - next
- Format:
public abstract boolean next() throws SQLException
Advances the iterator to the next row. Before an instance of the next method is invoked for the first time, the iterator is positioned before the first row of the result table. next returns a value of
true
when a next row is available andfalse
when all rows have been retrieved.