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 #334 background imageLoading...
Page #334 background image
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 Applicable data sources Purpose
DB2ConnectionPoolDataSource 1, 2, 3 A factory for PooledConnection objects.
DB2ExceptionFormatter 1, 2, 3 Contains methods for printing diagnostic
information to a stream.
DB2JCCPlugin 2 The abstract class for implementation of JDBC
security plug-ins.
DB2PooledConnection 1, 2, 3 Provides methods that an application server can
use to switch users on a preexisting trusted
connection.
DB2PoolMonitor 1, 2 Provides methods for monitoring the global
transport objects pool for the connection
concentrator and Sysplex workload balancing.
DB2SimpleDataSource 1, 2, 3 Extends the DataBaseDataSource class. Does not
support connection pooling or distributed
transactions.
DB2Sqlca 1, 2, 3 An encapsulation of the DB2 SQLCA.
DB2TraceManager 1, 2, 3 Controls the global log writer.
DB2XADataSource 1, 2, 3 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).
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
Related reference
“Properties for the IBM Data Server Driver for JDBC and SQLJ” on page 201
DBBatchUpdateException interface
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.
318 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