Create a new branch of an existing global transaction ID.
Parameters:
xid - The transaction ID to create a new branch of.
branchId - The ID of the new branch.
Method Detail
getGlobalTransactionId
public byte[] getGlobalTransactionId()
Return the global transaction id of this transaction.
Specified by:
getGlobalTransactionId in interface javax.transaction.xa.Xid
getBranchQualifier
public byte[] getBranchQualifier()
Return the branch qualifier of this transaction.
Specified by:
getBranchQualifier in interface javax.transaction.xa.Xid
getFormatId
public int getFormatId()
Return the format identifier of this transaction.
The format identifier augments the global id and specifies
how the global id and branch qualifier should be interpreted.
Specified by:
getFormatId in interface javax.transaction.xa.Xid
equals
public boolean equals(java.lang.Object obj)
Compare for equality.
Instances are considered equal if they are both instances of XidImpl,
and if they have the same global transaction id and transaction
branch qualifier.