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

B12023-01

oracle.jms
Class AQjmsTextMessage

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

public class AQjmsTextMessage
extends AQjmsMessage
implements TextMessage

Oracle class implementing javax.jms.TextMessage


Field Summary

 

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

 

Method Summary
 void clearBody()
          Clears out the message body.
 void clearProperties()
          Clear a message's properties.
protected  void closeContainer()
           
protected  oracle.sql.ORAData getMessageCont()
           
 java.lang.String getText()
          Get the string containing this message's data.
protected  void populateMessageContainer(oracle.jdbc.OracleConnection db_conn, boolean usetemplob)
           
 void setText(java.lang.String string)
          Set the string 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.

setText

public void setText(java.lang.String string)
             throws JMSException
Set the string containing this message's data.
Specified by:
setText in interface TextMessage
Parameters:
string - the String containing the message's data
Throws:
JMSException - if JMS fails to set text due to some internal JMS error.
MessageNotWriteableException - if message in read-only mode.

getText

public java.lang.String getText()
                         throws JMSException
Get the string containing this message's data. The default value is null.
Specified by:
getText in interface TextMessage
Returns:
the String containing the message's data
Throws:
JMSException - if JMS fails to get text due to some internal JMS error.

clearBody

public void clearBody()
               throws JMSException
Description copied from interface: Message
Clears out the message body. Clearing a message's body does not clear its header values or property entries.

If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.

Specified by:
clearBody in interface Message
Overrides:
clearBody in class AQjmsMessage
Throws:
JMSException - if the JMS provider fails to clear the message body due to some internal 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,
                                        java.sql.SQLException
Overrides:
populateMessageContainer in class AQjmsMessage
JMSException
java.sql.SQLException

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.