Creating a Complex File Physical Schema

Complex Files 6-5 It is recommended to import the following knowledge modules into your project for getting started: ■ LKM SQL to SQL ■ LKM File to SQL ■ IKM XML Control Append In addition to these knowledge modules, you can also import file knowledge modules specific to the other technologies involved in your product.

6.5 Creating and Reverse-Engineering a Complex File Model

This section contains the following topics: ■ Create a Complex File Model ■ Reverse-engineer a Complex File Model

6.5.1 Create a Complex File Model

A Complex File model groups a set of datastores. Each datastore typically represents an element in the intermediate XML file generated from the native file using the native schema. Create a Complex File model using the standard procedure, as described in Creating a Model of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator.

6.5.2 Reverse-engineer a Complex File Model

The Complex File technology supports standard reverse-engineering, which uses only the abilities of the Complex File driver. Standard Reverse-Engineering To perform a Standard Reverse- Engineering with a Complex File model use the usual procedure, as described in Reverse-engineering a Model of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator. This reverse-engineering uses the same process as the reverse-engineering of XML Files. The native schema nXSD provided in the data server URL is used as the XSD file to describe the XML structure. See Section 5.5.2, Reverse-Engineering an XML Model and XML to SQL Mapping for more information.

6.6 Designing an Interface

You can use a complex file as a source or a target of an integration interface. The KM choice for an interface or a check determines the abilities and performances of this interface or check. The recommendations below help in the selection of the KM for different situations concerning a Complex File data server. Complex File data models are handled in interfaces similarly to XML structures. For example, the Synchronization model is the same for complex files and XML files and the same knowledge modules can be used for both technologies. See Section 5.6, Designing an Interface in Chapter 5, XML Files for more information.