Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

oracle.jdbc.aq
Class AQEnqueueOptions

java.lang.Object
  extended by oracle.jdbc.aq.AQEnqueueOptions

public class AQEnqueueOptions
extends java.lang.Object

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

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values
Constructor Detail

AQEnqueueOptions

public AQEnqueueOptions()
Construct the default enqueue options.

Method Detail

setRelativeMessageId

public void setRelativeMessageId(byte[] relativeMessageId)
                          throws java.sql.SQLException
Deprecated. 

Specifies the message identifier of the message which is referenced in the sequence deviation operation. This value is valid if and only if 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.

Parameters:
relativeMessageId - relative message id
Throws:
java.sql.SQLException

getRelativeMessageId

public byte[] getRelativeMessageId()
Returns the relative message id.

See Also:
setRelativeMessageId(byte[])

setSequenceDeviation

public void setSequenceDeviation(AQEnqueueOptions.SequenceDeviationOption sequenceDeviation)
                          throws java.sql.SQLException
Deprecated. 

Specifies whether the message being enqueued should be dequeued before other message(s) already in the queue. This feature is deprecated for new applications, but it is retained for compatibility.

Parameters:
sequenceDeviation - the possible values are:
  • SequenceDeviationOption.BOTTOM
  • SequenceDeviationOption.BEFORE
  • SequenceDeviationOption.TOP
Throws:
java.sql.SQLException

getSequenceDeviation

public AQEnqueueOptions.SequenceDeviationOption getSequenceDeviation()
Returns the sequence deviation.

See Also:
setSequenceDeviation(SequenceDeviationOption)

setVisibility

public void setVisibility(AQEnqueueOptions.VisibilityOption visibility)
                   throws java.sql.SQLException
Specifies the transactional behavior of the enqueue request.

Parameters:
visibility - The possible options are:
  • ENQUEUE_ON_COMMIT
  • ENQUEUE_IMMEDIATE
Throws:
java.sql.SQLException

getVisibility

public AQEnqueueOptions.VisibilityOption getVisibility()
Returns the transactional behavior.

See Also:
setVisibility(VisibilityOption)

setDeliveryMode

public void setDeliveryMode(AQEnqueueOptions.DeliveryMode delivery)
                     throws java.sql.SQLException
Specifies the delivery mode: persistent or buffered. Note that buffered message are more performant but persistent ones are safer.

Possible values are:

Parameters:
delivery - the delivery mode
Throws:
java.sql.SQLException

getDeliveryMode

public AQEnqueueOptions.DeliveryMode getDeliveryMode()
Returns the delivery option.

See Also:
setDeliveryMode(DeliveryMode)

setRetrieveMessageId

public void setRetrieveMessageId(boolean retrieveIt)
Set this to true to retrieve the message id back from the server when the message has been enqueued.

By default the message id won't be retrieved.

Parameters:
retrieveIt - the enqueued message id option

getRetrieveMessageId

public boolean getRetrieveMessageId()
Returns the value of the enqueued message id option.

See Also:
setRetrieveMessageId(boolean)

setTransformation

public void setTransformation(java.lang.String _transformation)
Specifies a transformation that will be applied before enqueuing the message. The return type of the transformation function must match the type of the queue.

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").

Parameters:
_transformation - the transformation

getTransformation

public java.lang.String getTransformation()
Returns the value of transformation option.

See Also:
setTransformation(String)

Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

Copyright © 1998, 2007, Oracle. All rights reserved.