|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exolab.jms.tranlog.ExternalXid
public final class ExternalXid
This class maps an external XID that is set in the transaction manager. It needs to do this so that it can use it internally.
Xid,
Serialized Form| Field Summary | |
|---|---|
protected static char[] |
HEX_DIGITS
Efficient mapping from 4 bit value to lower case hexadecimal digit. |
| Fields inherited from interface javax.transaction.xa.Xid |
|---|
MAXBQUALSIZE, MAXGTRIDSIZE |
| Constructor Summary | |
|---|---|
ExternalXid()
Default constructor for Serialization |
|
ExternalXid(int formatId,
byte[] global,
byte[] branch)
Create an insrance of this class using the specified format id, global transaction id and the branch qualifier. |
|
ExternalXid(javax.transaction.xa.Xid xid)
Create an instance of this class using the specified XID. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
byte[] |
getBranchQualifier()
|
int |
getFormatId()
|
byte[] |
getGlobalTransactionId()
|
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput stream)
|
java.lang.String |
toString()
Returns the global transaction identifier in the form of exid://formatId.global.branch |
void |
writeExternal(java.io.ObjectOutput stream)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final char[] HEX_DIGITS
| Constructor Detail |
|---|
public ExternalXid()
public ExternalXid(javax.transaction.xa.Xid xid)
xid - - the xid to use
public ExternalXid(int formatId,
byte[] global,
byte[] branch)
formatId - - the format identifierglobal - - the global transaction identifierbranch - - the branch qualifier| Method Detail |
|---|
public int getFormatId()
getFormatId in interface javax.transaction.xa.Xidpublic byte[] getGlobalTransactionId()
getGlobalTransactionId in interface javax.transaction.xa.Xidpublic byte[] getBranchQualifier()
getBranchQualifier in interface javax.transaction.xa.Xidpublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public void writeExternal(java.io.ObjectOutput stream)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput stream)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||