|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ws.sca.databinding.impl.DataBindingImplJava
com.ibm.websphere.sca.jms.data.impl.JMSDataBindingImplJava
public class JMSDataBindingImplJava
A JMS Data Binding implementation that serializes data object into JMS Object Message using Java serialization mechanism.
Field Summary | |
---|---|
static java.lang.String |
$sccsid
|
static java.lang.String |
COPYRIGHT
|
Fields inherited from class com.ibm.ws.sca.databinding.impl.DataBindingImplJava |
---|
fieldDataObject |
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 |
Constructor Summary | |
---|---|
JMSDataBindingImplJava()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
For now it suffices to check that the two bindings are of the same type. |
commonj.sdo.DataObject |
getDataObject()
|
int |
getMessageType()
Returns OBJECT_MESSAGE which is the only message type
supported by JMSDataBindingImplJava. |
java.lang.Object |
getObject()
Returns the Object created by this DataBinding implementation (in the read method) to the runtime. |
java.io.Serializable |
getSerializableObject()
Deprecated. getObject() is used instead |
int |
hashCode()
Any instance of JMSDataBindingImplJava equals each other, so a constant value 37
is returned as hashCode |
boolean |
isBusinessException()
Queries the DataBinding to determine whether the received message contains a fault (carried within a BusinessException). |
boolean |
isObjectType()
Used by the runtime to query whether the payload received by the DataBinding is an Object or a DataObject. |
boolean |
isPrimitiveType()
Deprecated. isObjectType() is used instead |
void |
read(javax.jms.Message message)
Read message. |
void |
setBusinessException(boolean isBusinessException)
This method is called by the runtime if the outgoing message contains a BusinessException. |
void |
setObject(java.lang.Object data)
Sets the Object and changes objectType to true. |
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 ). |
void |
setPrimitiveType(boolean isPrimitiveType)
Deprecated. setObjectType(boolean) is used instead |
void |
setSerializableObject(java.io.Serializable data)
Deprecated. setObject(Object) is used instead |
void |
write(javax.jms.Message message)
Write the DataObject into an outgoing JMS Message. |
Methods inherited from class com.ibm.ws.sca.databinding.impl.DataBindingImplJava |
---|
getAsByteArray, setDataObject, setFromByteArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface commonj.connector.runtime.DataBinding |
---|
setDataObject |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String $sccsid
Constructor Detail |
---|
public JMSDataBindingImplJava()
Method Detail |
---|
public boolean isBusinessException()
JMSDataBinding
isBusinessException
in interface JMSDataBinding
public void setBusinessException(boolean isBusinessException)
JMSDataBinding
setBusinessException
in interface JMSDataBinding
isBusinessException
- True or false, specified by the
caller.public commonj.sdo.DataObject getDataObject()
getDataObject
in interface commonj.connector.runtime.DataBinding
getDataObject
in class com.ibm.ws.sca.databinding.impl.DataBindingImplJava
DataBinding.getDataObject()
public void setObject(java.lang.Object data)
setObject
in interface JMSObjectBinding
data
- must implement Serializable
ServiceRuntimeException
- is thrown if data can't be serializedpublic java.lang.Object getObject()
JMSObjectBinding
read
method) to the runtime.
getObject
in interface JMSObjectBinding
public boolean isObjectType()
JMSObjectBinding
getObject
or
getDataObject
as appropriate.
isObjectType
in interface JMSObjectBinding
public void setObjectType(boolean isObject)
JMSObjectBinding
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.
setObjectType
in interface JMSObjectBinding
isObject
- A boolean value indicating whether the
payload is an Object or a DataObject.public boolean isPrimitiveType()
isObjectType()
is used instead
public void setPrimitiveType(boolean isPrimitiveType)
setObjectType(boolean)
is used instead
isPrimitiveType
- public void setSerializableObject(java.io.Serializable data)
setObject(Object)
is used instead
data
- public java.io.Serializable getSerializableObject()
getObject()
is used instead
public int getMessageType()
OBJECT_MESSAGE
which is the only message type
supported by JMSDataBindingImplJava.
getMessageType
in interface JMSDataBinding
JMSDataBinding.getMessageType()
public void read(javax.jms.Message message) throws javax.jms.JMSException
read
in interface JMSDataBinding
message
- The message whose payload is to be parsed.
javax.jms.JMSException
- Thrown if an error occurs
during reading of the message.JMSDataBinding.read(javax.jms.Message)
public void write(javax.jms.Message message) throws javax.jms.JMSException
JMSDataBinding
setDataObject
method is called by the
runtime. The supplied message must be of the same type as
returned by getMessageType
. This method will
be the converse of the read
method, and will
serialize the contents of the DataObject the the wire format
in the JMS message.
write
in interface JMSDataBinding
message
- The message to be populated with the
serialized DataObject.
javax.jms.JMSException
- Thrown if an error occurs
during writing of the message.JMSDataBinding.write(javax.jms.Message)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
37
is returned as hashCode
hashCode
in class java.lang.Object
Object.hashCode()
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |