boolean Iequals(IBusinessObject obj2);
Returns true if the values of all attributes and the verbs are the same; otherwise, returns false.
The Iequals() method compares this business object's attribute values with those in the input business object. If the business objects are hierarchical, the comparison includes all attributes in the child business objects. The verbs and the attribute values must match.
In the comparison, a null value is considered equivalent to any value to which it is compared and does not prevent a return of true.
The following example compares the verbs and attributes of order2 to all attributes of order1:
boolean isEqual = false; IBusinessObject order1 = accessSession.IcreateBusinessObjectwithVerb("salesorder", "create"); IBusinessObject order2 = accessSession.IcreateBusinessObjectwithVerb("salesorder", "create"); isEqual = order1.Iequals(order2); if(isEqual) System.out.println("order1 is the same as order2") else System.out.println("order1 is not the same as order2");