ehcache

net.sf.ehcache.transaction
Class TransactionIDImpl

java.lang.Object
  extended by net.sf.ehcache.transaction.TransactionIDImpl
All Implemented Interfaces:
TransactionID

public final class TransactionIDImpl
extends Object
implements TransactionID

A transaction ID implementation with uniqueness across a single JVM

Author:
Ludovic Orban

Method Summary
 boolean equals(Object obj)
          
 int hashCode()
          
 boolean isDecisionCommit()
          Check if this transaction should be committed or not
 void markForCommit()
          Mark that this transaction's decision is commit
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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

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

true