Importing Data Objects

Prerequisites

  • Data objects exist in the Data Orchestration Engine (DOE).

  • You have specified the DOE preferences in the Preferences page.

    More information: Configuring the Development Workstation

Context

You use this procedure to import a data object as a model in the Mobile Project. You can then use these model classes for context binding in the project.

Procedure

  1. In the Laptop UI explorer, click the Models node with the secondary mouse button and choose Create Model.
  2. Select Data Object Model and then choose Next .
  3. Enter details as specified in the table below:

    Field name

    Description

    User action and values

    Model Name

    The name of the new data object model

    Use only letters from the Latin alphabet without diacritical marks, digits 0 - 9, and an underscore in a model name.

    Model Package

    The Java package in which the IDE creates the model classes

    Enter the name of the model package. To select an existing package, choose Browse .

    Model Type

    Identification of the data object model as:

    • A business model in which you import data objects

    • An empty model in which you use an existing business model as a used model, and define queries and composites, as required

    To create a business model, select Create Data Model with Data Objects from DOE and then continue with step 4.

  4. Choose Next .

    The next wizard window appears displaying all Software Component Versions (SCVs) in the Mobile Middleware .

  5. In the Software Component section, select the required SCV.

    The IDE displays all data objects in the SCV that you selected.

  6. In the data object section, select the required data objects.
  7. Choose Finish .

Results

The IDE creates the:

  • Data object model and the model classes with their properties, and displays them in the Laptop UI Explorer

  • Simple types used in the data object model under the Dictionaries node of the project.

You can now:

  • Use the model classes in the data object model for context binding in the project

  • Define query and composite classes for the model that you created

  • Use the model that you created as a Used Model in another model