Class XidImpl
- java.lang.Object
-
- org.apache.geronimo.transaction.manager.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
Unique id for a transaction.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
byte[]
getBranchQualifier()
int
getFormatId()
byte[]
getGlobalTransactionId()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
XidImpl
public XidImpl(byte[] globalId)
Constructor taking a global id (for the main transaction)- Parameters:
globalId
- the global transaction id
-
XidImpl
public XidImpl(javax.transaction.xa.Xid global, byte[] branch)
Constructor for a branch id- Parameters:
global
- the xid of the global transaction this branch belongs tobranch
- the branch id
-
XidImpl
public XidImpl(int formatId, byte[] globalId, byte[] branchId)
-
-
Method Detail
-
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interfacejavax.transaction.xa.Xid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interfacejavax.transaction.xa.Xid
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interfacejavax.transaction.xa.Xid
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-