org.objectweb.joram.shared.client
Class XACnxRollback

java.lang.Object
  extended byorg.objectweb.joram.shared.client.AbstractJmsRequest
      extended byorg.objectweb.joram.shared.client.XACnxRollback
All Implemented Interfaces:
java.io.Serializable

public class XACnxRollback
extends AbstractJmsRequest

An XACnxRollback instance is used by an XAConnection for rolling back the operations performed during a transaction.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
target
 
Constructor Summary
XACnxRollback()
          Constructs an XACnxRollback instance.
XACnxRollback(byte[] bq, int fi, byte[] gti)
          Constructs an XACnxRollback instance.
 
Method Summary
 void add(java.lang.String target, java.util.Vector ids, boolean queueMode)
          Adds a vector of denied messages' identifiers.
 byte[] getBQ()
          Returns the transaction branch qualifier.
 int getFI()
          Returns the transaction identifier format.
 byte[] getGTI()
          Returns the global transaction identifier.
 java.util.Vector getQueueIds(java.lang.String queue)
          Returns the vector of msg identifiers for a given queue.
 java.util.Enumeration getQueues()
          Returns the queues enumeration.
 java.util.Vector getSubIds(java.lang.String sub)
          Returns the vector of msg identifiers for a given subscription.
 java.util.Enumeration getSubs()
          Returns the subscriptions enumeration.
 void setBQ(byte[] bq)
           
 void setFI(int fi)
           
 void setGTI(byte[] gti)
           
 void setQDenyings(java.util.Hashtable qDenyings)
          Sets the queue denyings table.
 void setSubDenyings(java.util.Hashtable subDenyings)
          Sets the sub denyings table.
 java.util.Hashtable soapCode()
           
static java.lang.Object soapDecode(java.util.Hashtable h)
           
 
Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest
getKey, getRequestId, getTarget, setRequestId, setTarget, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XACnxRollback

public XACnxRollback(byte[] bq,
                     int fi,
                     byte[] gti)
Constructs an XACnxRollback instance.

Parameters:
bq - Transaction branch qualifier.
fi - Transaction identifier format.
gti - Global transaction identifier.

XACnxRollback

public XACnxRollback()
Constructs an XACnxRollback instance.

Method Detail

add

public void add(java.lang.String target,
                java.util.Vector ids,
                boolean queueMode)
Adds a vector of denied messages' identifiers.

Parameters:
target - Name of the queue or of the subscription where denying the messages.
ids - Vector of message identifiers.
queueMode - true if the messages have to be denied on a queue.

setBQ

public void setBQ(byte[] bq)

setFI

public void setFI(int fi)

setGTI

public void setGTI(byte[] gti)

getBQ

public byte[] getBQ()
Returns the transaction branch qualifier.


getFI

public int getFI()
Returns the transaction identifier format.


getGTI

public byte[] getGTI()
Returns the global transaction identifier.


getQueues

public java.util.Enumeration getQueues()
Returns the queues enumeration.


getQueueIds

public java.util.Vector getQueueIds(java.lang.String queue)
Returns the vector of msg identifiers for a given queue.


getSubs

public java.util.Enumeration getSubs()
Returns the subscriptions enumeration.


setQDenyings

public void setQDenyings(java.util.Hashtable qDenyings)
Sets the queue denyings table.


setSubDenyings

public void setSubDenyings(java.util.Hashtable subDenyings)
Sets the sub denyings table.


getSubIds

public java.util.Vector getSubIds(java.lang.String sub)
Returns the vector of msg identifiers for a given subscription.


soapCode

public java.util.Hashtable soapCode()
Overrides:
soapCode in class AbstractJmsRequest

soapDecode

public static java.lang.Object soapDecode(java.util.Hashtable h)


Copyright ? 2004 Scalagent - All rights reserved