Package net.sf.ehcache.transaction.xa
Class XidTransactionIDImpl
- java.lang.Object
-
- net.sf.ehcache.transaction.xa.XidTransactionIDImpl
-
- All Implemented Interfaces:
java.io.Serializable,TransactionID,XidTransactionID
- Direct Known Subclasses:
ExpiredXidTransactionIDImpl
public class XidTransactionIDImpl extends java.lang.Object implements XidTransactionID
- Author:
- Ludovic Orban
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XidTransactionIDImpl(javax.transaction.xa.Xid xid, java.lang.String cacheName)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetCacheName()Get the name of the associated Ehcache resource.javax.transaction.xa.XidgetXid()Get the XID of this transaction IDinthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getXid
public javax.transaction.xa.Xid getXid()
Get the XID of this transaction ID- Specified by:
getXidin interfaceXidTransactionID- Returns:
- the XID
-
getCacheName
public java.lang.String getCacheName()
Get the name of the associated Ehcache resource.- Specified by:
getCacheNamein interfaceXidTransactionID- Returns:
- the Ehcache resource name
-
equals
public final boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-