com.ibm.bpe.interop
Class WMQWFHelper
java.lang.Object
com.ibm.bpe.interop.WMQWFHelper
public class WMQWFHelper
- extends java.lang.Object
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
static java.lang.String |
createCorrelationID()
This method creates a WMQWF like unique correlation id for the UPES
invocation. |
static 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. |
static boolean |
isSet(commonj.sdo.DataObject obj,
java.lang.String path)
This function enhance the DataObject.isSet() methode. |
static 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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
WMQWFHelper
public WMQWFHelper()
createCorrelationID
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
public static 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.
- 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
public static boolean isSet(commonj.sdo.DataObject obj,
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
public static 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. 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 BOsourcePath
- the path of the source to the part that should be mergedtarget
- the target BO (can be null)targetPath
- the path of the target to the part that should be mergedtargetType
- 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.