- 
 public interface XidThe 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 SummaryFields Modifier and Type Field Description static intMAXBQUALSIZEMaximum number of bytes returned bygetBranchQualifier().static intMAXGTRIDSIZEMaximum number of bytes returned bygetGlobalTransactionId().
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]getBranchQualifier()Obtain the transaction branch identifier part of XID as an array of bytes.intgetFormatId()Obtain the format identifier part of the XID.byte[]getGlobalTransactionId()Obtain the global transaction identifier part of XID as an array of bytes.
 
- 
- 
- 
Field Detail- 
MAXGTRIDSIZEstatic final int MAXGTRIDSIZE Maximum number of bytes returned bygetGlobalTransactionId().- See Also:
- Constant Field Values
 
 - 
MAXBQUALSIZEstatic final int MAXBQUALSIZE Maximum number of bytes returned bygetBranchQualifier().- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getFormatIdint getFormatId() Obtain the format identifier part of the XID.- Returns:
- Format identifier. O means the OSI CCR format.
 
 - 
getGlobalTransactionIdbyte[] getGlobalTransactionId() Obtain the global transaction identifier part of XID as an array of bytes.- Returns:
- Global transaction identifier.
 
 - 
getBranchQualifierbyte[] getBranchQualifier() Obtain the transaction branch identifier part of XID as an array of bytes.- Returns:
- Global transaction identifier.
 
 
- 
 
-