IBM DB2 Manual page 233

Table of Contents

Advertisement

|
|
|
|
|
|
|
|
|
|
|
| |
|
| | |
| | |
| | |
Multiple instances of the IBM Data Server Driver for JDBC and SQLJ can be
installed at a database server by running the DB2Binder utility multiple times.
The DB2binder utility includes a -collection option that lets the installer specify
the collection ID for each IBM Data Server Driver for JDBC and SQLJ instance.
To choose an instance of the IBM Data Server Driver for JDBC and SQLJ for a
connection, you specify a currentPackageSet value that matches the collection
ID for one of the IBM Data Server Driver for JDBC and SQLJ instances.
The precedence rules for the currentPackagePath and currentPackageSet
properties follow the precedence rules for the CURRENT PACKAGESET and
CURRENT PACKAGE PATH special registers.
currentRefreshAge
Specifies a timestamp duration value that is the maximum duration since a
REFRESH TABLE statement was processed on a system-maintained REFRESH
DEFERRED materialized query table such that the materialized query table can
be used to optimize the processing of a query. This property affects dynamic
statement cache matching. The data type of this property is long.
currentSchema
Specifies the default schema name that is used to qualify unqualified database
objects in dynamically prepared SQL statements. The value of this property
sets the value in the CURRENT SCHEMA special register on the database
server. The schema name is case-sensitive, and must be specified in uppercase
characters.
cursorSensitivity
Specifies whether the java.sql.ResultSet.TYPE_SCROLL_SENSITIVE value for a
JDBC ResultSet maps to the SENSITIVE DYNAMIC attribute, the SENSITIVE
STATIC attribute, or the ASENSITIVE attribute for the underlying database
cursor. The data type of this property is int. Possible values are
TYPE_SCROLL_SENSITIVE_STATIC (0), TYPE_SCROLL_SENSITIVE_DYNAMIC (1), or
TYPE_SCROLL_ASENSITIVE (2). The default is TYPE_SCROLL_SENSITIVE_STATIC.
If the data source does not support sensitive dynamic scrollable cursors, and
TYPE_SCROLL_SENSITIVE_DYNAMIC is requested, the JDBC driver accumulates a
warning and maps the sensitivity to SENSITIVE STATIC. For DB2 for i5/OS
database servers, which do not support sensitive static cursors,
java.sql.ResultSet.TYPE_SCROLL_SENSITIVE always maps to SENSITIVE
DYNAMIC.
dateFormat
Specifies:
v The format in which the String argument of the
PreparedStatement.setString method against a DATE column must be
specified.
v The format in which the result of the ResultSet.getString or
CallableStatement.getString method against a DATE column is returned.
The data type of dateFormat is int.
Possible values of dateFormat are:
Constant
com.ibm.db2.jcc.DB2BaseDataSource.ISO
com.ibm.db2.jcc.DB2BaseDataSource.USA
com.ibm.db2.jcc.DB2BaseDataSource.EUR
Integer
value
1
2
3
Chapter 7. JDBC and SQLJ reference information
Format
yyyy-mm-dd
mm/dd/yyyy
dd.mm.yyyy
217

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents