insertAttribute()

Inserts the specified attribute in the business object definition's attribute list.

Syntax

public void insertAttribute(BusObjAttr attrObj);
 public void insertAttribute(BusObjAttr attrObj, int pos);
 

Parameters

attrObj
Is the attribute object be added to the attribute list of the business object definition.
pos
Is the ordinal position at which the attribute is to be added to the attribute list.

Return values

None.

Exceptions

BusObjInvalidAttrException
Thrown if the attribute that an attribute object describes is invalid.

Notes

The insertAttribute() method provides the following forms:

Important:
If you specify an ordinal position, make sure that the specified position is above the ObjectEventId attribute.

See also

removeAttribute()

Copyright IBM Corp. 1997, 2003