|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.iapi.store.access.GlobalXact
org.apache.derby.iapi.store.access.xa.XAXactId
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.
Field Summary | |
private static char |
COLON
Private Fields of the class |
Fields inherited from class org.apache.derby.iapi.store.access.GlobalXact |
branch_id, format_id, global_id |
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary | |
XAXactId(int format_id,
byte[] global_id,
byte[] branch_id)
Construct from given pieces of an Xid. |
|
XAXactId(java.lang.String xactIdString)
|
|
XAXactId(javax.transaction.xa.Xid xid)
Construct an Xid using an external Xid. |
Method Summary | |
private void |
copy_init_xid(int format_id,
byte[] global_id,
byte[] branch_id)
initialize by making array copies of appropriate fields. |
boolean |
equals(java.lang.Object other)
|
byte[] |
getBranchQualifier()
Obtain the transaction branch qualifier part of the Xid in a byte array. |
int |
getFormatId()
Obtain the format id part of the Xid. |
byte[] |
getGlobalTransactionId()
Obtain the global transaction identifier part of XID as an array of bytes. |
java.lang.String |
toHexString()
|
Methods inherited from class org.apache.derby.iapi.store.access.GlobalXact |
hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final char COLON
Constructor Detail |
public XAXactId(int format_id, byte[] global_id, byte[] branch_id)
public XAXactId(javax.transaction.xa.Xid xid) throws javax.transaction.xa.XAException
javax.transaction.xa.XAException
- invalid external xidpublic XAXactId(java.lang.String xactIdString)
Method Detail |
private void copy_init_xid(int format_id, byte[] global_id, byte[] branch_id)
public java.lang.String toHexString()
public int getFormatId()
getFormatId
in interface javax.transaction.xa.Xid
public byte[] getGlobalTransactionId()
getGlobalTransactionId
in interface javax.transaction.xa.Xid
public byte[] getBranchQualifier()
getBranchQualifier
in interface javax.transaction.xa.Xid
public boolean equals(java.lang.Object other)
equals
in class GlobalXact
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |