IBM DB2 Manual page 325

Table of Contents

Advertisement

executeQuery
Format:
public RTResultSet executeQuery ( ) throws SQLException
This method is used by code that is generated by the SQLJ translator. It is not
intended for direct use by application programs.
executeUpdate
Format:
public int executeUpdate() throws SQLException
This method is used by code that is generated by the SQLJ translator. It is not
intended for direct use by application programs.
getBatchLimit
Format:
synchronized public int getBatchLimit()
Returns the number of statements that are added to a batch before the batch is
implicitly executed.
The returned value is one of the following values:
UNLIMITED_BATCH
This value indicates that the batch size is unlimited.
AUTO_BATCH
This value indicates that the batch size is finite but unknown.
Other integer
The current batch limit.
getBatchUpdateCounts
Format:
public synchronized int[] getBatchUpdateCounts()
Returns an array that contains the number of rows that were updated by each
statement that successfully executed in a batch. The order of elements in the
array corresponds to the order in which statements were inserted into the
batch. Returns null if no statements in the batch completed successfully.
Each element in the returned array can be one of the following values:
-2 This value indicates that the SQL statement executed successfully, but the
number of rows that were updated could not be determined.
-3 This value indicates that the SQL statement failed.
Other integer
This value is the number of rows that were updated by the statement.
getFetchDirection
Format:
synchronized public int getFetchDirection() throws SQLException
Returns the current fetch direction for scrollable iterator objects that were
generated from the given execution context. If a fetch direction was not set for
the execution context, sqlj.runtime.ResultSetIterator.FETCH_FORWARD is
returned.
getFetchSize
Format:
Chapter 7. JDBC and SQLJ reference information
309

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents