Class XidImpl
- java.lang.Object
-
- org.apache.geronimo.transaction.manager.XidImpl
-
- All Implemented Interfaces:
Serializable
,Xid
public class XidImpl extends Object implements Xid, Serializable
Unique id for a transaction.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getBranchQualifier()
int
getFormatId()
byte[]
getGlobalTransactionId()
int
hashCode()
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(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 interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interfaceXid
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interfaceXid
-
-