public class OracleXid extends Object implements Xid, Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
MAXBQUALSIZE |
static int |
MAXGTRIDSIZE |
| Constructor and Description |
|---|
OracleXid(int fId, byte[] gId, byte[] bId)
OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier.
|
OracleXid(int fId, byte[] gId, byte[] bId, byte[] context)
OracleXid() -- The constructor that constructs an OracleXid with given formatId, global transacrion Id and branch qualifier, and transaction context.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object xid) |
byte[] |
getBranchQualifier()
getBranchQualifier() -- Obtain the txn branch qualifier of the XID
|
protected oracle.jdbc.internal.OracleConnection |
getConnectionDuringExceptionHandling()
Compares the given transaction identifiers with this.
|
int |
getFormatId()
getFormatId() -- Obtain the format identifier part of the Xid.
|
byte[] |
getGlobalTransactionId()
getGlobalTransactionId() -- Obtain the global txn id of the XID
|
int |
hashCode() |
static boolean |
isLocalTransaction(Xid xid) |
public static final int MAXGTRIDSIZE
public static final int MAXBQUALSIZE
public OracleXid(int fId,
byte[] gId,
byte[] bId)
throws XAException
fId - format IDgId - global transaction ID (no copy performed)bId - branch Qualifier (no copy performed)XAException - if the size of gId or bId is more than 64 bytespublic OracleXid(int fId,
byte[] gId,
byte[] bId,
byte[] context)
throws XAException
fId - format IDgId - global transaction ID (no copy performed)bId - branch Qualifier (no copy performed)context - transation context (no copy performed)XAException - if the size of gId or bId is more than 64 bytespublic int getFormatId()
getFormatId in interface Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface Xidpublic static final boolean isLocalTransaction(Xid xid)
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()