org.objectweb.jonas_tm
Class XidImpl
java.lang.Object
|
+--org.objectweb.jonas_tm.XidImpl
- All Implemented Interfaces:
- java.io.Serializable, javax.transaction.xa.Xid
- public class XidImpl
- extends java.lang.Object
- implements javax.transaction.xa.Xid, java.io.Serializable
Xid implementation for JTA
- Author:
- Philippe Durieux
contributors: ndb@sns-usa.com (cached values)
- See Also:
- Serialized Form
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary |
XidImpl(int fid,
int bqualsz,
byte[] tid)
Build an Xid from an otid_t CORBA |
XidImpl(java.lang.String serverName,
int ipAddr)
Build an Xid for a local transaction |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
JONAS_FORMAT_ID
public static final int JONAS_FORMAT_ID
XidImpl
public XidImpl(java.lang.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
getFormatId
public int getFormatId()
- Get the format id for that Xid
- Specified by:
getFormatId
in interface javax.transaction.xa.Xid
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Get the Global Id for that Xid
- Specified by:
getGlobalTransactionId
in interface javax.transaction.xa.Xid
getBranchQualifier
public byte[] getBranchQualifier()
- Get the Branch Qualifier for that Xid
- Specified by:
getBranchQualifier
in interface javax.transaction.xa.Xid
toString
public java.lang.String toString()
- String form
- Overrides:
toString
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj2)
- return true if objects are identical
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- return a hashcode value for this object
- Overrides:
hashCode
in class java.lang.Object