org.objectweb.joram.shared.client

Class XACnxRollback

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(String target, 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.
Vector
getQueueIds(String queue)
Returns the vector of msg identifiers for a given queue.
Enumeration
getQueues()
Returns the queues enumeration.
Vector
getSubIds(String sub)
Returns the vector of msg identifiers for a given subscription.
Enumeration
getSubs()
Returns the subscriptions enumeration.
void
setBQ(byte[] bq)
void
setFI(int fi)
void
setGTI(byte[] gti)
void
setQDenyings(Hashtable qDenyings)
Sets the queue denyings table.
void
setSubDenyings(Hashtable subDenyings)
Sets the sub denyings table.
Hashtable
soapCode()
static Object
soapDecode(Hashtable h)

Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest

getKey, getRequestId, getTarget, setRequestId, setTarget, soapCode, soapDecode, toString

Constructor Details

XACnxRollback

public XACnxRollback()
Constructs an XACnxRollback instance.


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.

Method Details

add

public void add(String target,
                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.


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.


getQueueIds

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


getQueues

public Enumeration getQueues()
Returns the queues enumeration.


getSubIds

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


getSubs

public Enumeration getSubs()
Returns the subscriptions enumeration.


setBQ

public void setBQ(byte[] bq)


setFI

public void setFI(int fi)


setGTI

public void setGTI(byte[] gti)


setQDenyings

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


setSubDenyings

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


soapCode

public Hashtable soapCode()
Overrides:
soapCode in interface AbstractJmsRequest


soapDecode

public static Object soapDecode(Hashtable h)
Overrides:
soapDecode in interface AbstractJmsRequest


Copyright B) 2004 Scalagent - All rights reserved