Setting SQLJ preferences

You can set preferences that affect how you use the SQLJ features in the workbench.

You can also set a preference for a feature that affects whether the Console view shows when you customize and bind SQLJ profiles.

A Java™ file that was generated from an SQLJ file in Version 6.0.0.1 or earlier of the Rational® software development tools (for example, Rational Application Developer) was set to the read-write state. In Version 6.0.1 or later of the Rational tools, the Set generated Java files as read only preference controls the writable state of generated Java files. By default, a generated Java file is set to the read-only state. A previously generated Java file remains in the read-write state until you update its SQLJ file or build the project that contains the SQLJ file.

To set SQLJ preferences:

  1. Click Window > Preferences.
  2. In the navigation tree, expand the Data node, and then click SQLJ Applications.
  3. On the SQLJ page, change any of the preferences.
  4. To automatically show the Console view when you customize and bind SQLJ profiles:
    1. In the navigation tree, expand the Run/Debug node, and then click Console.
    2. On the Console page, select the Show when program writes to standard out check box.
  5. Click OK.

Only the SQL preferences are available on the SQLJ page. All other preferences for Java editing are specified by Java editor preferences. The option to build projects automatically is a Workbench preference.

Related concepts
Introduction to SQLJ
Related reference
Preferences window - SQLJ Applications page
Java editor preferences
Workbench preferences

Comentarios