IcreateBusinessObjectArray()

Creates the business object array that contains one or more elements, each element having a specified business object as its type.

Syntax

IBusinessObjectArray IcreateBusinessObjectArray(string busObjName);

Parameters

busObjName
The name of the business object definition to use when creating the business objects in the business object array.

Return Values

An IBusinessObjectArray object to hold the new business object array.

Exceptions

ICxAccessError
Thrown when the specified business object definition is not present in the IBM WebSphere Business Integration Server Express repository.

Notes

The Server Access Methods creates a business object array and sends it back to the access client. The IcreateBusinessObjectArray() method returns an IBusinessObjectArray object. Other methods in the IBusinessObjectArray interface allow you to manipulate the business object array.

Example

The following example creates a business object array:

// Declare the array
IBusinessObjectArray exampleObjArray = null;
// Create the business object array that holds "CustomerAcct" 
// business objects
exampleObjArray = 
     accessSession.IcreateBusinessObjectArray("CustomerAcct");

Copyright IBM Corp. 2004, 2005