boolean IequalsKeys(IBusinessObject obj2);
Returns true if the values of all key attributes are the same; otherwise, returns false.
The IequalsKeys() method performs a shallow comparison; that is, it does not compare the keys in child business objects.
The following example compares key attributes of order2 with key attributes of order1, excluding the attributes of child business objects, if any.
boolean keyEqual = false; IBusinessObject order1 = accessSession.IcreateBusinessObjectwithVerb("salesorder", "retrieve"); IBusinessObject order2 = accessSession.IcreateBusinessObjectwithVerb("salesorder", "retrieve"); keyEqual = order1.IequalsKeys(order2); if(keyEqual) System.out.println("order1 is the same as order2") else System.out.println("order1 is not the same as order2");