| 
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
  
oracle.jms.AQjmsMessage
This is an Oracle class which implements javax.jms.Message.
| Field Summary | 
| Fields inherited from interface javax.jms.Message | 
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE | 
| Method Summary | |
void | 
acknowledge()Acknowleges message receipt when using the CLIENT_ACKNOWLEDGE mode. | 
void | 
clearBody()Clears out the message body.  | 
void | 
clearProperties()Clears a message's properties.  | 
int | 
getAttempts()Gets this message's retry count.  | 
boolean | 
getBooleanProperty(java.lang.String name)Returns a property value as a boolean. | 
byte | 
getByteProperty(java.lang.String name)Returns a property value as a byte. | 
double | 
getDoubleProperty(java.lang.String name)Returns a property value as a double. | 
float | 
getFloatProperty(java.lang.String name)Returns a property value as a float. | 
int | 
getIntProperty(java.lang.String name)Returns a property value as an int. | 
java.lang.String | 
getJMSCorrelationID()Gets this message's correlation ID.  | 
byte[] | 
getJMSCorrelationIDAsBytes()Gets this message's correlation ID as an array of bytes.  | 
int | 
getJMSDeliveryMode()Gets this message's delivery mode.  | 
Destination | 
getJMSDestination()Gets this message's destination.  | 
long | 
getJMSExpiration()Gets this message's expiration value.  | 
java.lang.String | 
getJMSMessageID()Gets this message's ID.  | 
byte[] | 
getJMSMessageIDAsBytes()Gets this message's ID as a byte array.  | 
int | 
getJMSPriority()Gets this message's priority.  | 
boolean | 
getJMSRedelivered()Gets an indication of whether this message is being redelivered.  | 
Destination | 
getJMSReplyTo()Gets this message's JMSReplyTo destination. | 
long | 
getJMSTimestamp()Gets this message's timestamp.  | 
java.lang.String | 
getJMSType()Gets this message's type.  | 
long | 
getLongProperty(java.lang.String name)Returns a property value as a long. | 
java.lang.Object | 
getObjectProperty(java.lang.String name)Returns a property value as a Java object.  | 
java.util.Enumeration | 
getPropertyNames()Returns an Enumeration of all the property names. | 
oracle.jms.AQjmsAgent | 
getSenderID()Gets this message's sender ID.  | 
short | 
getShortProperty(java.lang.String name)Returns a property value as a short. | 
java.lang.String | 
getStringProperty(java.lang.String name)Returns a property value as a String. | 
java.util.Enumeration | 
getUserPropertyNames()Returns an Enumeration of all the user property names. | 
boolean | 
propertyExists(java.lang.String name)Checks if a property value exists.  | 
void | 
setBooleanProperty(java.lang.String name, boolean value)Sets a property's value to a boolean. | 
void | 
setByteProperty(java.lang.String name, byte value)Sets a property's value to a byte. | 
void | 
setDoubleProperty(java.lang.String name, double value)Sets a property's value to a double. | 
void | 
setFloatProperty(java.lang.String name, float value)Sets a property's value to a float. | 
void | 
setIntProperty(java.lang.String name, int value)Sets a property's value to an integer. | 
void | 
setJMSCorrelationID(java.lang.String correlationID)Sets this message's correlation ID.  | 
void | 
setJMSCorrelationIDAsBytes(byte[] correlationID)Sets this message's correlation ID as an array of bytes.  | 
void | 
setJMSDeliveryMode(int deliveryMode)Sets this message's delivery mode.  | 
void | 
setJMSDestination(Destination destination)Sets this message's destination.  | 
void | 
setJMSExpiration(long expiration)Sets this message's expiration value.  | 
void | 
setJMSMessageID(java.lang.String id)Sets this message's ID.  | 
void | 
setJMSPriority(int priority)Sets this message's priority.  | 
void | 
setJMSRedelivered(boolean redelivered)Sets the indication of whether this message is being redelivered.  | 
void | 
setJMSReplyTo(Destination replyTo)Sets this message's JMSReplyTo destination. | 
void | 
setJMSTimestamp(long timestamp)Sets this message's timestamp.  | 
void | 
setJMSType(java.lang.String type)Sets this message's type.  | 
void | 
setLongProperty(java.lang.String name, long value)Sets a property's value to a long. | 
void | 
setObjectProperty(java.lang.String name, java.lang.Object value)Sets a property's value to a Java object.  | 
void | 
setSenderID(oracle.jms.AQjmsAgent sender)Sets this message's sender ID.  | 
void | 
setShortProperty(java.lang.String name, short value)Sets a property's value to a short. | 
void | 
setStringProperty(java.lang.String name, java.lang.String value)Sets a property's value to a String. | 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
public java.lang.String getJMSMessageID()
                                 throws JMSException
