You can set preferences that affect how you use the SQLJ features in the workbench.
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:
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.