Oracle9i Supplied PL/SQL Packages and Types Reference Release 2 (9.2) Part Number A96612-01 |
|
JMS Types, 4 of 5
Subprogram | Description |
---|---|
Checks whether |
|
Sets the |
|
Sets the JMS type, which can be any text, and which corresponds to |
|
Sets |
|
Sets |
|
Sets |
|
Sets |
|
Clears all properties |
|
Checks whether |
|
Checks whether |
|
Checks whether |
|
Checks whether |
|
Checks whether |
|
Checks whether |
|
Checks whether |
|
Checks whether |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns |
|
Returns a BOOLEAN value if it can find |
|
Returns a |
|
Returns a |
|
Returns an |
|
Returns a |
|
Returns a |
|
Returns a |
|
Returns a |
|
Obtains instances of |
|
Sets the payload to an internal representation. See "Usage Notes". |
|
Puts the internal representation of the payload into a |
|
Sets the payload to an internal representation. See "Usage Notes". |
|
Puts the internal representation of the payload into a |
This procedure checks whether new_property_name
exists in the properties.
DBMS_AQJMS.LOOKUP_PROPERTY_NAME( new_property_name IN VARCHAR);
Parameter | Description |
---|---|
new_property_name |
The property name to look up in the JMS property list |
ORA-24191 if the property name exists
ORA-24192 if the property name is null
This procedure sets the replyto
parameter, which corresponds to JMSReplyTo
.
DBMS_AQJMS.SET_REPLYTO( replyto IN SYS.AQ$_AGENT);
Parameter | Description |
---|---|
replyto |
The client-supplied |
This procedure sets the JMS type, which can be any text, and which corresponds to JMSType
.
DBMS_AQJMS.SET_TYPE( type IN VARCHAR);
Parameter | Description |
---|---|
type |
The |
This procedure sets userid
, which corresponds to JMSXUserID
.
DBMS_AQJMS.SET_USERID( userid IN VARCHAR);
Parameter | Description |
---|---|
userid |
The JMS-defined |
This procedure sets appid
, which corresponds to JMSXAppID
.
DBMS_AQJMS.SET_APPID( appid IN VARCHAR);
Parameter | Description |
---|---|
appid |
The JMS-defined |
This procedure sets groupid
, which corresponds to JMSXGroupID
.
DBMS_AQJMS.SET_GROUPID( groupid IN VARCHAR);
Parameter | Description |
---|---|
groupid |
The JMS-defined |
This procedure sets groupseq
, which corresponds to JMSXGroupSeq
.
DBMS_AQJMS.SET_GROUPSEQ( groupseq IN INT);
Parameter | Description |
---|---|
groupseq |
The JMS-defined |
This procedure clears all properties.
DBMS_AQJMS.CLEAR_PROPERTIES;
This procedure checks whether property_name
is null or exists. If not, the procedure stores property_value
in an internal representation (a NUMBER
type).
DBMS_AQJMS.SET_BOOLEAN_PROPERTY( property_name IN VARCHAR, property_value IN BOOLEAN);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
This procedure checks whether property_name
is null or exists. If not, the procedure checks whether property_value
is within -127 to 127 (8-bits). This check is necessary because neither PL/SQL nor RDBMS defines the byte
datatype.
DBMS_AQJMS.SET_BYTE_PROPERTY( property_name IN VARCHAR, property_value IN INT);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
ORA-24193 if the property value exceeds the valid range
This procedure checks whether property_name
is null or exists. If not, the procedure checks whether property_value
is within -32767 to 32767 (16-bits). This check is necessary because neither PL/SQL nor RDBMS defines the short
datatype.
DBMS_AQJMS.SET_SHORT_PROPERTY( property_name IN VARCHAR, property_value IN INT);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
ORA-24193 if the property value exceeds the valid range
This procedure checks whether property_name
is null or exists. If not, the procedure checks whether property_value
is within -2147483647 to 2147483647 (32-bits). This check is necessary because in PL/SQL and the Oracle database, the INT
datatype is 38 bits.
DBMS_AQJMS.SET_INT_PROPERTY( property_name IN VARCHAR, property_value IN INT);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
ORA-24193 if the property value exceeds the valid range
This procedure checks whether property_name
is null or exists. If not, the procedure stores property_value
. In PL/SQL and Oracle database, the NUMBER
datatype is 38 bits. In Java, the long
datatype is 64 bits. Therefore, no range check is needed.
DBMS_AQJMS.SET_LONG_PROPERTY( property_name IN VARCHAR, property_value IN NUMBER);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
This procedure checks whether property_name
is null or exists. If not, the procedure stores property_value
.
DBMS_AQJMS.SET_FLOAT_PROPERTY( property_name IN VARCHAR, property_value IN FLOAT);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
This procedure checks whether property_name
is null or exists. If not, the procedure stores property_value
.
DBMS_AQJMS.SET_DOUBLE_PROPERTY( property_name IN VARCHAR, property_value IN DOUBLE PRECISION);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
This procedure checks whether property_name
is null or exists. If not, the procedure stores property_value
.
DBMS_AQJMS.SET_STRING_PROPERTY( property_name IN VARCHAR, property_value IN VARDHAR);
ORA-24191 if the property name exists
ORA-24192 if the property name is null
This function returns replyto
, which corresponds to JMSReplyTo
.
DBMS_AQJMS.GET_REPLYTO( replyto OUT SYS.AQ$_AGENT);
Return | Description |
---|---|
replyto |
The client-supplied |
This function returns type
, which corresponds to JMSType
.
DBMS_AQJMS.GET_TYPE( type OUT VARCHAR);
Return | Description |
---|---|
type |
The |
This function returns userid
, which corresponds to JMSXUserID
.
DBMS_AQJMS.GET_USERID( userid OUT VARCHAR);
Return | Description |
---|---|
userid |
The JMS-defined |
This function returns appid
, which corresponds to JMSXAppID
.
DBMS_AQJMS.GET_APPID( appid OUT VARCHAR);
Return | Description |
---|---|
appid |
The JMS-defined |
This function returns groupid
, which corresponds to JMSXGroupID
.
DBMS_AQJMS.GET_GROUPID( groupid OUT VARCHAR);
Return | Description |
---|---|
groupid |
The JMS-defined |
This function returns groupseq
, which corresponds to JMSXGroupSeq
.
DBMS_AQJMS.GET_GROUPSEQ( groupseq OUT INT);
Return | Description |
---|---|
groupseq |
The JMS-defined |
This function returns a BOOLEAN value if it can find property_name
and if java_type
is BOOLEAN
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_BOOLEAN_PROPERTY( property_name IN VARCHAR, RETURN BOOLEAN);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns a byte
value if it can find property_name
and if java_type
is byte
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_BYTE_PROPERTY( property_name IN VARCHAR, RETURN INT);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns a short
value if it can find property_name
and if java_type
is short
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_SHORT_PROPERTY( property_name IN VARCHAR, RETURN INT);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns an integer
value if it can find property_name
and if java_type
is INT
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_INT_PROPERTY( property_name IN VARCHAR, RETURN INT);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns a number
value if it can find property_name
and if java_type
is long
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_LONG_PROPERTY( property_name IN VARCHAR, RETURN NUMBER);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns a FLOAT
value if it can find property_name
and if java_type
is FLOAT
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_FLOAT_PROPERTY( property_name IN VARCHAR, RETURN FLOAT);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns a DOUBLE
PRECISION
value if it can find property_name
and if java_type
is DOUBLE
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_DOUBLE_PROPERTY( property_name IN VARCHAR, RETURN DOUBLE PRECISION);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function returns a VARCHAR
value if it can find property_name
and if java_type
is STRING
. Otherwise it returns a
NULL
.
DBMS_AQJMS.GET_STRING_PROPERTY( property_name IN VARCHAR, RETURN VARCHAR);
Parameter | Description |
---|---|
property_name |
The name of the user-specified JMS user property or the JMS-specified JMS system property |
This function is used to obtain instances of aq$_jms_message,
which can hold a specific type of JMS message (JMSText
, JMSBytes
, JMSMap
, JMSStream
). The type of message each of these instances can hold depends on the mtype
parameter passed to the contruct method. Once a message has been constructed, it can be used only to store JMS messages of the type it has been constructed to hold. The legal values of the mtype
parameter are defined in the "Constants to Support the aq$_jms_message Type". See "aq$_jms_message Type" for more information.
DBMS_AQJMS.CONSTRUCT( mtype IN INT) RETURN aq$_jms_message;
DBMS_AQJMS.CONSTRUCT RETURN aq$_jms_text_message;
This procedure sets the payload, a VARCHAR2
, to an internal representation. If the payload length is <= 4000, it is set into text_vc
. Otherwise, it is set into text_lob
.
DBMS_AQJMS.SET_TEXT( payload IN VARCHAR2;
This procedure sets the payload, a CLOB
, to an internal representation (sets payload into text_lob
).
DBMS_AQJMS.SET_TEXT( payload IN CLOB;
Parameter | Description |
---|---|
payload |
The payload of a JMS message |
This procedure is available with aq$_jms_text_message
(and aq$_jms_message
), but not aq$_jms_bytes_message
.
This procedure puts the internal representation of the payload into a VARCHAR2
variable payload. It puts text_vc
into payload
if text_vc
is not null, or transfers text_lob
into payload
if the length of text_lob
is =< 32767 (2**16 -1).
DBMS_AQJMS.GET_TEXT( payload OUT VARCHAR2);
This procedure puts the internal payload into a CLOB
variable payload. It puts text_lob
into payload
if text_lob
is not null, or transfers text_vc
into payload
.
DBMS_AQJMS.GET_TEXT( payload OUT CLOB;
Parameter | Description |
---|---|
payload |
The payload of a JMS message |
ORA-24190 if the length of the internal payload is more than 32767 (the maximum length of VARCHAR2
in PL/SQL).
This procedure is available with aq$_jms_text_message
(and aq$_jms_message
), but not aq$_jms_bytes_message
.
This procedure sets the payload, a RAW
value, to an internal representation (into bytes_raw
if the length of payload
is <= 2000; otherwise into bytes_lob)
.
DBMS_AQJMS.SET_BYTES( payload IN RAW);
This procedure sets the payload, a BLOB
value, to an internal representation (into bytes_lob
).
DBMS_AQJMS.SET_BYTES( payload IN BLOB);
Parameter | Description |
---|---|
payload |
The payload of a JMS message |
This procedure is available with aq$_jms_bytes_message
(and aq$_jms_message
), but not aq$_jms_text_message
.
This procedure puts the internal representation of the payload into a RAW
variable payload. It puts bytes_raw
into payload
if it is not null, or transfers bytes_lob
into payload
if the length of bytes_lob
is =< 32767 (2**16 -1).
DBMS_AQJMS.GET_BYTES( payload OUT RAW);
This procedure puts the internal representation of the payload into a BLOB
variable payload.
DBMS_AQJMS.GET_BYTES( payload OUT BLOB);
ORA-24190 if the length of the internal payload is more than 32767 (the maximum length of VARCHAR2
in PL/SQL).
Return | Description |
---|---|
payload |
The payload of a JMS message |
This procedure is available with aq$_jms_bytes_message
(and aq$_jms_message
), but not aq$_jms_text_message
.
|
Copyright © 2000, 2002 Oracle Corporation. All Rights Reserved. |
|