SQL/MX Programming Manual for Java
Processing SQLJ Programs
HP NonStop SQL/MX Programming Manual for Java—523726-003
5-24
Options for the Java Compiler
customization. By default, this option is false, and an unavailable database object is
considered an error.
-missingSQLObject=false
During translation, if a statement refers to an unavailable database object, the SQLJ
translator program returns an error and does not generate a Java source file (.java
file) or profile (.ser file).
During customization, if a statement refers to an unavailable database object, the
SQLJ translator program returns an error, does not generate a module definition, and
does not extend the profile.
For example, this command sets the -missingSQLObject flag to false:
java sqlj.tools.Sqlj -missingSQLObject=false MyProg.sqlj
-missingSQLObject=true
During translation, if a statement refers to an unavailable database object, the SQLJ
translator program returns a warning but still generates a Java source file (.java file)
and profile (.ser file).
During customization, if a statement refers to an unavailable database object, the
SQLJ translator program returns a warning but still generates a module definition and
extends the profile for statements that do not refer to unavailable database objects.
SQL statements that refer to unavailable database objects are omitted from the module
definition and are not extended in the profile.
For example, this command sets the -missingSQLObject flag to true:
java sqlj.tools.Sqlj -missingSQLObject=true MyProg.sqlj
For more information, see Missing or Unavailable Database Objects on page 4-2.
Options for the Java Compiler
Use these options to influence how the SQLJ translator program invokes the Java
compiler to process the Java source file. Because these options are not passed to the
Java compiler but instead are used by the SQLJ translator, you cannot use the -C
prefix before each of them, except for the -help flag.
-C-help
The -C-help flag directs the SQLJ translator program to display information about the
command-line options of the Java compiler (javac). For example, this command
displays the help text of javac:
java sqlj.tools.Sqlj -C-help