Oracle® Streams Advanced Queuing Java API Reference
Release 1 (10.1)

B12023-01

oracle.jms
Class AQjmsObjectMessage

java.lang.Object
  |
  +--oracle.jms.AQjmsMessage
        |
        +--oracle.jms.AQjmsObjectMessage
All Implemented Interfaces:
Message, ObjectMessage

public class AQjmsObjectMessage
extends AQjmsMessage
implements ObjectMessage

Oracle class implementing javax.jms.ObjectMessage


Field Summary

 

Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE

 

Method Summary
 void clearBody()
          Clear out the message body.
 void clearProperties()
          Clear a message's properties.
protected  void closeContainer()
           
protected  oracle.sql.ORAData getMessageCont()
           
 java.io.Serializable getObject()
          Get the serializable object containing this message's data.
protected  void populateMessageContainer(oracle.jdbc.OracleConnection db_conn, boolean usetemplob)
           
 void setObject(java.io.Serializable object)
          Set the serializable object containing this message's data.
protected  void write_lob(java.sql.Connection db_conn, java.lang.String q_table, byte[] msg_id, boolean gen_pload, boolean is_anydata_dest)
           

 

Methods inherited from class oracle.jms.AQjmsMessage
acknowledge, getAttempts, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSMessageIDAsBytes, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getSenderID, getShortProperty, getStringProperty, getUserPropertyNames, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setSenderID, setShortProperty, setStringProperty

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface javax.jms.Message
acknowledge, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty

 

Method Detail

clearProperties

public void clearProperties()
                     throws JMSException
Clear a message's properties.
Specified by:
clearProperties in interface Message
Overrides:
clearProperties in class AQjmsMessage
Throws:
JMSException - if JMS fails to clear JMS message properties due to some internal JMS error.

setObject

public void setObject(java.io.Serializable object)
               throws JMSException
Set the serializable object containing this message's data.
Specified by:
setObject in interface ObjectMessage
Parameters:
object - the message's data
Throws:
JMSException - if JMS fails to set object due to some internal JMS error.
MessageFormatException - if object serialization fails
MessageNotWriteableException - if message in read-only mode.

getObject

public java.io.Serializable getObject()
                               throws JMSException
Get the serializable object containing this message's data. The default value is null.
Specified by:
getObject in interface ObjectMessage
Returns:
the serializable object containing this message's data
Throws:
JMSException - if JMS fails to get object due to some internal JMS error.
MessageFormatException - if object deserialization fails

clearBody

public void clearBody()
               throws JMSException
Clear out the message body. All other parts of the message are left untouched.
Specified by:
clearBody in interface Message
Overrides:
clearBody in class AQjmsMessage
Throws:
JMSException - if JMS fails to due to some internal JMS error.

getMessageCont

protected oracle.sql.ORAData getMessageCont()
Overrides:
getMessageCont in class AQjmsMessage

closeContainer

protected void closeContainer()
Overrides:
closeContainer in class AQjmsMessage

populateMessageContainer

protected void populateMessageContainer(oracle.jdbc.OracleConnection db_conn,
                                        boolean usetemplob)
                                 throws JMSException
Overrides:
populateMessageContainer in class AQjmsMessage
JMSException

write_lob

protected void write_lob(java.sql.Connection db_conn,
                         java.lang.String q_table,
                         byte[] msg_id,
                         boolean gen_pload,
                         boolean is_anydata_dest)
                  throws JMSException
Overrides:
write_lob in class AQjmsMessage
JMSException

Oracle® Streams Advanced Queuing Java API Reference
Release 1 (10.1)

B12023-01

Copyright © 2003, Oracle. All Rights Reserved.