|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdbc.aq.AQEnqueueOptions
public class AQEnqueueOptions
Specifies the options available for the enqueue operation.
Nested Class Summary | |
---|---|
static class |
AQEnqueueOptions.DeliveryMode
|
static class |
AQEnqueueOptions.SequenceDeviationOption
|
static class |
AQEnqueueOptions.VisibilityOption
|
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static boolean |
TRACE
|
Constructor Summary | |
---|---|
AQEnqueueOptions()
Construct the default enqueue options. |
Method Summary | |
---|---|
AQEnqueueOptions.DeliveryMode |
getDeliveryMode()
Returns the delivery option. |
byte[] |
getRelativeMessageId()
Returns the relative message id. |
boolean |
getRetrieveMessageId()
Returns the value of the enqueued message id option. |
AQEnqueueOptions.SequenceDeviationOption |
getSequenceDeviation()
Returns the sequence deviation. |
java.lang.String |
getTransformation()
Returns the value of transformation option. |
AQEnqueueOptions.VisibilityOption |
getVisibility()
Returns the transactional behavior. |
void |
setDeliveryMode(AQEnqueueOptions.DeliveryMode delivery)
Specifies the delivery mode: persistent or buffered. |
void |
setRelativeMessageId(byte[] relativeMessageId)
Deprecated. |
void |
setRetrieveMessageId(boolean retrieveIt)
Set this to true to retrieve the message id back from the server when the message has been enqueued. |
void |
setSequenceDeviation(AQEnqueueOptions.SequenceDeviationOption sequenceDeviation)
Deprecated. |
void |
setTransformation(java.lang.String _transformation)
Specifies a transformation that will be applied before enqueuing the message. |
void |
setVisibility(AQEnqueueOptions.VisibilityOption visibility)
Specifies the transactional behavior of the enqueue request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Constructor Detail |
---|
public AQEnqueueOptions()
Method Detail |
---|
public void setRelativeMessageId(byte[] relativeMessageId) throws java.sql.SQLException
SequenceDeviationOption.BEFORE
is specified in setSequenceDeviation and
is ignored if the sequence deviation is not specified.
This feature is deprecated and may be removed in a future release.
relativeMessageId
- relative message id
java.sql.SQLException
public byte[] getRelativeMessageId()
setRelativeMessageId(byte[])
public void setSequenceDeviation(AQEnqueueOptions.SequenceDeviationOption sequenceDeviation) throws java.sql.SQLException
sequenceDeviation
- the possible values are:SequenceDeviationOption.BOTTOM
SequenceDeviationOption.BEFORE
SequenceDeviationOption.TOP
java.sql.SQLException
public AQEnqueueOptions.SequenceDeviationOption getSequenceDeviation()
setSequenceDeviation(SequenceDeviationOption)
public void setVisibility(AQEnqueueOptions.VisibilityOption visibility) throws java.sql.SQLException
visibility
- The possible options are: ENQUEUE_ON_COMMIT
ENQUEUE_IMMEDIATE
java.sql.SQLException
public AQEnqueueOptions.VisibilityOption getVisibility()
setVisibility(VisibilityOption)
public void setDeliveryMode(AQEnqueueOptions.DeliveryMode delivery) throws java.sql.SQLException
Possible values are:
delivery
- the delivery mode
java.sql.SQLException
public AQEnqueueOptions.DeliveryMode getDeliveryMode()
setDeliveryMode(DeliveryMode)
public void setRetrieveMessageId(boolean retrieveIt)
By default the message id won't be retrieved.
retrieveIt
- the enqueued message id optionpublic boolean getRetrieveMessageId()
setRetrieveMessageId(boolean)
public void setTransformation(java.lang.String _transformation)
Transformations must be created in PLSQL using
DBMS_TRANSFORM.CREATE_TRANSFORMATION(...)
.
For example if the transformation 'OBJ2XML' has been created under the schema
'SCOTT' then it can be specified in the dequeue option with
enqueueOption.setTransformation("SCOTT.OBJ2XML")
.
_transformation
- the transformationpublic java.lang.String getTransformation()
setTransformation(String)
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |