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 #240 background imageLoading...
Page #240 background image
positive integer
Enables the internal statement cache for a PooledConnection, and
specifies the number of statements that the IBM Data Server Driver for
JDBC and SQLJ keeps open in the cache.
0 or negative integer
Disables internal statement caching for the PooledConnection.0isthe
default.
maxStatements controls the internal statement cache that is associated with a
PooledConnection only when the PooledConnection object is created.
maxStatements has no effect on caching in an already existing
PooledConnection object.
maxStatements applies only to IBM Data Server Driver for JDBC and SQLJ
type 2 connectivity on DB2 for z/OS, and to IBM Data Server Driver for JDBC
and SQLJ type 4 connectivity.
Related information
IBM Data Studio Information Center
Common IBM Data Server Driver for JDBC and SQLJ
properties for DB2 for z/OS and IDS
Some of the IBM Data Server Driver for JDBC and SQLJ properties apply to IBM
Informix Dynamic Server (IDS) and DB2 for z/OS database servers.
Properties that apply to IDS and DB2 for z/OS are:
enableConnectionConcentrator
Indicates whether the connection concentrator function of the IBM Data Server
Driver for JDBC and SQLJ is enabled. The connection concentrator function is
available only for connections to DB2 for z/OS servers.
The data type of enableConnectionConcentrator is boolean. The default is
false. However, if enableSysplexWLB is set to true, the default is true.
keepDynamic
Specifies whether the data source keeps already prepared dynamic SQL
statements in the dynamic statement cache after commit points so that those
prepared statements can be reused. The data type of this property is int. Valid
values are DB2BaseDataSource.YES (1) and DB2BaseDataSource.NO (2).
If the keepDynamic property is not specified, the keepDynamic value is
DB2BaseDataSource.NOT_SET (0). If the connection is to a DB2 for z/OS server,
caching of dynamic statements for a connection is not done if the property is
not set. If the connection is to an IDS data source, caching of dynamic
statements for a connection is done if the property is not set.
keepDynamic is used with the DB2Binder -keepdynamic option. The
keepDynamic property value that is specified must match the -keepdynamic
value that was specified when DB2Binder was run.
For a DB2 for z/OS database server, dynamic statement caching can be done
only if the EDM dynamic statement cache is enabled on the data source. The
CACHEDYN subsystem parameter must be set to DB2BaseDataSource.YES to
enable the dynamic statement cache.
maxTransportObjects
Specifies the maximum number of transport objects that can be used for all
connections with the associated DataSource object. The IBM Data Server Driver
224 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