getAttributeType()

Retrieves the data type of the attribute using either the ordinal position of a given attribute of a business object or the name of the attribute.

Syntax

public int getAttributeType(String name);
 public int getAttributeType(int position);
 

Parameters

name
Is the name of the attribute in the business object definition.
position
Is the ordinal position of the attribute in the business object definition.

Return values

The type of the attribute, represented as an integer. See Table 149 for the possible attribute-type constants.

Exceptions

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

Notes

To retrieve the type of an attribute of the business object, specify either the attribute name or its position in the list of attributes.

Copyright IBM Corp. 1997, 2003