Bookshelf Home | Contents | Index | PDF |
Integration Platform Technologies: Siebel Enterprise Application Integration > EAI UI Data Adapter Business Service > EAI UI Data Adapter Business Service Methods > InsertLeaves MethodUse InsertLeaves to insert records into the Siebel database. When InsertLeaves is called on an integration object hierarchy, the EAI UI Data Adapter inserts leaf nodes only and uses internal nodes for maintaining parent-child relationships:
InsertLeaves returns an integration object hierarchy. Each integration component instance in the hierarchy has two fields: Row Id and Mod Id (implicit status keys used by the EAI UI Data Adapter). You can use these fields to retrieve the Row Id of the newly created record. InsertLeaves Method ArgumentsTable 34 lists the method arguments used with the InsertLeaves method. For descriptions of the methods, see EAI UI Data Adapter Business Service Method Arguments. Example of Inserting a Root ComponentThis example code snippet demonstrates inserting a non-existing account. RequestThe following is an example of a request: <SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> ResponseThe following is an example of a response: <SiebelMessage MessageId="P-3ITI" MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> Example of Inserting a Child ComponentThe code snippets in this example demonstrate inserting a non-existing business address for an existing account. RequestThe following is an example of a request: <SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> ResponseThe following is an example of a response: <SiebelMessage MessageId="P-3ITJ" MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> Example of Inserting an Association Child ComponentThis example demonstrate inserting an existing organization for an existing account. This operation associates the organization with the account. If the organization does not exist, then the EAI UI Data Adapter generates an error. RequestThe following is an example of a request: <SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> ResponseThe following is an example of a response: <SiebelMessage MessageId="P-3ITL" MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> |
Integration Platform Technologies: Siebel Enterprise Application Integration | Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |