How to Create Domain Value Maps

Create and configure domain value maps using the Create Domain Value Map(DVM) File dialog in Oracle JDeveloper. This dialog lets you define two domains, each with one value. Upon completion, the Domain Value Map Editor appears so you can define additional domains and corresponding values.

To create a domain value map:

  1. In the Applications window, right-click the project in which you want to create a domain value map and select New.

    The New Gallery dialog appears.

  2. Expand the SOA Tier node, and then select the Transformations category.
  3. In the Items list, select Domain Value Map(DVM) and click OK.

    The Create Domain Value Map(DVM) File dialog appears.

  4. In the File Name field, enter a unique and descriptive name for the domain value map file. The file name must have an extension of .dvm.
  5. In the Description field, enter a description for the domain value map. This field is optional.
  6. In the Domain Name field, enter a name for each domain. These names are the column names for the domain value map, and each represents a fields in a different domain.

    Note:

    Domain names must be of the type NCName (non-colonized name), which is a valid XML element name with no colons. Each domain name must be unique in a domain value map. You can add more domains later.

  7. In the Domain Value field, enter a value corresponding to each domain. For example, enter BO for a CityCode domain and Boston for a CityName domain, as shown in Figure 45-2.

    Figure 45-2 Populated Create Domain Value Map File Dialog

    Description of Figure 45-2 follows
    Description of "Figure 45-2 Populated Create Domain Value Map File Dialog"
  8. Click OK.

    The Domain Value Map Editor appears with the new domain value map displayed.