- java.lang.Object
-
- 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
Constructors Constructor Description BranchXidImpl()BranchXidImpl(Xid xid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)byte[]getBranchQualifier()XidgetDelegate()intgetFormatId()byte[]getGlobalTransactionId()inthashCode()voidreadExternal(ObjectInput in)StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
BranchXidImpl
public BranchXidImpl()
-
BranchXidImpl
public BranchXidImpl(Xid xid)
-
-
Method Detail
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifierin interfaceXid
-
getFormatId
public int getFormatId()
- Specified by:
getFormatIdin interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionIdin interfaceXid
-
getDelegate
public Xid getDelegate()
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
-