getObjectCount()

Retrieves the number of child business objects in an attribute that is a business object array.

Syntax

public int getObjectCount(String attrName);
 public int getObjectCount(int position);
 

Parameters

attrName
Is the name of an attribute whose number of child objects is determined.

position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

An integer that indicates the number of child business objects in a business object array.

Exceptions

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

See also

getBusObjValue()

Copyright IBM Corp. 1997, 2003