|
Oracle® Streams Advanced Queuing Java API Reference 11g Release 2 (11.2) E10768-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.jms.AQjmsMessage
oracle.jms.AQjmsAdtMessage
public class AQjmsAdtMessage
Oracle class implementing oracle.jms.AdtMessage Allows use of the JMS api for messages stored in AQ queues containing Oracle ADT payloads.
| 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. |
java.lang.Object |
getAdtPayload()Get the CustomDatum/ORAData object containing this Adt message's data Important: CustomDatum support will be deprecated in a future release. |
boolean |
getBooleanProperty(java.lang.String name)Return the boolean property value with the given name. |
byte |
getByteProperty(java.lang.String name)Return the byte property value with the given name. |
double |
getDoubleProperty(java.lang.String name)Return the double property value with the given name. |
float |
getFloatProperty(java.lang.String name)Return the float property value with the given name. |
int |
getIntProperty(java.lang.String name)Return the int property value with the given name. |
java.lang.String |
getJMSMessageID()Get the message ID. |
Destination |
getJMSReplyTo()Get where a reply to this message should be sent. |
long |
getJMSTimestamp()Get the message timestamp. |
java.lang.String |
getJMSType()Get the message type. |
long |
getLongProperty(java.lang.String name)Return the long property value with the given name. |
java.lang.Object |
getObjectProperty(java.lang.String name)Return the Java object property value with the given name. |
java.util.Enumeration |
getPropertyNames()Return an Enumeration of all the property names. |
short |
getShortProperty(java.lang.String name)Return the short property value with the given name. |
java.lang.String |
getStringProperty(java.lang.String name)Return the String property value with the given name. |
boolean |
propertyExists(java.lang.String name)Check if a property value exists. |
void |
setAdtPayload(oracle.sql.CustomDatum payload)set the CustomDatum object containing this Adt message's data Important: CustomDatum support (and hence this method) will be deprecated in a future release. |
void |
setAdtPayload(oracle.sql.ORAData payload)set the ORAData object containing this Adt message's data |
void |
setBooleanProperty(java.lang.String name, boolean value)Set a boolean property value with the given name into the Message. |
void |
setByteProperty(java.lang.String name, byte value)Set a byte property value with the given name into the Message. |
void |
setDoubleProperty(java.lang.String name, double value)Set a double property value with the given name into the Message. |
void |
setFloatProperty(java.lang.String name, float value)Set a float property value with the given name into the Message. |
void |
setIntProperty(java.lang.String name, int value)Set an int property value with the given name into the Message. |
void |
setJMSReplyTo(Destination replyTo)Set where a reply to this message should be sent. |
void |
setJMSTimestamp(long timestamp)Set the message timestamp. |
void |
setJMSType(java.lang.String type)Set the message type. |
void |
setLongProperty(java.lang.String name, long value)Set a long property value with the given name into the Message. |
void |
setObjectProperty(java.lang.String name, java.lang.Object value)Set a Java object property value with the given name, into the Message. |
void |
setShortProperty(java.lang.String name, short value)Set a short property value with the given name into the Message. |
void |
setStringProperty(java.lang.String name, java.lang.String value)Set a String property value with the given name into the Message. |
| 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, clearProperties, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSPriority, getJMSRedelivered, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered |
| Method Detail |
|---|
public java.lang.String getJMSMessageID()
throws JMSException
getJMSMessageID in interface MessagegetJMSMessageID in class AQjmsMessageJMSException - if JMS fails to get the message Id due to internal JMS error.Message.setJMSMessageID(String), MessageProducer.setDisableMessageID(boolean)
public Destination getJMSReplyTo()
throws JMSException
getJMSReplyTo in interface MessagegetJMSReplyTo in class AQjmsMessageAQjmsAgent)JMSException - NOT_SUPPORTED for AdtMessageMessage.setJMSReplyTo(Destination)
public void setJMSReplyTo(Destination replyTo)
throws JMSException
setJMSReplyTo in interface MessagesetJMSReplyTo in class AQjmsMessagereplyTo - destination where replies to this message should be sent. Must be an AQjmsAgent object (with consumer name and queue/topic address).JMSException - NOT_SUPPORTED for AdtMessageMessage.getJMSReplyTo()
public java.lang.String getJMSType()
throws JMSException
getJMSType in interface MessagegetJMSType in class AQjmsMessageJMSException - NOT_SUPPORTED for AdtMessageMessage.setJMSType(String)
public void setJMSType(java.lang.String type)
throws JMSException
setJMSType in interface MessagesetJMSType in class AQjmsMessagetype - of the messageJMSException - NOT_SUPPORTED for AdtMessageMessage.getJMSType()
public long getJMSTimestamp()
throws JMSException
getJMSTimestamp in interface MessagegetJMSTimestamp in class AQjmsMessageJMSException - if JMS fails to get the TimestampMessage.setJMSTimestamp(long), MessageProducer.setDisableMessageTimestamp(boolean)
public void setJMSTimestamp(long timestamp)
throws JMSException
setJMSTimestamp in interface MessagesetJMSTimestamp in class AQjmsMessagetimestamp - the timestamp for this messageJMSException - if JMS fails to set the timestamp due to some internal JMS error.Message.getJMSTimestamp()
public boolean propertyExists(java.lang.String name)
throws JMSException
propertyExists in interface MessagepropertyExists in class AQjmsMessagename - the name of the property to testtrue if the property does exist.JMSException - if JMS fails to check if property exists due to some internal JMS error.
public boolean getBooleanProperty(java.lang.String name)
throws JMSException
boolean property value with the given name.getBooleanProperty in interface MessagegetBooleanProperty in class AQjmsMessagename - the name of the boolean propertyboolean property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public byte getByteProperty(java.lang.String name)
throws JMSException
byte property value with the given name.getByteProperty in interface MessagegetByteProperty in class AQjmsMessagename - the name of the byte propertybyte property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public short getShortProperty(java.lang.String name)
throws JMSException
short property value with the given name.getShortProperty in interface MessagegetShortProperty in class AQjmsMessagename - the name of the short propertyshort property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public int getIntProperty(java.lang.String name)
throws JMSException
int property value with the given name.getIntProperty in interface MessagegetIntProperty in class AQjmsMessagename - the name of the int propertyint property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public long getLongProperty(java.lang.String name)
throws JMSException
long property value with the given name.getLongProperty in interface MessagegetLongProperty in class AQjmsMessagename - the name of the long propertylong property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public float getFloatProperty(java.lang.String name)
throws JMSException
float property value with the given name.getFloatProperty in interface MessagegetFloatProperty in class AQjmsMessagename - the name of the float propertyfloat property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public double getDoubleProperty(java.lang.String name)
throws JMSException
double property value with the given name.getDoubleProperty in interface MessagegetDoubleProperty in class AQjmsMessagename - the name of the double propertydouble property value with the given name.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public java.lang.String getStringProperty(java.lang.String name)
throws JMSException
String property value with the given name.getStringProperty in interface MessagegetStringProperty in class AQjmsMessagename - the name of the String propertyString property value with the given name. If there is no property by this name, a null value is returned.JMSException - if JMS fails to get the property due to some internal JMS error.MessageFormatException - if this type conversion is invalid.
public java.lang.Object getObjectProperty(java.lang.String name)
throws JMSException
Note that this method can be used to return in objectified format, an object that had been stored as a property in the Message with the equivalent setObject method call, or it's equivalent primitive set<type> method.
getObjectProperty in interface MessagegetObjectProperty in class AQjmsMessagename - the name of the Java object propertyint, then a Integer is returned). If there is no property by this name, a null value is returned.JMSException - if JMS fails to get the property due to some internal JMS error.
public java.util.Enumeration getPropertyNames()
throws JMSException
getPropertyNames in interface MessagegetPropertyNames in class AQjmsMessageJMSException - if JMS fails to get the property names due to some internal JMS error.
public void setBooleanProperty(java.lang.String name,
boolean value)
throws JMSException
boolean property value with the given name into the Message.setBooleanProperty in interface MessagesetBooleanProperty in class AQjmsMessagename - the name of the boolean propertyvalue - the boolean property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setByteProperty(java.lang.String name,
byte value)
throws JMSException
byte property value with the given name into the Message.setByteProperty in interface MessagesetByteProperty in class AQjmsMessagename - the name of the byte propertyvalue - the byte property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setShortProperty(java.lang.String name,
short value)
throws JMSException
short property value with the given name into the Message.setShortProperty in interface MessagesetShortProperty in class AQjmsMessagename - the name of the short propertyvalue - the short property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setIntProperty(java.lang.String name,
int value)
throws JMSException
int property value with the given name into the Message.setIntProperty in interface MessagesetIntProperty in class AQjmsMessagename - the name of the int propertyvalue - the int property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setLongProperty(java.lang.String name,
long value)
throws JMSException
long property value with the given name into the Message.setLongProperty in interface MessagesetLongProperty in class AQjmsMessagename - the name of the long propertyvalue - the long property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setFloatProperty(java.lang.String name,
float value)
throws JMSException
float property value with the given name into the Message.setFloatProperty in interface MessagesetFloatProperty in class AQjmsMessagename - the name of the float propertyvalue - the float property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setDoubleProperty(java.lang.String name,
double value)
throws JMSException
double property value with the given name into the Message.setDoubleProperty in interface MessagesetDoubleProperty in class AQjmsMessagename - the name of the double propertyvalue - the double property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setStringProperty(java.lang.String name,
java.lang.String value)
throws JMSException
String property value with the given name into the Message.setStringProperty in interface MessagesetStringProperty in class AQjmsMessagename - the name of the String propertyvalue - the String property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageNotWriteableException - if properties are read-only
public void setObjectProperty(java.lang.String name,
java.lang.Object value)
throws JMSException
Note that this method only works for the objectified primitive object types (Integer, Double, Long ...) and String's.
setObjectProperty in interface MessagesetObjectProperty in class AQjmsMessagename - the name of the Java object property.value - the Java object property value to set in the Message.JMSException - if JMS fails to set the property due to some internal JMS error.MessageFormatException - if object is invalidMessageNotWriteableException - if properties are read-only
public void clearBody()
throws JMSException
clearBody in interface MessageclearBody in class AQjmsMessageJMSException - if JMS fails to due to some internal JMS error.
public void setAdtPayload(oracle.sql.CustomDatum payload)
throws JMSException
AdtMessageCustomDatum object containing this Adt message's data
Important: CustomDatum support (and hence this method) will be deprecated in a future release.
Use setAdtPayload (ORAData payload) instead.
setAdtPayload in interface AdtMessagepayload - the message's data (the object must implement the CustomDatum interface). This payload must be a java object that represents the ADT that is defined as the queue/topic payload typeJMSException - if JMS fails to set the adt payloadMessageNotWriteableException - if message in read-only mode.AdtMessage.setAdtPayload(ORAData)
public void setAdtPayload(oracle.sql.ORAData payload)
throws JMSException
AdtMessageORAData object containing this Adt message's datasetAdtPayload in interface AdtMessagepayload - the message's data (the object must implement the ORAData interface). This payload must be a java object that represents the ADT that is defined as the queue/topic payload typeJMSException - if JMS fails to set the adt payloadMessageNotWriteableException - if message in read-only mode.
public java.lang.Object getAdtPayload()
throws JMSException
AdtMessageCustomDatum/ORAData object containing this Adt message's data
Important: CustomDatum support will be deprecated in a future release.
getAdtPayload in interface AdtMessageJMSException - if JMS fails to get object due to some internal JMS error.
|
Oracle® Streams Advanced Queuing Java API Reference 11g Release 2 (11.2) E10768-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||