Class ijXid
java.lang.Object
org.apache.derby.impl.tools.ij.ijXid
- All Implemented Interfaces:
Serializable, Xid
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private final intprivate final byte[]private static final longFields inherited from interface Xid
MAXBQUALSIZE, MAXGTRIDSIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Obtain the transaction branch qualifier part of the Xid in a byte array.intObtain the format id part of the Xid.byte[]Obtain the global transaction identifier part of XID as an array of bytes.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
format_id
private final int format_id -
global_id
private final byte[] global_id -
branch_id
private final byte[] branch_id
-
-
Constructor Details
-
ijXid
ijXid(int xid, byte[] id)
-
-
Method Details
-
getFormatId
public int getFormatId()Obtain the format id part of the Xid.- Specified by:
getFormatIdin interfaceXid- Returns:
- Format identifier. O means the OSI CCR format.
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()Obtain the global transaction identifier part of XID as an array of bytes.- Specified by:
getGlobalTransactionIdin interfaceXid- Returns:
- A byte array containing the global transaction identifier.
-
getBranchQualifier
public byte[] getBranchQualifier()Obtain the transaction branch qualifier part of the Xid in a byte array.- Specified by:
getBranchQualifierin interfaceXid- Returns:
- A byte array containing the branch qualifier of the transaction.
-