Integration Platform Technologies: Siebel Enterprise Application Integration > EAI UI Data Adapter Business Service > EAI UI Data Adapter Business Service Methods >

UpdateLeaves Method


Use UpdateLeaves to update existing records in the Siebel database. When UpdateLeaves is called on an integration object hierarchy, the EAI UI Data Adapter updates leaf nodes only and uses internal nodes for maintaining parent-child relationships.

Both internal nodes and leaf nodes must have Row Ids specified or the EAI UI Data Adapter generates an error. The EAI UI Data Adapter also generates an error if it does not find a match for the internal node and leaf node for a given Row Id.

UpdateLeaves Method Arguments

Table 32 lists the method arguments used with UpdateLeaves. For a complete description of the method arguments, see EAI UI Data Adapter Business Service Method Arguments.

Table 32. Method Arguments for UpdateLeaves
Method Argument Name
Type

BusObjCacheSize

Input

LOVLanguageMode

Input

SiebelMessage

Input / Output

Example of Updating Root Component

The following example demonstrates updating a root component.

Request

The following is an example of a request:

<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>1-1-1111</Account>
      <Employees>4900</Employees>
   </ListOfAccount>
</SiebelMessage>

Response

The following is an example of a response:

<SiebelMessage MessageId="P-3ITT" MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <Id>1-1-1111</Id>
         <Mod_Id>2</Mod_Id>
      </Account>
   </ListOfAccount>
</SiebelMessage>

Example of Updating Child Component

This example demonstrates updating a child component.

Request

The following is an example of a request:

<SiebelMessage MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <Id>1-1-1111</Id>
         <Employees>5000</Employees>
         <ListOfBusiness_Address>
            <Business_Address>
               <Id>2-2-2222</Id>
               <Postal_Code>94404</Postal_Code>
            </Business_Address>
         </ListOfBusiness_Address>
      </Account>
   <ListOfAccount>
</SiebelMessage>

Response

The following is an example of a response:

<SiebelMessage MessageId="P-3ITW" MessageType="Integration Object" IntObjectName="Account" IntObjectFormat="Siebel Hierarchical">
   <ListOfAccount>
      <Account>
         <Id>1-1-1111</Id>
         <Mod_Id>2</Mod_Id>
         <ListOfAccount_Business_Address>
            <Business_Address>
               <Id>2-2-2222</Id>
               <Mod_Id>2</Mod_Id>
            </Business_Address>
         </ListOfAccount_Business_Address>
      </Account>
   </ListOfAccount>
</SiebelMessage>

Integration Platform Technologies: Siebel Enterprise Application Integration Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.