setBusinessObject()

Inserts a child business object into a business object array at a specified position.

Syntax

public BusinessObjectInterface setBusinessObject(int index,
    BusinessObjectInterface theChildBusObj);

Parameters

index
Is an integer that specifies the position for a child business object in a business object array.
theChildBusObj
Is a child business object.

Return values

The original business object, if one was replaced as a result of the insertion. Otherwise, returns null.

Exceptions

CxObjectInvalidAttrException
Thrown if the type of the passed-in business object attribute is not of the type that the business object array handles.

Notes

If there is already a business object at the specified position, the new one replaces it. The old one is deleted and returned to the caller.

See also

See also the description of the getBusinessObject() method.

Copyright IBM Corporation 1997, 2004. All Rights Reserved.