Package org.teiid.client.xa
Class XidImpl
- java.lang.Object
-
- org.teiid.client.xa.XidImpl
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Xid
public class XidImpl extends Object implements Xid, Externalizable
Teiid implementation of Xid.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getBranchQualifier()
int
getFormatId()
byte[]
getGlobalTransactionId()
int
hashCode()
void
readExternal(ObjectInput in)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Constructor Detail
-
XidImpl
public XidImpl()
-
XidImpl
public XidImpl(Xid xid)
-
XidImpl
public XidImpl(int formatID, byte[] globalTransactionId, byte[] branchQualifier)
-
-
Method Detail
-
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interfaceXid
- See Also:
Xid.getFormatId()
-
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interfaceXid
- See Also:
Xid.getGlobalTransactionId()
-
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interfaceXid
- See Also:
Xid.getBranchQualifier()
-
toString
public String toString()
- Overrides:
toString
in classObject
- See Also:
Object.toString()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
- See Also:
Object.hashCode()
-
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
-
-