JMSMessageID header field contains a value that uniquely identifies each message sent by OJMS. When a message is sent, any previous JMSMessageID value is ignored and over-written with a value assigned by OJMS. All JMSMessageID values start with the prefix "ID:".getJMSMessageID in interface MessageJMSException - if the message ID is not retrieved due to some error.Message.setJMSMessageID(String), MessageProducer.setDisableMessageID(boolean)
public byte[] getJMSMessageIDAsBytes()
                              throws JMSException
JMSException - if the message ID is not retrieved due to some error.
public void setJMSMessageID(java.lang.String id)
                     throws JMSException
JMSMessageID header field when the message is sent.setJMSMessageID in interface Messageid - the ID for this messageJMSException - if the message ID is not set due to some error.Message.getJMSMessageID()
public long getJMSTimestamp()
                     throws JMSException
JMSTimestamp header field contains the time a message was handed off to a provider to be sent. When a message is sent, any previous JMSTimestamp value is ignored and over-written with the time the message was enqueued.getJMSTimestamp in interface MessageJMSException - if the timestamp is not retrieved due to some error.Message.setJMSTimestamp(long), MessageProducer.setDisableMessageTimestamp(boolean)
public void setJMSTimestamp(long timestamp)
                     throws JMSException
JMSTimestamp header field when the message is sent.setJMSTimestamp in interface Messagetimestamp - the timestamp for this message (format is a normal Java millis time value)JMSException - if the timestamp is not set due to some error.Message.getJMSTimestamp()
public java.lang.String getJMSCorrelationID()
                                     throws JMSException
getJMSCorrelationID in interface MessageJMSException - if the correlation ID is not retrieved due to some error.Message.setJMSCorrelationID(String), Message.getJMSCorrelationIDAsBytes(), Message.setJMSCorrelationIDAsBytes(byte[])
public byte[] getJMSCorrelationIDAsBytes()
                                  throws JMSException
getJMSCorrelationIDAsBytes in interface MessageJMSException - if the correlation ID is not retrieved due to some error.Message.setJMSCorrelationID(String), Message.getJMSCorrelationID(), Message.setJMSCorrelationIDAsBytes(byte[])
public void setJMSCorrelationID(java.lang.String correlationID)
                         throws JMSException
JMSCorrelationID header field to link one message with another.setJMSCorrelationID in interface MessagecorrelationID - the message ID of a message being referencedJMSException - if the correlation ID is not set due to some error.Message.getJMSCorrelationID(), Message.getJMSCorrelationIDAsBytes(), Message.setJMSCorrelationIDAsBytes(byte[])
public void setJMSCorrelationIDAsBytes(byte[] correlationID)
                                throws JMSException
setJMSCorrelationIDAsBytes in interface MessagecorrelationID - the correlation IDJMSException - if the correlation ID is not set due to some error.Message.setJMSCorrelationID(String), Message.getJMSCorrelationID(), Message.getJMSCorrelationIDAsBytes()
public Destination getJMSReplyTo()
                          throws JMSException
JMSReplyTo destination.getJMSReplyTo in interface MessageAQjmsAgent)JMSException - if the reply-to destination is not retrieved due to some error.Message.setJMSReplyTo(Destination)
public void setJMSReplyTo(Destination replyTo)
                   throws JMSException
JMSReplyTo destination.setJMSReplyTo in interface MessagereplyTo - destination where replies to this message should be sent. Must be an AQjmsAgent object (with consumer name and queue/topic address).JMSException - if the reply-to destination is not set due to some error.Message.getJMSReplyTo()
public Destination getJMSDestination()
                              throws JMSException
