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 #238 background imageLoading...
Page #238 background image
Possible values of timeFormat are:
Constant
Integer
value Format
com.ibm.db2.jcc.DB2BaseDataSource.ISO 1 hh:mm:ss
com.ibm.db2.jcc.DB2BaseDataSource.USA 2 hh:mm am or
hh:mm pm
com.ibm.db2.jcc.DB2BaseDataSource.EUR 3 hh.mm.ss
com.ibm.db2.jcc.DB2BaseDataSource.JIS 4 hh:mm:ss
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:
v 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
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
222 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