setBusObjValue()

Sets the value of an attribute that contains a business object to a specified value, given the attribute's name or its position in the business object's attribute list.

Syntax

public void setBusObjValue(String attrName, CWConnectorBusObj newVal);
public void setBusObjValue(int position, CWConnectorBusObj newVal);
public void setBusObjValue(String attrName, CWConnectorBusObj newVal, 
      int arrayIndex);
public void setBusObjValue(int position, CWConnectorBusObj newVal, 
      int arrayIndex);

Parameters

attrName
Is the name of the attribute whose value you want to set.
arrayIndex
Is the integer that specifies the ordinal position of the business object within the business object array (when the attribute contains a business object array).
position
Is an integer that specifies the ordinal position of the attribute in the business object's attribute list.
newVal
Is the boolean value to assign to the attribute.

Return values

None.

Exceptions

AttributeNotFoundException
Thrown if the position or name specified is not valid for the definition of this business object.
AttributeNullValueException
Thrown if the business object array to hold the business object could not be created (for a multiple cardinality attribute).
WrongAttributeException
Thrown if the value is being set on a non-object attribute.
AttributeValueException
Thrown if the value to be set is not a valid business object.
SpecNameNotFoundException
Thrown if the business object definition for the business object array could not be found. This exception is returned only by the forms of setBusObjValue() that pass in the arrayIndex argument.

Notes

The setBusObjValue() method provides two forms:

See also

getBusObjValue(),, setbooleanValue(),, setdoubleValue(),, setfloatValue(),, setintValue(),, setLongTextValue(),, setStringValue()

Copyright IBM Corporation 1997, 2004. All Rights Reserved.