public class XAXactId extends GlobalXact implements javax.transaction.xa.Xid
It is NOT the object that is stored in the log. One reason for this is that the Formattable and Xid interface's define two different return values for the getFormatId() interface.
Modifier and Type | Field and Description |
---|---|
private static char |
COLON
Private Fields of the class
|
branch_id, format_id, global_id
Constructor and Description |
---|
XAXactId(int format_id,
byte[] global_id,
byte[] branch_id)
Construct from given pieces of an Xid.
|
XAXactId(java.lang.String xactIdString) |
XAXactId(javax.transaction.xa.Xid xid)
Construct an Xid using an external Xid.
|
Modifier and Type | Method and Description |
---|---|
private void |
copy_init_xid(int format_id,
byte[] global_id,
byte[] branch_id)
initialize by making array copies of appropriate fields.
|
boolean |
equals(java.lang.Object other) |
byte[] |
getBranchQualifier()
Obtain the transaction branch qualifier part of the Xid in a byte array.
|
int |
getFormatId()
Obtain the format id part of the Xid.
|
byte[] |
getGlobalTransactionId()
Obtain the global transaction identifier part of XID as an array of
bytes.
|
java.lang.String |
toHexString() |
hashCode, toString
private static final char COLON
public XAXactId(int format_id, byte[] global_id, byte[] branch_id)
public XAXactId(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
- invalid external xidpublic XAXactId(java.lang.String xactIdString)
private void copy_init_xid(int format_id, byte[] global_id, byte[] branch_id)
public java.lang.String toHexString()
public int getFormatId()
getFormatId
in interface javax.transaction.xa.Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface javax.transaction.xa.Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface javax.transaction.xa.Xid
public boolean equals(java.lang.Object other)
equals
in class GlobalXact
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.