IBM DB2 Manual page 317

Table of Contents

Advertisement

getFetchSize
Format:
synchronized public int getFetchSize() throws SQLException
Returns the number of rows that should be fetched by SQLJ when more rows
are needed. The returned value is the value that was set by the setFetchSize
method, or 0 if no value was set by setFetchSize.
getResultSet
Format:
public abstract ResultSet getResultSet() throws SQLException
Returns the JDBC ResultSet object that is associated with the iterator.
getRow
Format:
synchronized public int getRow() throws SQLException
Returns the current row number. The first row is number 1, the second is
number 2, and so on. If the iterator is not positioned on a row, 0 is returned.
getSensitivity
Format:
synchronized public int getSensitivity() throws SQLException
Returns the sensitivity of the iterator. The sensitivity is determined by the
sensitivity value that was specified or defaulted in the with clause of the
iterator declaration clause.
getWarnings
Format:
public abstract SQLWarning getWarnings() throws SQLException
Returns the first warning that is reported by calls on the iterator. Subsequent
iterator warnings are be chained to this SQLWarning. The warning chain is
automatically cleared each time the iterator moves to a new row.
isClosed
Format:
public abstract boolean isClosed() throws SQLException
Returns a value of true if the iterator is closed. Returns false otherwise.
next
Format:
public abstract boolean next() throws SQLException
Advances the iterator to the next row. Before next 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 and false when all rows have been
retrieved.
setFetchSize
Format:
synchronized public void setFetchSize(int number-of-rows) throws SQLException
Gives SQLJ a hint as to the number of rows that should be fetched when more
rows are needed.
Chapter 7. JDBC and SQLJ reference information
301

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents