Java packages for JDBC support
Before you can invoke JDBC methods, you need to be able to access all or parts of various Java™ packages that contain those methods.
You can do that either by importing the packages or specific classes,
or by using the fully-qualified class names. You might need the following
packages or classes for your JDBC program:
- java.sql
- Contains the core JDBC API.
- javax.naming
- Contains classes and interfaces for Java Naming and Directory Interface (JNDI), which is often used for implementing a DataSource.
- javax.sql
- Contains methods for producing server-side applications using Java
- com.ibm.db2.jcc
- Contains the implementation of JDBC for the IBM® Data Server Driver for JDBC and SQLJ.