JMSDestination header field contains the destination to which the message is being sent. When a message is sent, any previous JMSDestination value is ignored and over-written with the destination specified by the send. When a message is received, its destination value is equivalent to the value assigned when it was sent.getJMSDestination in interface MessageJMSException - if the destination is not retrieved due to some error.Message.setJMSDestination(Destination)
public void setJMSDestination(Destination destination)
                       throws JMSException
JMSDestination header field when the message is sent.setJMSDestination in interface Messagedestination - the destination for this messageJMSException - if the destination is not set due to some error.Message.getJMSDestination()
public int getJMSDeliveryMode()
                       throws JMSException
getJMSDeliveryMode in interface MessageJMSException - if the delivery mode is not retrieved due to some error.Message.setJMSDeliveryMode(int), DeliveryMode
public void setJMSDeliveryMode(int deliveryMode)
                        throws JMSException
JMSDeliveryMode header field when the message is sent.setJMSDeliveryMode in interface MessagedeliveryMode - the delivery mode for this message (DeliveryMode.PERSISTENT or DeliveryMode.NON_PERSISTENT)JMSException - if the delivery mode is not set due to some error.Message.getJMSDeliveryMode(), DeliveryMode
public boolean getJMSRedelivered()
                          throws JMSException
If a client receives a message with the redelivered indicator set, it is likely, but not guaranteed, that this message was delivered to the client earlier but the client did not commit the transaction (or acknowledge the message).
getJMSRedelivered in interface Messagetrue iff this message is (likely) being redeliveredJMSException - if the redelivery flag is not retrieved due to some error.Message.setJMSRedelivered(boolean)
public void setJMSRedelivered(boolean redelivered)
                       throws JMSException
JMSRedelivered header field when the message is delivered.setJMSRedelivered in interface Messageredelivered - an indication of whether this message is being redeliveredJMSException - if the redelivery flag is not set due to some error.Message.getJMSRedelivered()
public java.lang.String getJMSType()
                            throws JMSException
getJMSType in interface MessageJMSException - if the message type is not retrieved due to some error.Message.setJMSType(String)
public void setJMSType(java.lang.String type)
                throws JMSException
setJMSType in interface Messagetype - the type for this messageJMSException - if the message type is not set due to some error.Message.getJMSType()
public long getJMSExpiration()
                      throws JMSException
JMSExpiration header field when the message is sent. If the time-to-live is specified as zero, OJMS sets JMSExpiration to zero (which indicates that the message does not expire). Otherwise OJMS sets JMSExpiration to the sum of the time-to-live value specified by the client and the GMT at the time of the send. When a message's expiration time is reached, the message is moved to the exception queue corresponding to the destination queue/topic.getJMSExpiration in interface MessageJMSException - if the expiration value is not retrieved due to some error.Message.setJMSExpiration(long)
public void setJMSExpiration(long expiration)
                      throws JMSException
JMSExpiration header field when the message is sent.setJMSExpiration in interface Messageexpiration - the expiration value for this message (format is a normal Java millis time value)JMSException - if the expiration value is not set due to some error.Message.getJMSExpiration()
public int getJMSPriority()
                   throws JMSException
getJMSPriority in interface MessageJMSException - if the priority is not retrieved due to some error.Message.setJMSPriority(int)
public void setJMSPriority(int priority)
                    throws JMSException
JMSPriority header field when the message is sent.setJMSPriority in interface Messagepriority - the priority for this messageJMSException - if the priority is not set due to some error.Message.getJMSPriority()
public void clearProperties()
                     throws JMSException
clearProperties in interface MessageJMSException - if the message properties are not cleared due to some error.
public boolean propertyExists(java.lang.String name)
                       throws JMSException
propertyExists in interface Messagename - the name of the property to checktrue iff the property existsJMSException - if the property's existence is not checked due to some error.
public boolean getBooleanProperty(java.lang.String name)
                           throws JMSException
boolean.getBooleanProperty in interface Messagename - the name of the propertybooleanJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public byte getByteProperty(java.lang.String name)
                     throws JMSException
byte.getByteProperty in interface Messagename - the name of the propertybyteJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public short getShortProperty(java.lang.String name)
                       throws JMSException
