IBM DB2 Manual page 238

Table of Contents

Advertisement

|
|
|
| |
|
| | |
| | |
|
| | |
| | |
|
|
|
|
|
|
|
|
|
|
|
222
Application Programming Guide and Reference for Java
Possible values of timeFormat are:
Constant
com.ibm.db2.jcc.DB2BaseDataSource.ISO
com.ibm.db2.jcc.DB2BaseDataSource.USA
com.ibm.db2.jcc.DB2BaseDataSource.EUR
com.ibm.db2.jcc.DB2BaseDataSource.JIS
The default is com.ibm.db2.jcc.DB2BaseDataSource.ISO.
useCachedCursor
Specifies whether the underlying cursor for PreparedStatement objects is
cached and reused on subsequent executions of the PreparedStatement. The
data type of useCachedCursor is boolean.
If useCachedCursor is set to true, the cursor for PreparedStatement objects is
cached, which can improve performance. true is the default.
Set useCachedCursor to false if PreparedStatement objects access tables whose
column types or lengths change between executions of those
PreparedStatement objects.
useJDBC4ColumnNameAndLabelSemantics
Specifies how the IBM Data Server Driver for JDBC and SQLJ handles column
labels in ResultSetMetaData.getColumnName,
ResultSetMetaData.getColumnLabel, and ResultSet.findColumn method calls.
Possible values are:
com.ibm.db2.jcc.DB2BaseDataSource.YES (1)
The IBM Data Server Driver for JDBC and SQLJ uses the following
rules, which conform to the JDBC 4.0 specification, to determine the
value that ResultSetMetaData.getColumnName,
ResultSetMetaData.getColumnLabel, and ResultSet.findColumn return:
v The column name that is returned by
ResultSetMetaData.getColumnName is its name from the database.
v The column label that is returned by
ResultSetMetaData.getColumnLabel is the label that is specified with
the SQL AS clause. If the SQL AS clause is not specified, the label is
the name of the column.
v ResultSet.findColumn takes the label for the column, as specified
with the SQL AS clause, as input. If the SQL AS clause was not
specified, the label is the column name.
v The IBM Data Server Driver for JDBC and SQLJ does not use a
column label that is assigned by the SQL LABEL ON statement.
These rules apply to IBM Data Server Driver for JDBC and SQLJ
version 3.50 and later, for connections to the following database
systems:
DB2 for z/OS Version 8 or later
v
DB2 Database for Linux, UNIX, and Windows Version 8.1 or later
v
DB2 for i5/OS V5R3 or later
v
For earlier versions of the driver or the database systems, the rules for
a useJDBC4ColumnNameAndLabelSemantics value of
com.ibm.db2.jcc.DB2BaseDataSource.NO apply, even if
Integer
value
1
2
3
4
Format
hh:mm:ss
hh:mm am or
hh:mm pm
hh.mm.ss
hh:mm:ss

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents