Common Ibm Data Server Driver For Jdbc And Sqlj Properties For All Supported Database Products - IBM DB2 Manual

Table of Contents

Advertisement

Common IBM Data Server Driver for JDBC and SQLJ
properties for all supported database products
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"SIGNON function for RRSAF" (DB2 Application Programming and SQL
Guide)
Related reference
"JDBC differences between the current IBM Data Server Driver for JDBC and
SQLJ and earlier DB2 JDBC drivers" on page 370
"IBM Data Server Driver for JDBC and SQLJ extensions to JDBC" on page 316
"DB2BaseDataSource class" on page 319
"DB2ConnectionPoolDataSource class" on page 341
"DB2TraceManager class" on page 359
"DDF/RRSAF ACCUM" (DB2 Installation Guide)
Most of the IBM Data Server Driver for JDBC and SQLJ properties apply to all
database products that the driver supports.
Unless otherwise noted, all properties are in com.ibm.db2.jcc.DB2BaseDataSource.
Those properties are:
allowNextOnExhaustedResultSet
Specifies how the IBM Data Server Driver for JDBC and SQLJ handles a
ResultSet.next() call for a forward-only cursor that is positioned after the last
row of the ResultSet. The data type of this property is int.
Possible values are:
DB2BaseDataSource.YES (1)
For a ResultSet that is defined as TYPE_FORWARD_ONLY,
ResultSet.next() returns false if the cursor was previously positioned
after the last row of the ResultSet. false is returned, regardless of
whether the cursor is open or closed.
DB2BaseDataSource.NO (2)
For a ResultSet that is defined as TYPE_FORWARD_ONLY, when
ResultSet.next() is called, and the cursor was previously positioned
after the last row of the ResultSet, the driver throws a
java.sql.SQLException with error text "Invalid operation: result set is
closed." This is the default.
blockingReadConnectionTimeout
The amount of time in seconds before a connection socket read times out. This
property applies only to IBM Data Server Driver for JDBC and SQLJ type 4
connectivity, and affects all requests that are sent to the data source after a
connection is successfully established. The default is 0. A value of 0 means that
there is no timeout.
clientRerouteAlternateServerName
Specifies one or more server names for client reroute. The data type of this
property is String.
When enableClientAffinitiesList=DB2BaseDataSource.YES (1),
clientRerouteAlternateServerName must contain the name of the primary
server as well as alternate server names. The server that is identified by
serverName and portNumber is the primary server. That server name must
appear at the beginning of the clientRerouteAlternateServerName list.
Chapter 7. JDBC and SQLJ reference information
203

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents