BOEquality

This interface provides the ability to determine if two business graphs or business objects are equivalent.

Purpose

BOEquality supports equality of business graphs or business objects. The default form of equality is deep, but a shallow form can also be used. Therefore, you can determine if two business graphs or business objects are equivalent based on including various levels of descendants.

Example

This example shows how to use BOEquality.

BOEquality equalityService =
(BOEquality) newServiceManager().locateService("com/ibm/websphere/bo/BOEquality");
		
// Deep equality check.	
if (equalityService.isEqual(dataObject1, dataObject2) == true) {
    // ...
}
// Shallow equality check.
if (equalityService.isEqualShallow(dataObject1, dataObject2) == true) {
    // ...
}
Related information
Interface BOEquality APIs

Last updated: Tue 10 Oct 2006 12:56:59

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)