Uses of Class
org.h2.mvstore.tx.Transaction
-
Packages that use Transaction Package Description org.h2.engine Contains high level classes of the database and classes that don't fit in another sub-package.org.h2.mvstore.db Helper classes to use the MVStore in the H2 database.org.h2.mvstore.tx Helper classes to use the MVStore in a transactional manner. -
-
Uses of Transaction in org.h2.engine
Fields in org.h2.engine declared as Transaction Modifier and Type Field Description private Transaction
SessionLocal. transaction
Methods in org.h2.engine that return Transaction Modifier and Type Method Description Transaction
SessionLocal. getTransaction()
Get the transaction to use for this session. -
Uses of Transaction in org.h2.mvstore.db
Fields in org.h2.mvstore.db declared as Transaction Modifier and Type Field Description private Transaction
MVInDoubtTransaction. transaction
Methods in org.h2.mvstore.db that return Transaction Modifier and Type Method Description (package private) Transaction
MVTable. getTransactionBegin()
Get a new transaction.Constructors in org.h2.mvstore.db with parameters of type Transaction Constructor Description MVInDoubtTransaction(MVStore store, Transaction transaction)
-
Uses of Transaction in org.h2.mvstore.tx
Fields in org.h2.mvstore.tx declared as Transaction Modifier and Type Field Description private Transaction
Transaction. blockingTransaction
Blocking transaction, if anyprivate Transaction
TxDecisionMaker. blockingTransaction
private Transaction
TransactionMap. transaction
The transaction which is used for this map.private Transaction
TxDecisionMaker. transaction
Transaction we are operating withinFields in org.h2.mvstore.tx with type parameters of type Transaction Modifier and Type Field Description private java.util.concurrent.atomic.AtomicReferenceArray<Transaction>
TransactionStore. transactions
Array holding all open transaction objects.Methods in org.h2.mvstore.tx that return Transaction Modifier and Type Method Description Transaction
TransactionStore. begin()
Begin a new transaction.Transaction
TransactionStore. begin(TransactionStore.RollbackListener listener, int timeoutMillis, int ownerId, IsolationLevel isolationLevel)
Begin a new transaction.(package private) Transaction
TxDecisionMaker. getBlockingTransaction()
Transaction
TransactionMap. getTransaction()
(package private) Transaction
TransactionStore. getTransaction(int transactionId)
Get Transaction object for a transaction id.private Transaction
TransactionStore. registerTransaction(int txId, int status, java.lang.String name, long logId, int timeoutMillis, int ownerId, IsolationLevel isolationLevel, TransactionStore.RollbackListener listener)
Methods in org.h2.mvstore.tx that return types with arguments of type Transaction Modifier and Type Method Description java.util.List<Transaction>
TransactionStore. getOpenTransactions()
Get the list of unclosed transactions that have pending writes.Methods in org.h2.mvstore.tx with parameters of type Transaction Modifier and Type Method Description (package private) void
TransactionStore. commit(Transaction t, boolean recovery)
Commit a transaction.(package private) void
TransactionStore. endTransaction(Transaction t, boolean hasChanges)
End this transaction.(package private) java.util.Iterator<TransactionStore.Change>
TransactionStore. getChanges(Transaction t, long maxLogId, long toLogId)
Get the changes of the given transaction, starting from the latest log id back to the given log id.TransactionMap<K,V>
TransactionMap. getInstance(Transaction transaction)
Get a clone of this map for the given transaction.private boolean
Transaction. isDeadlocked(Transaction toWaitFor)
(package private) void
TransactionStore. rollbackTo(Transaction t, long maxLogId, long toLogId)
Rollback to an old savepoint.(package private) void
TransactionStore. storeTransaction(Transaction t)
Store a transaction.boolean
Transaction. waitFor(Transaction toWaitFor, java.lang.String mapName, java.lang.Object key)
Make this transaction to wait for the specified transaction to be closed, because both of them try to modify the same map entry.private boolean
Transaction. waitForThisToEnd(int millis, Transaction waiter)
Constructors in org.h2.mvstore.tx with parameters of type Transaction Constructor Description LockDecisionMaker(int mapId, Transaction transaction)
PutIfAbsentDecisionMaker(int mapId, Transaction transaction, java.util.function.Function<K,V> oldValueSupplier)
RepeatableReadLockDecisionMaker(int mapId, Transaction transaction, DataType<VersionedValue<V>> valueType, java.util.function.Function<K,V> snapshotValueSupplier)
TransactionMap(Transaction transaction, MVMap<K,VersionedValue<V>> map)
TxDecisionMaker(int mapId, Transaction transaction)
-