SQLJ reserved names
This section lists names reserved by the SQLJ translator. Do not use these names in your Embedded SQLJ programming.
Parameter, field, and variable names
The string _sJT is a reserved prefix for
generated variable names. Do not use this prefix for the names of:
- Variables declared within blocks that include SQL statements
- Parameters to methods that contain SQL statements
- Fields in classes that contain SQL statements or whose subclasses contain SQL statements
Class names and filenames
Do not declare classes that conflict with the names of internal classes. Do not create files that conflict with generated internal resource files.
The SQLJ translator creates internal classes and resource files
for use by generated code. The names of these files and classes have
a prefix composed of the name of the original input file followed
by the string _SJ. For example, if you translate
a file called File1.sqlj that uses the package COM.foo, the names of some of the internal classes
produced are:
- COM.foo.File1_SJInternalClass
- COM.foo.File1_SJProfileKeys
- COM.foo.File1_SJInternalClass$Inner
- COM.foo.File1_SJProfile0
- COM.foo.File1_SJProfile1
Generated files for these internal classes, which are created in
the same directory as the input file, File1.sqlj,
are called:
- File1_SJInternalClass.java (includes the class COM.foo.File1_SJInternalClass$Inner)
- File1_SJProfileKeys.java
- File1_SJProfile0.ser
- File1_SJProfile1.ser
Files with the .ser extension are internal resource files that contain information about SQL operations in an .sqlj file.