org.ehcache.transactions.xa
Class SerializableXid
java.lang.Object
org.ehcache.transactions.xa.SerializableXid
- All Implemented Interfaces:
- java.io.Serializable, javax.transaction.xa.Xid
public class SerializableXid
- extends java.lang.Object
- implements javax.transaction.xa.Xid, java.io.Serializable
A serializable XID.
- See Also:
- Serialized Form
Fields inherited from interface javax.transaction.xa.Xid |
MAXBQUALSIZE, MAXGTRIDSIZE |
Constructor Summary |
SerializableXid(javax.transaction.xa.Xid xid)
Create a SerializableXid , copying the format ID, GTRID and BQUAL of an existing Xid . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SerializableXid
public SerializableXid(javax.transaction.xa.Xid xid)
- Create a
SerializableXid
, copying the format ID, GTRID and BQUAL of an existing Xid
.
- Parameters:
xid
- a Xid
implementation.
getFormatId
public int getFormatId()
- Specified by:
getFormatId
in interface javax.transaction.xa.Xid
getBranchQualifier
public byte[] getBranchQualifier()
- Specified by:
getBranchQualifier
in interface javax.transaction.xa.Xid
getGlobalTransactionId
public byte[] getGlobalTransactionId()
- Specified by:
getGlobalTransactionId
in interface javax.transaction.xa.Xid
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object