IBM DB2 Manual page 327

Table of Contents

Advertisement

current
Indicates what SQLJ does with the currently open result set before it
advances to the next result set:
java.sql.Statement.CLOSE_CURRENT_RESULT
Specifies that the current ResultSet object is closed when the next
ResultSet object is returned.
java.sql.Statement.KEEP_CURRENT_RESULT
Specifies that the current ResultSet object stays open when the next
ResultSet object is returned.
java.sql.Statement.CLOSE_ALL_RESULTS
Specifies that all open ResultSet objects are closed when the next
ResultSet object is returned.
getQueryTimeout
Format:
public synchronized int getQueryTimeout()
Returns the maximum number of seconds that SQL operations that use the
given execution context object can execute. If an SQL operation exceeds the
limit, an SQLException is thrown. The returned value is the value that was set
by the setQueryTimeout method, or 0 if no value was set by setQueryTimeout.
0 means that execution time is unlimited.
getUpdateCount
Format:
public abstract int getUpdateCount() throws SQLException
Returns:
ExecutionContext.ADD_BATCH_COUNT
If the statement was added to an existing batch.
ExecutionContext.NEW_BATCH_COUNT
If the statement was the first statement in a new batch.
ExecutionContext.EXCEPTION_COUNT
If the previous statement generated an SQLException, or no previous
statement was executed.
ExecutionContext.EXEC_BATCH_COUNT
If the statement was part of a batch, and the batch was executed.
ExecutionContext.QUERY_COUNT
If the previous statement created an iterator object or JDBC ResultSet.
Other integer
If the statement was executed rather than added to a batch. This value is
the number of rows that were updated by the statement.
getWarnings
Format:
public synchronized SQLWarning getWarnings()
Returns the first warning that was reported by the last SQL operation that was
executed using the given execution context. Subsequent warnings are chained
to the first warning. If no warnings occurred, null is returned.
getWarnings is used to retrieve positive SQLCODEs.
Chapter 7. JDBC and SQLJ reference information
311

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents