IBM DB2 Manual page 410

Table of Contents

Advertisement

-encoding=encoding-name
-db2optimize
-ser2class
-status
-version
-C-help
-Ccompiler-option
-JJVM-option
394
Application Programming Guide and Reference for Java
yes
Generate SMAP files. An SMAP file name is SQLJ-source-file-
name.java.smap. The SQLJ translator places the SMAP file in the same
directory as the generated Java source file.
Specifies the encoding of the source file. Examples are JIS or EUC. If this
option is not specified, the default converter for the operating system is used.
Specifies that the SQLJ translator generates code for a connection context class
that is optimized for DB2. -db2optimize optimizes the code for the
user-defined context but not the default context.
When you run the SQLJ translator with the -db2optimize option, if your
applications use JDBC 3.0 or earlier functions, the IBM Data Server Driver for
JDBC and SQLJ file db2jcc.jar must be in the CLASSPATH for compiling the
generated Java application. If your applications use JDBC 4.0 or earlier
functions, the IBM Data Server Driver for JDBC and SQLJ file db2jcc4.jar must
be in the CLASSPATH for compiling the generated Java application.
Specifies that the SQLJ translator converts .ser files to .class files.
Specifies that the SQLJ translator displays status messages as it runs.
Specifies that the SQLJ translator displays the version of the IBM Data Server
Driver for JDBC and SQLJ. The information is in this form:
IBM SQLJ xxxx.xxxx.xx
Specifies that the SQLJ translator displays help information for the Java
compiler.
Specifies a valid Java compiler option that begins with a dash (-). Do not
include spaces between -C and the compiler option. If you need to specify
multiple compiler options, precede each compiler option with -C. For example:
-C-g -C-verbose
All options are passed to the Java compiler and are not used by the SQLJ
translator, except for the following options:
-classpath
Specifies the user class path that is to be used by the SQLJ translator
and the Java compiler. This value overrides the CLASSPATH
environment variable.
-sourcepath
Specifies the source code path that the SQLJ translator and the Java
compiler search for class or interface definitions. The SQLJ translator
searches for .sqlj and .java files only in directories, not in JAR or zip
files.
Specifies an option that is to be passed to the Java virtual machine (JVM) in
which the sqlj command runs. The option must be a valid JVM option that

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents