4 DB2 Driver : Data Types

Data Types
Table 4-2 lists the data types supported by the DB2 driver and describes how they are mapped to JDBC data types.
Table 4-2. DB2 Data Types  

1
Supported only for DB2 V9.1 for z/OS.

2
Supported only for DB2 V8.1 and higher for Linux/UNIX/Windows, DB2 for z/OS, and DB2 V5R2 for iSeries.

3
For DB2 V9.7 for Linux/UNIX/Windows with the Oracle compatibility feature enabled, the Date type maps to the JDBC TIMESTAMP type.

4
When JDBCBehavior=0, the data type depends on the JVM used by the application. For JVMs earlier than Java SE 6, the first value applies. For Java SE 6 and higher, the second value applies.

5
Supported only for DB2 V9.5 and V9.7 for Linux/UNIX/Windows, DB2 V9.1 for z/OS, and DB2 V6R1 for iSeries.

6
Supported only for DB2 for z/OS and DB2 V5R2 and higher for iSeries.

7
Supported only for DB2 V9.1 and higher for Linux/UNIX/Windows.

8
The XMLDescribeType property overrides the mappings for XML data.

See “Large Object (LOB) Support” for more information about the Blob, Clob, and DBClob data types. See “Returning and Inserting/Updating XML Data” for more information about the XML data type. Refer to Chapter 4 “getTypeInfo()” in the DataDirect Connect Series for JDBC Reference for a description of the data types returned by the getTypeInfo() method.