CxObjectContainerInterface interface

The CxObjectContainerInterface interface creates and maintains an array of one or more child business objects. It is part of the CxCommon package. This interface supports business objects with a hierarchical structure. Each object instance created from the CxObjectContainerInterface is a container object into which you can insert business objects of the same type. These inserted objects are instances of a business object definition referenced by a compound attribute of a parent business object. The inserted objects are child business objects in the hierarchy.

Note:
The CWConnectorBusObj class is the Java connector library method that is a wrapper for the methods in the CxObjectContainerInterface interface of the low-level Java connector library. The CWConnectorBusObj class provides access to a business object, business object array, business object definition, and attributes. Most Java-connector development should use the Java connector library. For more information on the classes of the Java connector library, see Overview of the Java connector library.

Table 153 summarizes the methods in the CxObjectContainerInterface interface.

Table 153. Member methods of the CxObjectContainerInterface interface
Member method Description Page
getBusinessObject() Retrieves the child business object that occupies a specified position in a business object array. getBusinessObject()
getObjectCount() Retrieves the number of child business objects in a business object array. getObjectCount()
insertBusinessObject() Inserts a child business object into a business object array at the next available position. insertBusinessObject()
removeAllObjects() Removes all business objects in a business object array. removeAllObjects()
removeBusinessObjectAt() Removes the business object at the specified position in a business object array. removeBusinessObjectAt()
setBusinessObject() Inserts a child business object into a business object array at a specified position. setBusinessObject()

Note:
The deprecated name for an array of child business objects is a "business object container". This term is also used to name the connector library class that provides methods for accessing the child business objects in a business object array. You can think of this class as providing methods for handling an array of business objects.

Copyright IBM Corporation 1997, 2004. All Rights Reserved.