|
||||||||||
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 FormField 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 usepublic ExternalXid(int formatId, byte[] global, byte[] branch)
formatId
- - the format identifierglobal
- - the global transaction identifierbranch
- - the branch qualifierMethod Detail |
---|
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 java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public 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.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput stream) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |