Sqlj.runtime.positionediterator Interface; Sqlj.runtime.resultsetiterator Interface - IBM DB2 Manual

Table of Contents

Advertisement

"Using a named iterator in an SQLJ application" on page 124
Related reference

"sqlj.runtime.ResultSetIterator interface"

sqlj.runtime.PositionedIterator interface

The sqlj.runtime.PositionedIterator interface is implemented when an SQLJ
application executes an iterator declaration clause for a positioned iterator.
The order of columns in a positioned iterator must be the same as the order of
columns in the result table, and a positioned iterator does not include result table
column names.
Methods
sqlj.runtime.PositionedIterator inherits all ResultSetIterator methods, and
includes the following additional method:
endFetch
Format:
public abstract boolean endFetch() throws SQLException
Returns a value of true if the iterator is not positioned on a row. Returns a
value of false if the iterator is positioned on a row.
Related tasks
"Using a positioned iterator in an SQLJ application" on page 126
Related reference
"sqlj.runtime.ResultSetIterator interface"
sqlj.runtime.ResultSetIterator interface
The sqlj.runtime.ResultSetIterator interface is implemented by SQLJ for all
iterator declaration clauses.
An untyped iterator can be generated by declaring an instance of the
sqlj.runtime.ResultSetIterator interface directly. In general, use of untyped
iterators is not recommended.
Variables
ASENSITIVE
Format:
public static final int ASENSITIVE
A constant that can be returned by the getSensitivity method. It indicates that
the iterator is defined as ASENSITIVE.
This value is not returned by IBM Informix Dynamic Server.
FETCH_FORWARD
Format:
public static final int FETCH_FORWARD
A constant that can be used by the following methods:
v Set by sqlj.runtime.Scrollable.setFetchDirection and
sqlj.runtime.ExecutionContext.setFetchDirection
v Returned by sqlj.runtime.ExecutionContext.getFetchDirection
Chapter 7. JDBC and SQLJ reference information
299

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents