com.sun.xml.ws.tx.at.internal
Class BranchXidImpl

java.lang.Object
  extended by com.sun.xml.ws.tx.at.internal.BranchXidImpl
All Implemented Interfaces:
Externalizable, Serializable, Xid

public class BranchXidImpl
extends Object
implements Xid, Externalizable

Xid implementation used for persisting branch state. Wrapper over XidImpl to override semantics of hashCode and equals

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
BranchXidImpl()
           
BranchXidImpl(Xid xid)
           
 
Method Summary
 boolean equals(Object o)
           
 byte[] getBranchQualifier()
           
 Xid getDelegate()
           
 int getFormatId()
           
 byte[] getGlobalTransactionId()
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BranchXidImpl

public BranchXidImpl()

BranchXidImpl

public BranchXidImpl(Xid xid)
Method Detail

getBranchQualifier

public byte[] getBranchQualifier()
Specified by:
getBranchQualifier in interface Xid

getFormatId

public int getFormatId()
Specified by:
getFormatId in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()
Specified by:
getGlobalTransactionId in interface Xid

getDelegate

public Xid getDelegate()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.