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 SQLExceptionReleases database resources that the iterator uses.
- isClosed
- Format:
public abstract boolean isClosed() throws SQLExceptionReturns a value of
trueif the close method has been invoked. Returnsfalseif the close method has not been invoked. - next
- Format:
public abstract boolean next() throws SQLExceptionAdvances 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
truewhen a next row is available andfalsewhen all rows have been retrieved.