APIdia Launch Partner
Top Description Fields Methods
javax.transaction.xa

public Interface Xid


The Xid interface is a Java mapping of the X/Open transaction identifier XID structure. This interface specifies three accessor methods to retrieve a global transaction format ID, global transaction ID, and branch qualifier. The Xid interface is used by the transaction manager and the resource managers. This interface is not visible to the application programs.
Since
1.4

Field Summary

Modifier and TypeField and Description
public static final int
MAXBQUALSIZE

Maximum number of bytes returned by getBranchQualifier.

public static final int
MAXGTRIDSIZE

Maximum number of bytes returned by getGlobalTransactionId.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

Global transaction identifier.
getBranchQualifier
()

Obtain the transaction branch identifier part of XID as an array of bytes.

public int

Returns:

Format identifier. O means the OSI CCR format.
getFormatId
()

Obtain the format identifier part of the XID.

public byte[]

Returns:

Global transaction identifier.
getGlobalTransactionId
()

Obtain the global transaction identifier part of XID as an array of bytes.

Field Detail

MAXBQUALSIZEback to summary
public static final int MAXBQUALSIZE

Maximum number of bytes returned by getBranchQualifier.

MAXGTRIDSIZEback to summary
public static final int MAXGTRIDSIZE

Maximum number of bytes returned by getGlobalTransactionId.

Method Detail

getBranchQualifierback to summary
public byte[] getBranchQualifier()

Obtain the transaction branch identifier part of XID as an array of bytes.

Returns:byte[]

Global transaction identifier.

getFormatIdback to summary
public int getFormatId()

Obtain the format identifier part of the XID.

Returns:int

Format identifier. O means the OSI CCR format.

getGlobalTransactionIdback to summary
public byte[] getGlobalTransactionId()

Obtain the global transaction identifier part of XID as an array of bytes.

Returns:byte[]

Global transaction identifier.