equalKeys()

Compare this business object's key attribute values with those in the input business object.

Syntax

boolean equalKeys(BusObjinputBusObj)
 

Parameters

inputBusObj
A business object to compare with this business object.

Return values

Returns true if the values of all key attributes are the same; returns false if they are not the same.

Exceptions

CollaborationException--The equalKeys() method can set the following exception type for this exception:

See also

equals(), equalsShallow()

Notes

This method performs a shallow comparison; that is, it does not compare the keys in child business objects.

Examples

The following example compares the key values of order2 to those in order1.

boolean areEqual = order1.equalKeys(order2);
 

Copyright IBM Corp. 2003, 2004