com.ibm.bpe.interop

Class WMQWFHelper

  1. java.lang.Object
  2. extended bycom.ibm.bpe.interop.WMQWFHelper

  1. public class WMQWFHelper
  2. extends java.lang.Object

Field Summary

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

Constructor Summary

Constructor and Description
WMQWFHelper()

Method Summary

Modifier and Type Method and Description
  1. static
  2. java.lang.String
createCorrelationID()
This method creates a WMQWF like unique correlation id for the UPES invocation.
  1. static
  2. commonj.sdo.DataObject
initializeBO(commonj.sdo.DataObject obj,commonj.sdo.Type objType)
This method creates a new BO using the given type just in case the given BO is null.
  1. static
  2. boolean
isSet(commonj.sdo.DataObject obj,java.lang.String path)
This function enhance the DataObject.isSet() methode.
  1. static
  2. commonj.sdo.DataObject
merge(commonj.sdo.DataObject source,java.lang.String sourcePath,commonj.sdo.DataObject target,java.lang.String targetPath,commonj.sdo.Type targetType)
This method merges two BO's as it does WMQWF.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

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

Constructor Detail

WMQWFHelper

  1. public WMQWFHelper()

Method Detail

createCorrelationID

  1. public static java.lang.String createCorrelationID( )
This method creates a WMQWF like unique correlation id for the UPES invocation.
Returns:
returns a base 64 encoded string of a unique ID, this ID is similar to the former WMQWF correlation id passed to the UPES.

initializeBO

  1. public static commonj.sdo.DataObject initializeBO( commonj.sdo.DataObject obj,
  2. commonj.sdo.Type objType)
This method creates a new BO using the given type just in case the given BO is null.
Parameters:
obj - the reference to the BO (can be null)
objType - the data object type of the BO
Returns:
returns the reference to the input BO if it was not null, otherwise creates a new BO and returns the reference to the new BO.

isSet

  1. public static boolean isSet(commonj.sdo.DataObject obj,
  2. java.lang.String path)
This function enhance the DataObject.isSet() methode. It checks array members in addition.
Parameters:
obj - The input business data object.
path - The path to the part (property) of the business data object to be checked.
Returns:
returns true if the property is set or false if it is not set, for array members it checks if the member is not null.

merge

  1. public static commonj.sdo.DataObject merge( commonj.sdo.DataObject source,
  2. java.lang.String sourcePath,
  3. commonj.sdo.DataObject target,
  4. java.lang.String targetPath,
  5. commonj.sdo.Type targetType)
This method merges two BO's as it does WMQWF. The part of the target BO is changed only, if the appropriate part of the source BO is set. Otherwise the appropriate part of the target BO is not changed.
Parameters:
source - the source BO
sourcePath - the path of the source to the part that should be merged
target - the target BO (can be null)
targetPath - the path of the target to the part that should be merged
targetType - the BO type to create the target BO if it is null
Returns:
the reference to the targed BO. If the provided target BO was not null, a reference to the provided target BO is returned. Otherwise a new target BO is created and a reference to the new target BO is returned.