ehcache

net.sf.ehcache.transaction.xa
Class XidTransactionIDImpl

java.lang.Object
  extended by net.sf.ehcache.transaction.xa.XidTransactionIDImpl
All Implemented Interfaces:
TransactionID, XidTransactionID

public class XidTransactionIDImpl
extends java.lang.Object
implements XidTransactionID

Author:
Ludovic Orban

Constructor Summary
XidTransactionIDImpl(javax.transaction.xa.Xid xid)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 javax.transaction.xa.Xid getXid()
          Get the XID of this transaction ID
 int hashCode()
          
 boolean isDecisionCommit()
          Check if this transaction should be committed or not
 boolean isDecisionRollback()
          Check if this transaction ID has been marked for rollback
 void markForCommit()
          Mark that this transaction's decision is commit
 void markForRollback()
          Mark this transaction ID for rollback
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XidTransactionIDImpl

public XidTransactionIDImpl(javax.transaction.xa.Xid xid)
Constructor

Parameters:
xid - a XID
Method Detail

isDecisionCommit

public boolean isDecisionCommit()
Check if this transaction should be committed or not

Specified by:
isDecisionCommit in interface TransactionID
Returns:
true of the transaction should be committed

markForCommit

public void markForCommit()
Mark that this transaction's decision is commit

Specified by:
markForCommit in interface TransactionID

isDecisionRollback

public boolean isDecisionRollback()
Check if this transaction ID has been marked for rollback

Specified by:
isDecisionRollback in interface XidTransactionID
Returns:
true if this ID has been marked for rollback, false otherwise

markForRollback

public void markForRollback()
Mark this transaction ID for rollback

Specified by:
markForRollback in interface XidTransactionID

getXid

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

Specified by:
getXid in interface XidTransactionID
Returns:
the XID

equals

public final boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

ehcache

true