Package org.apache.derby.impl.tools.ij
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 int
private final byte[]
private static final long
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
Obtain the transaction branch qualifier part of the Xid in a byte array.int
Obtain 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:
getFormatId
in 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:
getGlobalTransactionId
in 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:
getBranchQualifier
in interfaceXid
- Returns:
- A byte array containing the branch qualifier of the transaction.
-