EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #324 background imageLoading...
Page #324 background image
public static final int QUERY_COUNT
A constant that can be passed to the setBatchLimit method. It indicates that the
previous execution produced a result set.
UNLIMITED_BATCH
Format:
public static final int UNLIMITED_BATCH
A constant that can be returned from the getUpdateCount method. It indicates
that statements should continue to be added to a statement batch, regardless of
the batch size.
Constructors:
ExecutionContext
Format:
public ExecutionContext()
Creates an ExecutionContext instance.
Methods
cancel
Format:
public void cancel() throws SQLException
Cancels an SQL operation that is currently being executed by a thread that
uses the execution context object. If there is a pending statement batch on the
execution context object, the statement batch is canceled and cleared.
The cancel method throws an SQLException if the statement cannot be
canceled.
execute
Format:
public boolean execute ( ) 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.
executeBatch
Format:
public synchronized int[] executeBatch() throws SQLException
Executes the pending statement batch and returns an array of update counts. If
no pending statement batch exists, null is returned. When this method is
called, the statement batch is cleared, even if the call results in an exception.
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.
The executeBatch method throws an SQLException if a database error occurs
while the statement batch executes.
308 Application Programming Guide and Reference for Java
â„¢

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability