org.openorb.ots.Impl

Class XID

public class XID extends Object

This class provides operations to manage an XID.

Author: Jerome Daniel

Constructor Summary
XID()
Constructor
XID(PropagationContext ctx, boolean sub)
Constructor to build an XID from a propagation context.
XID(XID parent_xid)
Constructor to build an XID from a parent XID ( used for sub transactions )
XID(byte[] xid)
Constructor for recovery
XID(String xid)
Constructor for a log reader
XID(otid_t otid)
Constructor to create an XID from an OTS OTID
Method Summary
byte[]get_bqual()
Return the BQUAL
intget_format_id()
Return the format ID
byte[]get_full_tid()
Return a full TID
byte[]get_gtrid()
Return the GTRID
inthash_id()
Return a hash code for this XID
otid_totid()
Returns an OTS OTID
StringtoString()
XID to string representation.

Constructor Detail

XID

public XID()
Constructor

XID

public XID(PropagationContext ctx, boolean sub)
Constructor to build an XID from a propagation context. This constructor can be used to create an XID for a new transaction branch ( in this case, the 'sub' value must be set to true ).

XID

public XID(XID parent_xid)
Constructor to build an XID from a parent XID ( used for sub transactions )

XID

public XID(byte[] xid)
Constructor for recovery

XID

public XID(String xid)
Constructor for a log reader

XID

public XID(otid_t otid)
Constructor to create an XID from an OTS OTID

Method Detail

get_bqual

public byte[] get_bqual()
Return the BQUAL

get_format_id

public int get_format_id()
Return the format ID

get_full_tid

public byte[] get_full_tid()
Return a full TID

get_gtrid

public byte[] get_gtrid()
Return the GTRID

hash_id

public int hash_id()
Return a hash code for this XID

otid

public otid_t otid()
Returns an OTS OTID

toString

public String toString()
XID to string representation.