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
Supported only for DB2 V8.1 and higher for Linux/UNIX/Windows, DB2 for z/OS, and DB2 V5R2 for iSeries.
For DB2 V9.7 for Linux/UNIX/Windows with the Oracle compatibility feature enabled, the Date type maps to the JDBC TIMESTAMP type.
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.
Supported only for DB2 V9.5 and V9.7 for Linux/UNIX/Windows, DB2 V9.1 for z/OS, and DB2 V6R1 for iSeries.
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.