com.ibm.websphere.bo

Interface BOEquality


  1. public interface BOEquality
The BOEquality interface represents the client programming model interface for the BOEquality service. The BOEquality service can be used to determine if two Business Objects contain equivalent contents.


Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Method Summary

Modifier and Type Method and Description
  1. boolean
isEqual(commonj.sdo.DataObject businessObject1,commonj.sdo.DataObject businessObject2)
Performs a deep comparison of the contents of the two Business Objects.
  1. boolean
isEqualShallow(commonj.sdo.DataObject businessObject1,commonj.sdo.DataObject businessObject2)
Performs a shallow comparison of the contents of the two Business Objects.

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

isEqual

  1. boolean isEqual(commonj.sdo.DataObject businessObject1,
  2. commonj.sdo.DataObject businessObject2)
Performs a deep comparison of the contents of the two Business Objects.

BOEquality boEquality = (BOEquality) new ServiceManager().locateService("com/ibm/websphere/bo/BOEquality");
boolean isEqual = boEquality.isEqual(customer1, customer2);

Parameters:
businessObject1 - First Business Object to compare for equality
businessObject2 - Second Business Object to compare for equality
Returns:
true if the two Business Object are equivalent and false if they are not

isEqualShallow

  1. boolean isEqualShallow(commonj.sdo.DataObject businessObject1,
  2. commonj.sdo.DataObject businessObject2)
Performs a shallow comparison of the contents of the two Business Objects.

BOEquality boEquality = (BOEquality) new ServiceManager().locateService("com/ibm/websphere/bo/BOEquality");
boolean isEqualShallow = boEquality.isEqualShallow(customer1, customer2);

Parameters:
businessObject1 - First Business Object to compare for equality
businessObject2 - Second Business Object to compare for equality
Returns:
true if the two Business Object are equivalent and false if they are not