JADE provides the following extract and load facilities.
Extract options enable you to tailor the saving of your current schema or extract a specific schema view, class, interface, constant, or method. For details about automating the extraction of user-defined schemas, see "Extracting Schemas as a Non-GUI Client Application", later in this chapter. See also "
Load options enable you to load your schema and definition (for example, form, database, and ActiveX definitions) files for a specific schema view, class, interface, constant, or method from an extract file to JADE. In addition, you can load a file that can contain multiple schemas and their associated definition files, individual extracted class or method files, or configuration or definition files extracted from the JADE Report Writer (for example, a report view, formats, or definitions file). For details, see "Multiple Schema File Syntax", later in this chapter.
When you extract a class, its associated methods, properties, and so on, are also extracted.
You can extract and load only your user-defined schemas. You cannot extract or load the RootSchema (the base schema that contains system objects).
If you load multiple schemas and you want to suppress the display of all warning messages resulting from compiling schema files (for example, class number conflict messages), set the
For details about loading locales, see "Loading Locales", in Chapter 11, "Internationalization".
Exception 5012 is raised if you attempt to load a Unicode schema into an ANSI JADE environment.
The Extract command from the Schema menu enables you to save (extract) the current schema to a file.
The Load command from the Schema menu enables you to load (install) a full or partial schema from an extracted file into your current schema or a new schema.
Use the Schema menu Extract and Load commands when you are:
Backing up or restoring a full or partial schema
Passing code to another JADE developer
Fully reconstructing a schema in the same JADE release
Documenting classes or code
The Schema menu Extract and Load commands enable you to extract and load:
Full or partial schemas
Multiple schemas, classes, interfaces, methods, or JADE Report Writer files extracted to one file
Form, database, and ActiveX definitions in subschemas
Changed entities only
The Views, Classes, Interfaces, Methods, Types, Relational, and Components menus provide facilities to save a selected schema, relational view, RPS mapping, .NET exposure, ActiveX type library, method, class, interface, constant, or class and its subclasses, and extract them to a file. Saving a schema or relational view, RPS mapping, .NET exposure, or ActiveX type library, class, interface, method, or constant provides you with a quick means of extracting that schema element; for example, for a backup, to pass the code to another user, or to reconstruct.
Using this facility is a simpler, faster way to extract an individual schema element than performing a selective extract of your schema.
The JADE extract process extracts definitions of any
If you attempt to load an extracted schema containing imported classes, interfaces, and features before the schema containing the export schema is loaded, a schema load error occurs. You must therefore take care when loading a schema containing an imported package that you first load the schema containing the exported package. However, if a package is imported into a schema that is extracted to a multiple extract file and the schema that exports this package is also extracted to that file, the exporting package schema extracted (and therefore loaded) before the importing package schema.
You can avoid problems of this nature if you maintain the export package as a separate schema file from the schema or schemas into which it is to be imported.
A user of the imported schema should first load the schema into which the package is to be imported, and then load the separate schema file for the package into that schema. (For details, see "
For details about extracting a method view that bookmarks a workflow, see "Extracting a Method View", in Chapter 13.
When extracting a schema metadata file and form and data definitions file with the DDX file format, the Global class of the schema is extracted but the data is ignored when the schema is loaded. (For a DDB format file, the Global class is not extracted.)
The global information in the DDX file is ignored for consistency and because it creates a situation where the data cannot be loaded until a reorganization is performed if the Global class is marked for reorganization.
When RPS mappings are extracted during a schema extract, a ddb-file-name.ddbx forms definition file is created. This file contains only the RPS mappings extracted during this schema extract. The RPS mappings are included in both the .ddb and the .ddbx files.
When no reorganization is required after the .scm file load, the .ddb file can be loaded (as normal) before the reorganization is performed. If a reorganization is required after the .scm file load and before the .ddb file load, the .ddbx file can be loaded before the reorganization, to keep the RPS mappings up-to-date with the schema changes. After the reorganization, the .ddb file is loaded as normal, to complete the changes.
If a .ddbx file is created for a schema extract, the following comment line is put into the .scm file after the JADE Command File line (if present) and before the jadeVersionNumber line.
/* JADE RPS MAPPING FILE <ddbx‑file‑name> */
The .ddbx file:
Has the same format as a .ddb file, and it is loaded as a .ddb file.
Is created for patch extracts, if the patch contains changes to an RPS mapping.
Is created unconditionally, if the schema extract contains RPS mappings. There is no option to suppress its creation. If the file exists, it will be overwritten without warning.