Configuring Sun Master Indexes (Repository)

Adding an Object to the Master Index Object Structure (Repository)

You can add new objects to the object structure as needed. Note that the object structure can contain only one parent object but multiple child objects. If you use the Configuration Editor, you can either create an undefined object or create an object from a predefined template. A predefined object includes a set of predefined fields with default configurations.


Note –

Due to database naming constraints, the length of the name of the parent object plus the length of any child object names must be 21 characters or less.


ProcedureTo Add an Undefined Object (Configuration Editor)

  1. In the Projects window, right-click the master index application you want to modify, and then click Open.

  2. If the Configuration Editor dialog box appears, click Edit to check out the listed files.

    The Configuration Editor appears.

  3. Select the parent object, and then click Add Sub Object Node on the Configuration Editor toolbar.

    The object structure expands, and a new child object appears at the bottom of the object structure.

  4. Type a new name for the object, and then press Enter.

  5. Define the fields for the new object, as described in Adding a Field to the Master Index Object Structure (Repository).

  6. On the Configuration Editor toolbar, click Save.

ProcedureTo Add a Predefined Object (Configuration Editor)

  1. In the Projects window, right-click the master index application you want to modify, and then click Open.

  2. If the Configuration Editor dialog box appears, click Edit to check out the listed files.

    The Configuration Editor appears.

  3. Select the parent object, click Templates in the toolbar, and then select the template you want to use.

    The new child object and any defined fields appear in the object tree.

  4. To change the name of the new object, double-click the object name, type the new name, and then press Enter.

  5. Do any of the following:

  6. On the Configuration Editor toolbar, click Save.

ProcedureTo Add an Undefined Object (XML editor)

  1. In the Projects window, expand the Configuration node in the project you want to modify, and then double-click the Object Definition file.

    The file opens in the NetBeans XML editor.

  2. Scroll to the location where you want to create the new object (after the database element but before relationships).

  3. Create a nodes element.

  4. Create and name a tag element within the new nodes element (the value of the tag element is the name of the object you are defining).

    Make sure the new nodes element does not fall within any existing nodes elements. For example:


    <nodes>
       <tag>Person</tag>
       ...
    </nodes>
    <nodes>
       <tag>Address</tag>
    </nodes>
    
  5. Define the fields for the new object, as described in Adding a Field to the Master Index Object Structure (Repository).

  6. Define the relationship of the new object to the existing objects, as described in Defining Relationships Between Master Index Objects (Repository).

  7. Save and close the file.