Package org.apache.derby.impl.tools.ij
Class ijXid
- java.lang.Object
-
- org.apache.derby.impl.tools.ij.ijXid
-
- All Implemented Interfaces:
java.io.Serializable
,javax.transaction.xa.Xid
class ijXid extends java.lang.Object implements javax.transaction.xa.Xid, java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
branch_id
private int
format_id
private byte[]
global_id
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description ijXid(int xid, byte[] id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
format_id
private final int format_id
-
global_id
private final byte[] global_id
-
branch_id
private final byte[] branch_id
-
-
Method Detail
-
getFormatId
public int getFormatId()
Obtain the format id part of the Xid.- Specified by:
getFormatId
in interfacejavax.transaction.xa.Xid
- 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 interfacejavax.transaction.xa.Xid
- 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 interfacejavax.transaction.xa.Xid
- Returns:
- A byte array containing the branch qualifier of the transaction.
-
-