IBM DB2 Manual page 409

Table of Contents

Advertisement

generated by the translator and .class files that are generated by the compiler.
The default is the directory that contains the SQLJ source files.
The translator uses the directory structure of the SQLJ source files when it puts
the generated files in directories. For example, suppose that you want the
translator to process two files:
v file1.sqlj, which is not in a Java package
v file2.sqlj, which is in Java package sqlj.test
Also suppose that you specify the parameter -dir=/src when you invoke the
translator. The translator puts the Java source file for file1.sqlj in directory /src
and puts the Java source file for file2.sqlj in directory /src/sqlj/test.
-d=directory
Specifies the name of the directory into which SQLJ puts the binary files that
are generated by the translator and compiler. These files include the .ser files,
the name_SJProfileKeys.class files, and the .class files that are generated by the
compiler.
The default is the directory that contains the SQLJ source files.
The translator uses the directory structure of the SQLJ source files when it puts
the generated files in directories. For example, suppose that you want the
translator to process two files:
v file1.sqlj, which is not in a Java package
v file2.sqlj, which is in Java package sqlj.test
Also suppose that you specify the parameter -d=/src when you invoke the
translator. The translator puts the serialized profiles for file1.sqlj in directory
/src and puts the serialized profiles for file2.sqlj in directory /src/sqlj/test.
-compile=true|false
Specifies whether the SQLJ translator compiles the generated Java source into
bytecodes.
true
The translator compiles the generated Java source code. This is the default.
false
The translator does not compile the generated Java source code.
-linemap=no|yes
Specifies whether line numbers in Java exceptions match line numbers in the
SQLJ source file (the .sqlj file), or line numbers in the Java source file that is
generated by the SQLJ translator (the .java file).
no Line numbers in Java exceptions match line numbers in the Java source
file. This is the default.
yes
Line numbers in Java exceptions match line numbers in the SQLJ source
file.
-smap=no|yes
Specifies whether the SQLJ translator generates a source map (SMAP) file for
each SQLJ source file. An SMAP file is used by some Java language debug
tools. This file maps lines in the SQLJ source file to lines in the Java source file
that is generated by the SQLJ translator. The file is in the Unicode UTF-8
encoding scheme. Its format is described by Original Java Specification Request
(JSR) 45, which is available from this web site:
http://www.jcp.org
no Do not generated SMAP files. This is the default.
Chapter 7. JDBC and SQLJ reference information
393

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents