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 TransactionSessionLocal. transactionMethods in org.h2.engine that return Transaction Modifier and Type Method Description TransactionSessionLocal. 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 TransactionMVInDoubtTransaction. transactionMethods in org.h2.mvstore.db that return Transaction Modifier and Type Method Description (package private) TransactionMVTable. 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 TransactionTransaction. blockingTransactionBlocking transaction, if anyprivate TransactionTxDecisionMaker. blockingTransactionprivate TransactionTransactionMap. transactionThe transaction which is used for this map.private TransactionTxDecisionMaker. transactionTransaction 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. transactionsArray holding all open transaction objects.Methods in org.h2.mvstore.tx that return Transaction Modifier and Type Method Description TransactionTransactionStore. begin()Begin a new transaction.TransactionTransactionStore. begin(TransactionStore.RollbackListener listener, int timeoutMillis, int ownerId, IsolationLevel isolationLevel)Begin a new transaction.(package private) TransactionTxDecisionMaker. getBlockingTransaction()TransactionTransactionMap. getTransaction()(package private) TransactionTransactionStore. getTransaction(int transactionId)Get Transaction object for a transaction id.private TransactionTransactionStore. 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) voidTransactionStore. commit(Transaction t, boolean recovery)Commit a transaction.(package private) voidTransactionStore. 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 booleanTransaction. isDeadlocked(Transaction toWaitFor)(package private) voidTransactionStore. rollbackTo(Transaction t, long maxLogId, long toLogId)Rollback to an old savepoint.(package private) voidTransactionStore. storeTransaction(Transaction t)Store a transaction.booleanTransaction. 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 booleanTransaction. 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)
-