javax.transaction.xa.Xidpublic 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 | Description |
|---|---|---|
private static char |
COLON |
Private Fields of the class
|
branch_id, format_id, global_id| Constructor | 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 | 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, toStringprivate 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.Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface javax.transaction.xa.Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface javax.transaction.xa.Xidpublic boolean equals(java.lang.Object other)
equals in class GlobalXactApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.