Product Information > JADE Development Environment User’s Guide > Chapter 10 - Extracting and Loading Schemas > Specifying Your Load Options

Specifying Your Load Options

The Load Options dialog enables you to specify the type of file that you are loading and the location and name of the file.

The File Selection and the Load Order sheets enable you to select the schema, file, schemas, or files to be loaded, and when loading multiple files, the order in which the files are loaded. For details, see the following subsections.

If you are unsure of a file name or location, click the Browse button. The common File dialog that is then displayed lists all schema, class, method, forms definition files, and so on, in the directory for which the dialog is opened, to enable you to select the appropriate file.

If you want to clear the schema load restart information before loading the schema, check the Clear Restart check box. When loading a large schema file, schema changes and recovery information are written at regular intervals to the JADE database.

If the schema load fails, a subsequent load of the schema automatically restarts the loading of the schema file from the last recovery point. If problems occur when restarting the schema load (for example, the original schema file may no longer be available), the schema may be left in an inconsistent state. You should delete the schema whose load failed and reload it using a schema file containing a complete definition of the schema.

You can use the Clear Restart check box to clear the restart information so that the new complete definition schema file is loaded over the top of the file that terminated before completion. By default, restart information is not cleared before the schema is loaded; that is, this check box is unchecked.

When you have specified your load options, click the OK button to confirm your selections. (Alternatively, click the Cancel button to abandon your selections.)

The load process is then initiated. If the schema file contains methods that are in error when loading a single schema, the file is loaded without interruption.

On completion of the file load, a message box:

Any errors outside method implementation (for example, an invalid class or property definition) result in a halt of the schema load process. The editor window then displays the extract file with the error highlighted. The error description is displayed in the status line. Amend the error, and then click the OK button to restart the load process. Alternatively, you click the Cancel button to abort the load.

A compile error is raised during the load process if the file contains more than one Application or Global subclass. If the extract file does not define Application or Global subclasses, the Add Schema dialog is displayed, to enable you to define an application and global class. If you do not specify these classes, the load is cancelled. (For more details, see "Defining a Schema", in Chapter 3.) When the load process is complete, you are now ready to use your newly loaded schema, application forms, class, interface, method, or primitive type method.

To cancel the load process