ehcache

net.sf.ehcache.transaction.xa
Class XidTransactionIDImpl

java.lang.Object
  extended by net.sf.ehcache.transaction.xa.XidTransactionIDImpl
All Implemented Interfaces:
Serializable, TransactionID, XidTransactionID
Direct Known Subclasses:
ExpiredXidTransactionIDImpl

public class XidTransactionIDImpl
extends Object
implements XidTransactionID

Author:
Ludovic Orban
See Also:
Serialized Form

Constructor Summary
XidTransactionIDImpl(Xid xid, String cacheName)
          Constructor
 
Method Summary
 boolean equals(Object obj)
          
 String getCacheName()
          Get the name of the associated Ehcache resource.
 Xid getXid()
          Get the XID of this transaction ID
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XidTransactionIDImpl

public XidTransactionIDImpl(Xid xid,
                            String cacheName)
Constructor

Parameters:
xid - a XID
Method Detail

getXid

public Xid getXid()
Get the XID of this transaction ID

Specified by:
getXid in interface XidTransactionID
Returns:
the XID

getCacheName

public String getCacheName()
Get the name of the associated Ehcache resource.

Specified by:
getCacheName in interface XidTransactionID
Returns:
the Ehcache resource name

equals

public final boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public final int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object

ehcache

Copyright 2001-2015, Terracotta, Inc.