<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-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.AQjmsMapMessage
Oracle class implementing javax.jms.MapMessage
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() |
boolean |
getBoolean(java.lang.String name) Return the boolean value with the given name. |
byte |
getByte(java.lang.String name) Return the byte value with the given name. |
byte[] |
getBytes(java.lang.String name) Return the byte array value with the given name. |
char |
getChar(java.lang.String name) Return the Unicode character value with the given name. |
double |
getDouble(java.lang.String name) Return the double value with the given name. |
float |
getFloat(java.lang.String name) Return the float value with the given name. |
int |
getInt(java.lang.String name) Return the integer value with the given name. |
long |
getLong(java.lang.String name) Return the long value with the given name. |
java.util.Enumeration |
getMapNames() Return an Enumeration of all the Map message's names. |
protected oracle.sql.ORAData |
getMessageCont() |
java.lang.Object |
getObject(java.lang.String name) Return the Java object value with the given name. |
short |
getShort(java.lang.String name) Return the short value with the given name. |
java.lang.String |
getString(java.lang.String name) Returns the String value with the specified name. |
boolean |
itemExists(java.lang.String name) Check if an item exists in this MapMessage. |
protected void |
populateMessageContainer(oracle.jdbc.OracleConnection db_conn, boolean usetemplob) |
void |
setBoolean(java.lang.String name, boolean value) Set a boolean value with the given name, into the Map. |
void |
setByte(java.lang.String name, byte value) Set a byte value with the given name, into the Map. |
void |
setBytes(java.lang.String name, byte[] value) Set a byte array value with the given name, into the Map. |
void |
setBytes(java.lang.String name, byte[] value, int offset, int length) Set a portion of the byte array value with the given name, into the Map. |
void |
setChar(java.lang.String name, char value) Set a Unicode character value with the given name, into the Map. |
void |
setDouble(java.lang.String name, double value) Set a double value with the given name, into the Map. |
void |
setFloat(java.lang.String name, float value) Set a float value with the given name, into the Map. |
void |
setInt(java.lang.String name, int value) Set an integer value with the given name, into the Map. |
void |
setLong(java.lang.String name, long value) Set a long value with the given name, into the Map. |
void |
setObject(java.lang.String name, java.lang.Object value) Set a Java object value with the given name, into the Map. |
void |
setShort(java.lang.String name, short value) Set a short value with the given name, into the Map. |
void |
setString(java.lang.String name, java.lang.String value) Set a String value with the given name, into the Map. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void clearProperties() throws JMSException
clearProperties
in interface Message
clearProperties
in class AQjmsMessage
JMSException
- if JMS fails to clear JMS message properties due to some internal JMS error.public void setBoolean(java.lang.String name, boolean value) throws JMSException
setBoolean
in interface MapMessage
name
- the name of the booleanvalue
- the boolean value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setByte(java.lang.String name, byte value) throws JMSException
setByte
in interface MapMessage
name
- the name of the bytevalue
- the byte value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setShort(java.lang.String name, short value) throws JMSException
setShort
in interface MapMessage
name
- the name of the shortvalue
- the short value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setChar(java.lang.String name, char value) throws JMSException
setChar
in interface MapMessage
name
- the name of the Unicode charactervalue
- the Unicode character value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setDouble(java.lang.String name, double value) throws JMSException
setDouble
in interface MapMessage
name
- the name of the doublevalue
- the double value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setFloat(java.lang.String name, float value) throws JMSException
setFloat
in interface MapMessage
name
- the name of the floatvalue
- the float value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setInt(java.lang.String name, int value) throws JMSException
setInt
in interface MapMessage
name
- the name of the integervalue
- the integer value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setLong(java.lang.String name, long value) throws JMSException
setLong
in interface MapMessage
name
- the name of the longvalue
- the long value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setString(java.lang.String name, java.lang.String value) throws JMSException
setString
in interface MapMessage
name
- the name of the Stringvalue
- the String value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setObject(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 ...), String's and byte arrays.
setObject
in interface MapMessage
name
- the name of the Java objectvalue
- the Java object value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageFormatException
- if object is invalidMessageNotWriteableException
- if message in read-only mode.public void setBytes(java.lang.String name, byte[] value) throws JMSException
setBytes
in interface MapMessage
name
- the name of the byte arrayvalue
- the byte array value to set in the Map.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public void setBytes(java.lang.String name, byte[] value, int offset, int length) throws JMSException
setBytes
in interface MapMessage
name
- the name of the byte arrayvalue
- the byte array value to set in the Map.offset
- the initial offset within the byte array.length
- the number of bytes to use.JMSException
- if JMS fails to write message due to some internal JMS error.MessageNotWriteableException
- if message in read-only mode.public boolean getBoolean(java.lang.String name) throws JMSException
getBoolean
in interface MapMessage
name
- the name of the booleanJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public byte getByte(java.lang.String name) throws JMSException
getByte
in interface MapMessage
name
- the name of the byteJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public byte[] getBytes(java.lang.String name) throws JMSException
getBytes
in interface MapMessage
name
- the name of the byte arrayJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public char getChar(java.lang.String name) throws JMSException
getChar
in interface MapMessage
name
- the name of the Unicode characterJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public double getDouble(java.lang.String name) throws JMSException
getDouble
in interface MapMessage
name
- the name of the doubleJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public float getFloat(java.lang.String name) throws JMSException
getFloat
in interface MapMessage
name
- the name of the floatJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public int getInt(java.lang.String name) throws JMSException
getInt
in interface MapMessage
name
- the name of the integerJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public long getLong(java.lang.String name) throws JMSException
getLong
in interface MapMessage
name
- the name of the longJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public java.util.Enumeration getMapNames() throws JMSException
getMapNames
in interface MapMessage
JMSException
- if JMS fails to read message due to some internal JMS error.public java.lang.Object getObject(java.lang.String name) throws JMSException
Note that this method can be used to return in objectified format, an object that had been stored in the Map with the equivalent setObject
method call, or it's equivalent primitive set<type> method.
getObject
in interface MapMessage
name
- the name of the Java objectJMSException
- if JMS fails to read message due to some internal JMS error.public short getShort(java.lang.String name) throws JMSException
getShort
in interface MapMessage
name
- the name of the shortJMSException
- if JMS fails to read message due to some internal JMS error.MessageFormatException
- if this type conversion is invalid.public java.lang.String getString(java.lang.String name) throws JMSException
MapMessage
String
value with the specified name.getString
in interface MapMessage
name
- the name of the String
String
value with the specified name; if there is no item by this name, a null value is returnedJMSException
- if the JMS provider fails to read the message due to some internal error.public boolean itemExists(java.lang.String name) throws JMSException
itemExists
in interface MapMessage
name
- the name of the item to testJMSException
- if a JMS error occurs.public void clearBody() throws JMSException
clearBody
in interface Message
clearBody
in class AQjmsMessage
JMSException
- if JMS fails to due to some internal JMS error.protected oracle.sql.ORAData getMessageCont()
getMessageCont
in class AQjmsMessage
protected void closeContainer()
closeContainer
in class AQjmsMessage
protected void populateMessageContainer(oracle.jdbc.OracleConnection db_conn, boolean usetemplob) throws JMSException, java.sql.SQLException
populateMessageContainer
in class AQjmsMessage
JMSException
java.sql.SQLException
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
write_lob
in class AQjmsMessage
JMSException
|
Oracle® Streams Advanced Queuing Java API Reference Release 1 (10.1) B12023-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |