Java package importation

Your Embedded SQLJ programs need to import the JDBC API (java.sql.*) and SQLJ runtime (sqlj.runtime.*) packages to which they refer. The classes you are likely to commonly use are:
  • In package java.sql for the JDBC API:

    The SQLException class-includes all runtime exceptions raised by Embedded SQLJ-and classes you explicitly use, such as java.sql.Date, java.sql.ResultSet.

  • In package sqlj.runtime for SQLJ runtime:

    SQLJ stream types (explicitly referenced): for example, BinaryStream, the ConnectionContext class, and the reference implementation of Embedded SQLJ classes (in sqlj.runtime.ref).