ehcache

net.sf.ehcache.transaction.xa
Class SerializableXid

java.lang.Object
  extended by net.sf.ehcache.transaction.xa.SerializableXid
All Implemented Interfaces:
Serializable, Xid

public class SerializableXid
extends Object
implements Xid, Serializable

A serializable XID

Author:
Ludovic Orban
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.transaction.xa.Xid
MAXBQUALSIZE, MAXGTRIDSIZE
 
Constructor Summary
SerializableXid(Xid xid)
          Create a SerializableXid, copying the GTRID and BQUAL of an existing XID
 
Method Summary
 boolean equals(Object obj)
          
 byte[] getBranchQualifier()
          
 int getFormatId()
          
 byte[] getGlobalTransactionId()
          
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SerializableXid

public SerializableXid(Xid xid)
Create a SerializableXid, copying the GTRID and BQUAL of an existing XID

Parameters:
xid - a SerializableXid
Method Detail

getFormatId

public int getFormatId()

Specified by:
getFormatId in interface Xid

getBranchQualifier

public byte[] getBranchQualifier()

Specified by:
getBranchQualifier in interface Xid

getGlobalTransactionId

public byte[] getGlobalTransactionId()

Specified by:
getGlobalTransactionId in interface Xid

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

ehcache

Copyright 2001-2017, Terracotta, Inc.