Show TOC

Creating Data StructuresLocate this document in the navigation structure

Use

Data structures are composites of one or more node attributes from one or more data objects. A data structure can also comprise of one or more custom attributes. Data structures are typically used as return values of service operations, for example as join structures of a query. Since the signature of service operations is modeled and the modeling tools can only be aware of model entities, any structure that is neither a data object node nor a Java simple type, such as a string, Boolean, and so forth, needs to be explicitly modeled.

Prerequisites

You have created at least one data object, unless the data structure contains only Java simple types.

More information: Creating Data Objects

Procedure
  1. In the Service Explorer , open the Data Structures context menu and choose Create Data Structure .

  2. In the Create Data Structure dialog box, enter a data structure name.

  3. In the Object Editor, choose the Attribute tab page to add a data-structure attribute.

    • Click Add DO Attribute to add the required attributes of the data objects.

    • Click Create Attribute to create custom attributes. Enter the Name of the attribute and select the required data type.

Note

You can use Data Structures instead of Data Object Nodes as query result. You can model a data structure with required attributes of a Data Object Node and use the same in a query result. This reduces the volume of data retrieved from the database.

Result

The data object structure has been created and appears under the Data Structures node in the Service Explorer .