short.getShortProperty in interface Messagename - the name of the propertyshortJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public int getIntProperty(java.lang.String name)
                   throws JMSException
int.getIntProperty in interface Messagename - the name of the propertyintJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public long getLongProperty(java.lang.String name)
                     throws JMSException
long.getLongProperty in interface Messagename - the name of the propertylongJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public float getFloatProperty(java.lang.String name)
                       throws JMSException
float.getFloatProperty in interface Messagename - the name of the propertyfloatJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public double getDoubleProperty(java.lang.String name)
                         throws JMSException
double.getDoubleProperty in interface Messagename - the name of the propertydoubleJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public java.lang.String getStringProperty(java.lang.String name)
                                   throws JMSException
String.getStringProperty in interface Messagename - the name of the propertyString, or null if there is no such propertyJMSException - if the property is not retrieved due to some error.MessageFormatException - if the conversion is invalid.
public java.lang.Object getObjectProperty(java.lang.String name)
                                   throws JMSException
setObjectProperty method or the format's equivalent primitive settypeProperty method.getObjectProperty in interface Messagename - the name of the propertyint is converted to Integer), or null if there is no such propertyJMSException - if the property is not retrieved due to some error.
public java.util.Enumeration getPropertyNames()
                                       throws JMSException
Enumeration of all the property names.getPropertyNames in interface MessageJMSException - if the enumeration is not retrieved due to some error.
public java.util.Enumeration getUserPropertyNames()
                                           throws JMSException
Enumeration of all the user property names.JMSException - if the enumeration is not retrieved due to some error.
public void setBooleanProperty(java.lang.String name,
                               boolean value)
                        throws JMSException
boolean. If the property does not already exist, it is added to this message.setBooleanProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setByteProperty(java.lang.String name,
                            byte value)
                     throws JMSException
byte. If the property does not already exist, it is added to this message.setByteProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setShortProperty(java.lang.String name,
                             short value)
                      throws JMSException
short. If the property does not already exist, it is added to this message.setShortProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setIntProperty(java.lang.String name,
                           int value)
                    throws JMSException
integer. If the property does not already exist, it is added to this message.setIntProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setLongProperty(java.lang.String name,
                            long value)
                     throws JMSException
long. If the property does not already exist, it is added to this message.setLongProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setFloatProperty(java.lang.String name,
                             float value)
                      throws JMSException
float. If the property does not already exist, it is added to this message.setFloatProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setDoubleProperty(java.lang.String name,
                              double value)
                       throws JMSException
double. If the property does not already exist, it is added to this message.setDoubleProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setStringProperty(java.lang.String name,
                              java.lang.String value)
                       throws JMSException
String. If the property does not already exist, it is added to this message.setStringProperty in interface Messagename - the name of the propertyvalue - the value for the propertyJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageNotWriteableException - if properties are read-only.
public void setObjectProperty(java.lang.String name,
                              java.lang.Object value)
                       throws JMSException
setObjectProperty in interface Messagename - the name of the propertyvalue - the value for the property - must be an objectified primitive (e.g., an Integer) or a StringJMSException - if the property is not set due to some error.java.lang.IllegalArgumentException - if the name is null or is an empty string.MessageFormatException - if value is null or is neither an objectified primitive nor a String.MessageNotWriteableException - if properties are read-only.
public void acknowledge()
                 throws JMSException
CLIENT_ACKNOWLEDGE mode.acknowledge in interface MessageJMSException - if SQL exceptions occur during transaction commit.Session.CLIENT_ACKNOWLEDGE
public void clearBody()
               throws JMSException
clearBody in interface MessageJMSException - if the message body is not cleared due to some error.
public oracle.jms.AQjmsAgent getSenderID()
                                  throws JMSException
AQjmsAgent representing senderJMSException - if the sender ID is not retrieved due to some error.
public void setSenderID(oracle.jms.AQjmsAgent sender)
                 throws JMSException
sender - AQjmsAgent representing senderJMSException - if the SenderID is not set due to some error.
public int getAttempts()
                throws JMSException
JMSXDeliveryCount property)JMSException - if the retry count can not be retrieved due to some error.
  | 
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||