Product Information > JADE Development Environment User’s Guide > Chapter 3 - Defining Classes in Your Own Schema > Defining Membership of a Collection Class

Defining Membership of a Collection Class

The Class sheet of the Define Class dialog is displayed after you have specified your class options for a collection subclass and you then select the Membership sheet of the dialog.

To specify the membership of your collection subclass

  1. In the list of classes or primitive types in the Membership combo box, select the class or primitive type that is to be contained in the new collection class.

    All classes and primitive types in the current schema are listed in alphabetical order, to enable you to select the required class or primitive type.

  2. If you select the String, Binary, or Decimal primitive type for class membership, specify the length of the string, binary, or decimal members in the Length text box, if required.

    The default value is 12 for a Decimal primitive type, with a maximum length of 23. For a String or Binary primitive type, the default value is 30, with a maximum length of 15999.

    When decreasing the length of String or Binary keys in dictionaries, all key values must be less than or equal to the new key length. Instances of String or Binary keys that are longer than a decreased key length are not truncated during the reorganization process, but cause the reorganization to fail and an exception to be raised.

  3. If you select the Decimal primitive type for membership of an array class, specify the number of decimal places for the length of the decimal members in the Scale Factor text box, if required. The default value is zero (0).

    The scale factor is included in the length of a Decimal primitive type.

  4. Click the OK button. Alternatively, click the Cancel button to abandon your selections or the Next button to define another class.

If you added a subclass to a dictionary class, you must then select the Keys sheet. Alternatively, you can select the Lifetime sheet if you want to restrict the lifetime of instances of the class and its subclasses, the Tuning sheet if you want to tune a Collection subclass, or the Volatility sheet if you want to change the volatility of instances of the class.

If you are not adding a subclass to a dictionary class, the specified class is then displayed as a subclass of the selected superclass in the Class Browser window.