Package com.sun.xml.ws.tx.at.internal
Class BranchXidImpl
- 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 boolean
equals(Object o)
byte[]
getBranchQualifier()
Xid
getDelegate()
int
getFormatId()
byte[]
getGlobalTransactionId()
int
hashCode()
void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
BranchXidImpl
public BranchXidImpl()
-
BranchXidImpl
public BranchXidImpl(Xid xid)
-
-
Method Detail
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interfaceXid
-
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interfaceXid
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interfaceXid
-
getDelegate
public Xid getDelegate()
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
-