setintValue()

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

Syntax

public void setintValue(String attrName, int newVal);
 public void setintValue(int position, int newVal);
 

Parameters

attrName
Is the name of the attribute whose value you want to set.
position
Is an integer that specifies the ordinal position of the attribute in the business object's attribute list.
newVal
Is the int 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.
AttributeValueException
Thrown if the value passed in is not a valid value for the particular attribute.
WrongAttributeException
Thrown if the value is being set on a non-integer attribute

See also

getDefaultint(),, getintValue(),, setbooleanValue(),, setBusObjValue(),, setdoubleValue(),, setfloatValue(),, setLongTextValue(),, setStringValue()

Copyright IBM Corp. 1997, 2003