Setting SQLJ Translator Options

You can control the translation of SQLJ class through the controls in the Project Settings dialog. SQLJ provides syntactic as well as semantic checking of your SQL code. SQLJ will do syntax and type checking on the SQL statements, testing the compatibility of Java and SQL expressions at compile time. As a compile time option, you also can specify a connection to a database server, and have SQLJ check the semantics of your SQL statements against the database schemas specified by connection contexts.

To set the SQLJ translator options:

  1. In the Navigator, select the project that contains the SQLJ file.
  2. Choose Project | Project Settings to open the Project Settings dialog.
  3. In the Configurations branch of Project Settings tree, expand the configuration you wish to use.
  4. In the selected configuration, expand Compiler and select SQLJ.
  5. In the panel, set the compilation options. For further instructions at any time, click Help.
  6. When finished, click OK.

Embedding SQL in Java Programs with SQLJ