isKey()

Find out whether a business object's attribute is defined as a key attribute.

Syntax

boolean isKey(String attribute)
 

Parameters

attribute
The name of an attribute.

Return values

Returns true if the attribute is a key attribute; returns false if it is not a key attribute.

Examples

The following example determines whether the CustID attribute of the customer business object is a key attribute.

boolean keyAttr = (customer.isKey("CustID"));
 

Copyright IBM Corp. 2003, 2004