Serializable
, Xid
public class OracleXid extends Object implements Xid, Serializable
Modifier and Type | Field | Description |
---|---|---|
static int |
MAXBQUALSIZE |
|
static int |
MAXGTRIDSIZE |
Constructor | 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 | 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 Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface Xid
public static final boolean isLocalTransaction(Xid xid)
protected oracle.jdbc.internal.OracleConnection getConnectionDuringExceptionHandling()