org.objectweb.jotm
Class XidImpl

java.lang.Object
  |
  +--org.objectweb.jotm.XidImpl
All Implemented Interfaces:
Serializable, Xid

public class XidImpl
extends Object
implements Xid, Serializable

Xid implementation for JTA

See Also:
Serialized Form

Field Summary
static int JONAS_FORMAT_ID
           
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
XidImpl(int formatId, byte[] gtrid, byte[] bqual)
          build Xid with all it's components (for performance on java serialization)
XidImpl(int fid, int bqualsz, byte[] tid)
          Build an Xid from an otid_t CORBA
XidImpl(String serverName, int ipAddr)
          Build an Xid for a local transaction
 
Method Summary
 boolean equals(Object obj2)
          return true if objects are identical
 byte[] getBranchQualifier()
          Get the Branch Qualifier for that Xid
 int getFormatId()
          Get the format id for that Xid
 byte[] getGlobalTransactionId()
          Get the Global Id for that Xid
 int hashCode()
          return a hashcode value for this object
 String toString()
          String form
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

JONAS_FORMAT_ID

public static final int JONAS_FORMAT_ID
See Also:
Constant Field Values
Constructor Detail

XidImpl

public XidImpl(String serverName,
               int ipAddr)
Build an Xid for a local transaction


XidImpl

public XidImpl(int fid,
               int bqualsz,
               byte[] tid)
Build an Xid from an otid_t CORBA


XidImpl

public XidImpl(int formatId,
               byte[] gtrid,
               byte[] bqual)
build Xid with all it's components (for performance on java serialization)

Method Detail

getFormatId

public int getFormatId()
Get the format id for that Xid

Specified by:
getFormatId in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Get the Global Id for that Xid

Specified by:
getGlobalTransactionId in interface Xid

getBranchQualifier

public byte[] getBranchQualifier()
Get the Branch Qualifier for that Xid

Specified by:
getBranchQualifier in interface Xid

toString

public String toString()
String form

Overrides:
toString in class Object

equals

public boolean equals(Object obj2)
return true if objects are identical

Overrides:
equals in class Object

hashCode

public int hashCode()
return a hashcode value for this object

Overrides:
hashCode in class Object