edu.stanford.smi.protege.util.transaction
Class TransactionMonitor
java.lang.Object
edu.stanford.smi.protege.util.transaction.TransactionMonitor
public abstract class TransactionMonitor
- extends Object
This is a simple class that keeps track of running transactions and their nesting.
- Author:
- tredmond
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionMonitor
public TransactionMonitor()
beginTransaction
public void beginTransaction()
rollbackTransaction
public void rollbackTransaction()
commitTransaction
public void commitTransaction()
inTransaction
public boolean inTransaction()
existsTransaction
public boolean existsTransaction()
exclusiveTransaction
public boolean exclusiveTransaction()
getNesting
public int getNesting()
getNesting
public int getNesting(RemoteSession session)
updatesSeenByUntransactedClients
public static boolean updatesSeenByUntransactedClients(TransactionMonitor tm)
updatesSeenByUntransactedClients
public static boolean updatesSeenByUntransactedClients(TransactionMonitor tm,
TransactionIsolationLevel level)
updatesSeenByUntransactedClients
public boolean updatesSeenByUntransactedClients()
updatesSeenByUntransactedClients
public boolean updatesSeenByUntransactedClients(TransactionIsolationLevel level)
getSessions
public Set<RemoteSession> getSessions()
getTransationIsolationLevel
public abstract TransactionIsolationLevel getTransationIsolationLevel()
throws TransactionException
- Throws:
TransactionException
setTransactionIsolationLevel
public abstract void setTransactionIsolationLevel(TransactionIsolationLevel level)
throws TransactionException
- Sets the transaction isolation level for the current connection.
- Parameters:
level
- The desired TransactionIsolationLevel
- Throws:
TransactionException
Submit a bug report or feature request
Protégé is a trademark of Stanford University.
Copyright (c) 1998-2009 Stanford University.