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

UpdateLeaves Method


Use UpdateLeaves to update existing records in the Siebel database. When UpdateLeaves is invoked 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 30 lists the method arguments used with UpdateLeaves. For a complete description of the method arguments, see EAI UI Data Adapter Method Arguments.

Table 30. Method Arguments for UpdateLeaves
Method Argument Name
Input or Output

BusinessObjectCacheSize

Input

SiebelMessage

Input or Output

LOVLanguageMode

Input

Example of Updating Root Component

The following example demonstrates updating a root component.

Request

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

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

<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

<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 © 2008, Oracle and/or its affiliates. All rights reserved. Legal Notices.