com.ibm.websphere.sca.jms.data

Interface JMSObjectBinding

All Superinterfaces:
commonj.connector.runtime.DataBinding, JMSDataBinding, java.io.Serializable
All known implementing classes:
JMSDataBindingImplJava

  1. public interface JMSObjectBinding
  2. extends JMSDataBinding
A DataBinding represents the mapping between a native data format and an SDO DataObject, and vice-versa.

This interface is a further extension of commonj.connector.runtime.DataBinding based on the JMSDataBinding interface. It exposes methods to support the transport of java.lang.Objects, as well as DataObjects as supported by the parent class.

See Also:
DataBinding

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
$sccsid
  1. static
  2. java.lang.String
COPYRIGHT
Fields inherited from interface com.ibm.websphere.sca.jms.data.JMSDataBinding
ANY_MESSAGE, BASE_MESSAGE, BYTES_MESSAGE, MAP_MESSAGE, OBJECT_MESSAGE, STREAM_MESSAGE, TEXT_MESSAGE

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getObject()
Returns the Object created by this DataBinding implementation (in the read method) to the runtime.
  1. boolean
isObjectType()
Used by the runtime to query whether the payload received by the DataBinding is an Object or a DataObject.
  1. 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 JMS Message.
  1. 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).
Methods inherited from interface com.ibm.websphere.sca.jms.data.JMSDataBinding
getMessageType, isBusinessException, read, setBusinessException, write
Methods inherited from interface commonj.connector.runtime.DataBinding
getDataObject, setDataObject

Field Detail

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

$sccsid

  1. static final java.lang.String $sccsid
See Also:

Method Detail

setObject

  1. void setObject(java.lang.Object inObject)
  2. throws commonj.connector.runtime.DataBindingException
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 JMS Message.
Parameters:
inObject - The Object to be serialized by the write method.
Throws:
commonj.connector.runtime.DataBindingException - Thrown if error occurs during serialization of the Object.

getObject

  1. java.lang.Object getObject()
  2. throws commonj.connector.runtime.DataBindingException
Returns the Object created by this DataBinding implementation (in the read method) to the runtime.
Returns:
The generated Object.
Throws:
commonj.connector.runtime.DataBindingException - Thrown if error occurs during creation of the Object.

isObjectType

  1. boolean isObjectType()
Used by the runtime to query whether the payload received by the DataBinding is an Object or a DataObject. The runtime will then call getObject or getDataObject as appropriate.
Returns:
A boolean specifying either Object or DataObject (false implies DataObject).

setObjectType

  1. 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). The DataBinding will then serialize the Object to the outgoing JMS Message.
Parameters:
isObject - A boolean value indicating whether the payload is an Object or a DataObject.