public interface MQBodyObjectBinding extends MQBodyDataBinding
This interface is a further extension of commonj.connector.runtime.DataBinding based on the MQBodyDataBinding interface. It exposes methods to support the transport of java.lang.Objects, as well as DataObjects as supported by the parent class.
DataBinding
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getObject()
Returns the Object created by this DataBinding implementation
(in the
read method) to the runtime. |
boolean |
isObjectType()
Used by the runtime to query whether the payload received by
the DataBinding is an Object or a DataObject.
|
void |
setObject(java.lang.Object inObject)
This method is called by the runtime to prime the
DataBinding, prior to the
write method being
invoked to serialize the Object to an outgoing WMQ message. |
void |
setObjectType(boolean isObject)
Used by the runtime to indicate to the DataBinding that the
input value to be serialized by the
write
method is an Object (set by setObject ) and not a
DataObject (set by setDataObject ). |
getFormat, isBusinessException, read, setBusinessException, setFormat, write
static final java.lang.String COPYRIGHT
void setObject(java.lang.Object inObject) throws commonj.connector.runtime.DataBindingException
write
method being
invoked to serialize the Object to an outgoing WMQ message.inObject
- The Object to be serialized by the
write
method.commonj.connector.runtime.DataBindingException
- Thrown if error occurs during serialization of
the Object.java.lang.Object getObject() throws commonj.connector.runtime.DataBindingException
read
method) to the runtime.commonj.connector.runtime.DataBindingException
- Thrown if error occurs during creation of the
Object.boolean isObjectType()
getObject
or
getDataObject
as appropriate.void setObjectType(boolean isObject)
write
method is an Object (set by setObject
) and not a
DataObject (set by setDataObject
). The
DataBinding will then serialize the Object to the outgoing
WMQ message.isObject
- A boolean value indicating whether the
payload is an Object or a DataObject.