Configuring Sun Master Indexes

Adding and Deleting Master Index EUID Generator Parameters

You cannot add or delete parameters for the default EUID Generator class, but if you create a custom EUID generator class, you can create additional parameters for the new class and delete the existing parameters if they are not used.

ProcedureTo Add EUID Generator Parameters

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

  2. Scroll to the EuidGeneratorConfig element.

  3. Create a new parameter element inside the parameters element, but outside any existing parameter elements. Add the following elements:

    • parameter-name – The name of the parameter.

    • parameter-type – The type of parameter. Valid values are java.lang.Long, java.lang.Short, java.lang.Byte, java.lang.String, java.lang.Integer, java.lang.Boolean, java.lang.Double, or java.lang.Float.

    • parameter-value – The value of the parameter.

      For example:


      <parameters>
          <parameter>
            <parameter-name>IdLength</parameter-name>
            <parameter-type>java.lang.Integer</parameter-type>
            <parameter-value>10</parameter-value>
          </parameter>
          <parameter>
            <parameter-name>IncrementBy</parameter-name>
            <parameter-type>java.lang.Integer</parameter-type>
            <parameter-value>5</parameter-value>
         </parameter>
      </parameters>
  4. Save and close the file.

ProcedureTo Delete EUID Generator Parameters

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

  2. Scroll to the EuidGeneratorConfig element.

  3. To delete one parameter, do the following:

    1. Scroll to the parameter element you want to delete.

    2. Remove all text between and including the parameter element.

      For example, to remove the StartNumber parameter in the sample below, delete all boldface text.


      <parameters>
          <parameter>
             <parameter-name>IdLength</parameter-name>
             <parameter-type>java.lang.Integer</parameter-type>
             <parameter-value>10</parameter-value>
          </parameter>
          <parameter>
             <parameter-name>StartNumber</parameter-name>
             <parameter-type>java.lang.Integer</parameter-type>
             <parameter-value>1000000001</parameter-value>
          </parameter>
      </parameters>
  4. To remove all parameters, remove all text between and including the parameters element.

  5. Save and close the file.