Dbbatchupdateexception Interface - IBM DB2 Manual

Table of Contents

Advertisement

Table 84. Summary of IBM Data Server Driver for JDBC and SQLJ-only classes provided by the IBM Data Server
Driver for JDBC and SQLJ (continued)
Class name
DB2ConnectionPoolDataSource
DB2ExceptionFormatter
DB2JCCPlugin
DB2PooledConnection
DB2PoolMonitor
DB2SimpleDataSource
DB2Sqlca
| | |
DB2TraceManager
DB2XADataSource
Note: The class applies to connections to the following data sources:
1.
DB2 for z/OS
2.
DB2 Database for Linux, UNIX, and Windows
3.
IBM Informix Dynamic Server

DBBatchUpdateException interface

318
Application Programming Guide and Reference for Java
Applicable data sources
1, 2, 3
1, 2, 3
2
1, 2, 3
1, 2
1, 2, 3
1, 2, 3
1, 2, 3
1, 2, 3
Related reference
"Properties for the IBM Data Server Driver for JDBC and SQLJ" on page 201
The com.ibm.db2.jcc.DBBatchUpdateException interface is used for retrieving error
information about batch execution of statements that return automatically
generated keys.
DBBatchUpdateException methods
The following methods are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
getDBGeneratedKeys
Format:
public java.sql.ResultSet[] getDBGeneratedKeys()
throws java.sql.SQLException
Retrieves automatically generated keys that were created when INSERT
statements were executed in a batch. Each ResultSet object that is returned
contains the automatically generated keys for a single statement in the batch.
ResultSet objects that are null correspond to failed statements.
Purpose
A factory for PooledConnection objects.
Contains methods for printing diagnostic
information to a stream.
The abstract class for implementation of JDBC
security plug-ins.
Provides methods that an application server can
use to switch users on a preexisting trusted
connection.
Provides methods for monitoring the global
transport objects pool for the connection
concentrator and Sysplex workload balancing.
Extends the DataBaseDataSource class. Does not
support connection pooling or distributed
transactions.
An encapsulation of the DB2 SQLCA.
Controls the global log writer.
A factory for XADataSource objects. An object that
implements this interface is registered with a
naming service that is based on the Java Naming
and Directory Interface (JNDI).

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents