skip to main content
DataDirect Connect Drivers : DB2 Driver : Data Source and Driver Classes
  
Data Source and Driver Classes
The driver class for the DB2 driver is:
com.ddtek.jdbc.db2.DB2Driver
Two data source classes are provided with the driver. Which data source class you use depends on the JDBC functionality your application requires. The following table shows the recommended data source class to use with different JDBC specifications.
Table 20. Choosing a Data Source Class
If your application requires...
JVM Version
Data Source Class
JDBC 4.0 functionality and higher
Java 6 or higher
com.ddtek.jdbcx.db2.DB2DriverDataSource40
JDBC 3.x functionality and earlier specifications
Java SE 5 or higher
com.ddtek.jdbcx.db2.DB2DriverDataSource
See Connecting Using Data Sources for information about DataDirect Connect Series for JDBC data sources.