com.arjuna.ats.jta.xa
Class XidImple

java.lang.Object
  extended by com.arjuna.ats.jta.xa.XidImple
All Implemented Interfaces:
Serializable, Xid

public class XidImple
extends Object
implements Xid, Serializable

Implementation of javax.transaction.xa.Xid.

Since:
JTS 1.2.4.
Version:
$Id: XidImple.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark@arjuna.com)
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
XidImple()
           
XidImple(AtomicAction c)
           
XidImple(AtomicAction c, boolean branch, String eisName)
           
XidImple(Uid id)
           
XidImple(Uid id, boolean branch, String eisName)
           
XidImple(Xid xid)
           
XidImple(com.arjuna.ats.internal.jta.xa.XID x)
           
 
Method Summary
 void copy(Xid xid)
           
 boolean equals(Object obj)
          Is the specified object equal to this one?
 boolean equals(Xid xid)
           
 byte[] getBranchQualifier()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
          These operations critically rely on the fact that we unpack the array in the order we packed it!
 String getNodeName()
           
 Uid getTransactionUid()
           
 com.arjuna.ats.internal.jta.xa.XID getXID()
           
 int hashCode()
          Return the hash code for this Xid.
 boolean isSameTransaction(Xid xid)
           
static void pack(OutputObjectState os, Xid xid)
           
 boolean packInto(OutputObjectState os)
           
 String toString()
           
static Xid unpack(InputObjectState os)
           
 boolean unpackFrom(InputObjectState os)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XidImple

public XidImple()

XidImple

public XidImple(Xid xid)

XidImple

public XidImple(AtomicAction c)

XidImple

public XidImple(AtomicAction c,
                boolean branch,
                String eisName)

XidImple

public XidImple(Uid id)

XidImple

public XidImple(Uid id,
                boolean branch,
                String eisName)

XidImple

public XidImple(com.arjuna.ats.internal.jta.xa.XID x)
Method Detail

isSameTransaction

public final boolean isSameTransaction(Xid xid)

getFormatId

public int getFormatId()
Specified by:
getFormatId in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
These operations critically rely on the fact that we unpack the array in the order we packed it!

Specified by:
getGlobalTransactionId in interface Xid

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface Xid

getTransactionUid

public final Uid getTransactionUid()

getNodeName

public final String getNodeName()

getXID

public final com.arjuna.ats.internal.jta.xa.XID getXID()

copy

public final void copy(Xid xid)

equals

public boolean equals(Xid xid)

packInto

public final boolean packInto(OutputObjectState os)

unpackFrom

public final boolean unpackFrom(InputObjectState os)

pack

public static final void pack(OutputObjectState os,
                              Xid xid)
                       throws IOException
Throws:
IOException

unpack

public static final Xid unpack(InputObjectState os)
                        throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Is the specified object equal to this one?

Overrides:
equals in class Object
Parameters:
obj - The object to test.
Returns:
true if they are equal, false otherwise.

hashCode

public int hashCode()
Return the hash code for this Xid.

Overrides:
hashCode in class Object
Returns:
the hash code.


Copyright © 2011. All Rights Reserved.