SQL/MX Programming Manual for Java

Program and Module Management
HP NonStop SQL/MX Programming Manual for Java523726-003
6-12
Module Management Naming
Module Management Naming
Use module management naming to externally qualify the file names of modules to
assist you with these development tasks:
Configuring applications to target different sets of database objects
Managing different versions of an application
Grouping the modules of an application
To accomplish these tasks, you need not change the SQLJ source code or rely strictly
on the MODULE directive or on module naming defaults. Instead, you can specify the
catalog and schema and the target, version, and group attributes for the module
names during SQLJ customization. The external naming of the module files during
SQLJ customization influences the targeting, versioning, and grouping properties of an
application.
For more information, see:
How Modules Are Named on page 6-12
Effect of Module Management Naming on page 6-15
Targeting on page 6-15
Versioning on page 6-17
Grouping on page 6-20
How Modules Are Named
The SQLJ customizer generates a three-part module name based on the MODULE
directive that you specify in the SQLJ source file. For more information, see the
MODULE Directive on page 4-12. The three parts of the module name are the catalog,
schema, and module names, separated by periods. For example:
CAT.SCH.MOD
If the SQLJ source file does not contain a MODULE directive, the SQLJ customizer
generates a system-defined module name. The system-defined module name is based
on the catalog, schema, and the system-generated profile name. The system-
generated profile name includes the package name if the SQLJ source file contains a
package statement, the name of the SQLJ source file, and a number that corresponds
to the connection context class. For example:
MYGROUP.MYUSER.PKG_SUBPKG_MYPROG_SJPROFILE0
In addition to the three-part module name determined by the MODULE directive or by
the system, you can pass these optional module management attributes to the SQLJ
customizer:
Catalog
Schema
Target or table set
Version
Group