Home » db-derby-10.5.3.0 » org.apache.derby.iapi.store.access.xa » [javadoc | source]
org.apache.derby.iapi.store.access.xa
public class: XAXactId [javadoc | source]
java.lang.Object
   org.apache.derby.iapi.store.access.GlobalXact
      org.apache.derby.iapi.store.access.xa.XAXactId

All Implemented Interfaces:
    Xid

The XAXactId class is a specific implementation of the JTA Xid interface. It is only used by the TransactionTable.restore() interface to return an array of Xid's back to the caller, as part of serving the XAresource.restore() interface.

It is NOT the object that is stored in the log. One reason for this is that the Formattable and Xid interface's define two different return values for the getFormatId() interface.
Fields inherited from org.apache.derby.iapi.store.access.GlobalXact:
format_id,  global_id,  branch_id
Constructor:
 public XAXactId(Xid xid) throws XAException 
    Construct an Xid using an external Xid.

    Throws:
    XAException - invalid external xid
    exception: XAException - invalid external xid
 public XAXactId(String xactIdString) 
 public XAXactId(int format_id,
    byte[] global_id,
    byte[] branch_id) 
Method from org.apache.derby.iapi.store.access.xa.XAXactId Summary:
equals,   getBranchQualifier,   getFormatId,   getGlobalTransactionId,   toHexString
Methods from org.apache.derby.iapi.store.access.GlobalXact:
equals,   hashCode,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.derby.iapi.store.access.xa.XAXactId Detail:
 public boolean equals(Object other) 
 public byte[] getBranchQualifier() 
    Obtain the transaction branch qualifier part of the Xid in a byte array.

 public int getFormatId() 
    Obtain the format id part of the Xid.

 public byte[] getGlobalTransactionId() 
    Obtain the global transaction identifier part of XID as an array of bytes.

 public String toHexString()