isForeignKeyAttr()

Determines if an attribute is a part of the foreign key of the business object, given the attribute's name or its position in the business object's attribute list.

Syntax

public boolean isForeignKeyAttr(String attrName);
public boolean isForeignKeyAttr(int position);

Parameters

attrName
Is the name of an attribute that is checked for participation in a foreign key.
position
Is an integer that specifies the ordinal position of an attribute in the business object's attribute list.

Return values

Returns true if the attribute is a foreign key, or part of the foreign key, for the business object; otherwise, returns false.

Exceptions

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

See also

hasAllKeys(),, isKeyAttr()

Copyright IBM Corporation 1997, 2004. All Rights Reserved.