IBM DB2 Manual page 326

Table of Contents

Advertisement

getMaxFieldSize
getMaxRows
getNextResultSet()
getNextResultSet(int)
310
Application Programming Guide and Reference for Java
synchronized public int getFetchSize() throws SQLException
Returns the number of rows that should be fetched by SQLJ when more rows
are needed. This value applies only to iterator objects that were generated from
the given execution context. The returned value is the value that was set by the
setFetchSize method, or 0 if no value was set by setFetchSize.
Format:
public synchronized int getMaxFieldSize()
Returns the maximum number of bytes that are returned for any string
(character, graphic, or varying-length binary) column in queries that use the
given execution context. If this limit is exceeded, SQLJ discards the remaining
bytes. A value of 0 means that the maximum number of bytes is unlimited.
Format:
public synchronized int getMaxRows()
Returns the maximum number of rows that are returned for any query that
uses the given execution context. If this limit is exceeded, SQLJ discards the
remaining rows. A value of 0 means that the maximum number of rows is
unlimited.
Format:
public ResultSet getNextResultSet() throws SQLException
After a stored procedure call, returns a result set from the stored procedure.
A null value is returned if any of the following conditions are true:
v There are no more result sets to be returned.
v The stored procedure call did not produce any result sets.
v A stored procedure call has not been executed under the execution context.
When you invoke getNextResultSet(), SQLJ closes the currently-open result
set and advances to the next result set.
If an error occurs during a call to getNextResultSet, resources for the current
JDBC ResultSet object are released, and an SQLException is thrown.
Subsequent calls to getNextResultSet return null.
Formats:
public ResultSet getNextResultSet(int current)
After a stored procedure call, returns a result set from the stored procedure.
A null value is returned if any of the following conditions are true:
v There are no more result sets to be returned.
v The stored procedure call did not produce any result sets.
v A stored procedure call has not been executed under the execution context.
If an error occurs during a call to getNextResultSet, resources for the current
JDBC ResultSet object are released, and an SQLException is thrown.
Subsequent calls to getNextResultSet return null.
Parameters:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents