removeBusinessObjectAt()

Removes a child business object at a specified position in a business object array.

Syntax

public void removeBusinessObjectAt(String attrName, int index);
public void removeBusinessObjectAt(int position, int index);

Parameters

attrName
Is the name of an attribute whose business objects are removed from its business object array.
index
Is an integer that specifies the position for a child business object in a business object array.
position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

None.

Exceptions

AttributeNotFoundException
Thrown if the position or name specified is not valid for the definition of this business object.

Notes

After the remove operation, the business object array is compacted. Indexes are decremented for all business objects that have an index number higher than that of the removed business object.

Copyright IBM Corporation 1997, 2004. All Rights Reserved.