DB2BaseDataSource class
The com.ibm.db2.jcc.DB2BaseDataSource class is the abstract data source parent
class for all IBM Data Server Driver for JDBC and SQLJ-specific implementations
of javax.sql.DataSource, javax.sql.ConnectionPoolDataSource, and
javax.sql.XADataSource.
DB2BaseDataSource implements the java.sql.Wrapper interface.
DB2BaseDataSource properties
The following properties are defined only for the IBM Data Server Driver for JDBC
and SQLJ.
You can set all properties on a DataSource or in the url parameter in a
DriverManager.getConnection call.
All properties except the following properties have a setXXX method to set the
value of the property and a getXXX method to retrieve the value:
v minTransportObjects
v maxTransportObjectIdleTime
v maxTransportObjectWaitTime
v dumpPool
v dumpPoolStatisticsOnSchedule
v dumpPoolStatisticsOnScheduleFile
A setXXX method has this form:
void setProperty-name(data-type property-value)
A getXXX method has this form:
data-type getProperty-name()
Property-name is the unqualified property name. For properties that are not specific
to IBM Informix Dynamic Server (IDS), the first character of the property name is
capitalized. For properties that are used only by IDS, all characters of the property
name are capitalized.
The following table lists the IBM Data Server Driver for JDBC and SQLJ properties
and their data types.
Table 85. DB2BaseDataSource properties and their data types
Property name
Applicable data
sources Data type
com.ibm.db2.jcc.DB2BaseDataSource.accountingInterval 1 on page 324 String
com.ibm.db2.jcc.DB2BaseDataSource.allowNextOnExhaustedResultSet 1 on page 324, 2
on page 324, 3
on page 324
int
com.ibm.db2.jcc.DB2BaseDataSource.blockingReadConnectionTimeout 1 on page 324, 2
on page 324, 3
on page 324
int
com.ibm.db2.jcc.DB2BaseDataSource.charOutputSize 1 on page 324 short
com.ibm.db2.jcc.DB2BaseDataSource.clientAccountingInformation 1 on page 324, 2
on page 324
String
com.ibm.db2.jcc.DB2BaseDataSource.clientApplicationInformation 1 on page 324, 2
on page 324
String
Chapter 7. JDBC and SQLJ reference information
319
|||