org.openorb.ots.Impl
Class XID

java.lang.Object
  extended by org.openorb.ots.Impl.XID

public class XID
extends java.lang.Object

This class provides operations to manage an XID.

Author:
Jerome Daniel

Constructor Summary
XID()
          Constructor
XID(byte[] xid)
          Constructor for recovery
XID(otid_t otid)
          Constructor to create an XID from an OTS OTID
XID(PropagationContext ctx, boolean sub)
          Constructor to build an XID from a propagation context.
XID(java.lang.String xid)
          Constructor for a log reader
XID(XID parent_xid)
          Constructor to build an XID from a parent XID ( used for sub transactions )
 
Method Summary
 byte[] get_bqual()
          Return the BQUAL
 int get_format_id()
          Return the format ID
 byte[] get_full_tid()
          Return a full TID
 byte[] get_gtrid()
          Return the GTRID
 int hash_id()
          Return a hash code for this XID
 otid_t otid()
          Returns an OTS OTID
 java.lang.String toString()
          XID to string representation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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(java.lang.String xid)
Constructor for a log reader


XID

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

Method Detail

otid

public otid_t otid()
Returns an OTS OTID


get_full_tid

public byte[] get_full_tid()
Return a full TID


get_format_id

public int get_format_id()
Return the format ID


get_gtrid

public byte[] get_gtrid()
Return the GTRID


get_bqual

public byte[] get_bqual()
Return the BQUAL


hash_id

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


toString

public java.lang.String toString()
XID to string representation.

Overrides:
toString in class java.lang.Object