Bookshelf Home | Contents | Index | PDF |
Integration Platform Technologies: Siebel Enterprise Application Integration > EAI UI Data Adapter > EAI UI Data Adapter Methods > InsertLeaves MethodUse InsertLeaves to insert records into the Siebel database. When InsertLeaves is invoked 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 32 lists the method arguments used with the InsertLeaves method. For descriptions of the methods, see EAI UI Data Adapter Method Arguments. Example of Inserting a Root ComponentThis example code snippet demonstrates inserting a non-existing account. Request<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> 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. Request<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> 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, the EAI UI Data Adapter generates an error. Request<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> Response<SiebelMessage MessageId="P-3ITL" MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical"> |
Integration Platform Technologies: Siebel Enterprise Application Integration | Copyright © 2008, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |