Uses of Interface
org.cojen.tupl.Transaction
Packages that use Transaction
-
Uses of Transaction in org.cojen.tupl
Fields in org.cojen.tupl declared as TransactionModifier and TypeFieldDescriptionstatic final TransactionTransaction.BOGUSTransaction instance which isn't a transaction at all.Methods in org.cojen.tupl that return TransactionModifier and TypeMethodDescriptionCursor.link()Returns the transaction the cursor is currently linked to.Cursor.link(Transaction txn) Link to a transaction, which can be null for auto-commit mode.default TransactionDatabase.newTransaction()Returns a new Transaction with the default durability mode.Database.newTransaction(DurabilityMode durabilityMode) Returns a new Transaction with the given durability mode.Table.newTransaction(DurabilityMode durabilityMode) Returns a new transaction which is compatible with this table.default TransactionView.newTransaction(DurabilityMode durabilityMode) Returns a new transaction which is compatible with this view.Methods in org.cojen.tupl with parameters of type TransactionModifier and TypeMethodDescriptionbooleanTable.delete(Transaction txn, R row) Unconditionally removes an existing row by primary key.default booleanView.delete(Transaction txn, byte[] key) Unconditionally removes the entry associated with the given key.longIndex.evict(Transaction txn, byte[] lowKey, byte[] highKey, Filter evictionFilter, boolean autoload) Select a few entries, and delete them from the index.Table.exchange(Transaction txn, R row) Unconditionally stores the given row, potentially replacing a corresponding row which already exists.default byte[]View.exchange(Transaction txn, byte[] key, byte[] value) Unconditionally associates a value with the given key, returning the previous value.booleanTable.exists(Transaction txn, R row) Checks if a row exists by searching against the primary key.default booleanView.exists(Transaction txn, byte[] key) Checks if an entry for the given key exists.booleanTable.insert(Transaction txn, R row) Stores the given row when a corresponding row doesn't exist.default booleanView.insert(Transaction txn, byte[] key, byte[] value) Associates a value with the given key, unless a corresponding value already exists.Cursor.link(Transaction txn) Link to a transaction, which can be null for auto-commit mode.booleanTable.load(Transaction txn, R row) Fully loads the row by primary key.default byte[]View.load(Transaction txn, byte[] key) Returns a copy of the value for the given key, or null if no matching entry exists.default byte[]Combiner.loadDifference(Transaction txn, byte[] key, View first, View second) IfrequireValuesalways returns false, consider overriding this method and implement a more efficient load for two views in a difference.default byte[]Combiner.loadIntersection(Transaction txn, byte[] key, View first, View second) IfrequireValuesalways returns false, consider overriding this method and implement a more efficient load for two views in an intersection.default byte[]Combiner.loadUnion(Transaction txn, byte[] key, View first, View second) IfrequireValuesalways returns false, consider overriding this method and implement a more efficient load for two views in a union.View.lockCheck(Transaction txn, byte[] key) Checks the lock ownership for the given key.View.lockExclusive(Transaction txn, byte[] key) Explicitly acquire an exclusive lock for the given key, denying any additional locks.View.lockShared(Transaction txn, byte[] key) Explicitly acquire a shared lock for the given key, denying exclusive locks.View.lockUpgradable(Transaction txn, byte[] key) Explicitly acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.booleanTable.merge(Transaction txn, R row) Updates an existing row with the modified columns of the given row, and then loads the result back into the given row.default CursorView.newAccessor(Transaction txn, byte[] key) Returns a cursor intended for accessing values in chunks, permitting them to be larger than what can fit in main memory.View.newCursor(Transaction txn) Returns a new cursor over this view.Table.newScanner(Transaction txn) Returns a new scanner for all rows of this table.Table.newScanner(Transaction txn, String query, Object... args) Returns a new scanner for a subset of rows from this table, as specified by the query expression.Table.newStream(Transaction txn) Returns a new stream for all rows of this table.Table.newStream(Transaction txn, String query, Object... args) Returns a new stream for a subset of rows from this table, as specified by the query expression.Table.newUpdater(Transaction txn) Returns a new updater for all rows of this table.Table.newUpdater(Transaction txn, String query, Object... args) Returns a new updater for a subset of rows from this table, as specified by the query expression.default booleanView.remove(Transaction txn, byte[] key, byte[] value) Removes the entry associated with the given key, but only if the given value matches.booleanTable.replace(Transaction txn, R row) Stores the given row when a corresponding row already exists.default booleanView.replace(Transaction txn, byte[] key, byte[] value) Associates a value with the given key, but only if a corresponding value already exists.Table.scannerPlan(Transaction txn, String query, Object... args) Returns a query plan used bynewScanner.voidTable.store(Transaction txn, R row) Unconditionally stores the given row, potentially replacing a corresponding row which already exists.default voidView.store(Transaction txn, byte[] key, byte[] value) Unconditionally associates a value with the given key.default QueryPlanTable.streamPlan(Transaction txn, String query, Object... args) Returns a query plan used bynewStream.default LockResultView.touch(Transaction txn, byte[] key) Touch the given key as if callingload, but instead only acquiring any necessary locks.default LockResultView.tryLockExclusive(Transaction txn, byte[] key, long nanosTimeout) Explicitly acquire an exclusive lock for the given key, denying any additional locks.default LockResultView.tryLockShared(Transaction txn, byte[] key, long nanosTimeout) Explicitly acquire a shared lock for the given key, denying exclusive locks.default LockResultView.tryLockUpgradable(Transaction txn, byte[] key, long nanosTimeout) Explicitly acquire an upgradable lock for the given key, denying exclusive and additional upgradable locks.booleanTable.update(Transaction txn, R row) Updates an existing row with the modified columns of the given row, but the resulting row isn't loaded back.default booleanView.update(Transaction txn, byte[] key, byte[] value) Associates a value with the given key, but only if the given value differs from the existing value.default booleanView.update(Transaction txn, byte[] key, byte[] oldValue, byte[] newValue) Associates a value with the given key, but only if the given old value matches the existing value.Table.updaterPlan(Transaction txn, String query, Object... args) Returns a query plan used bynewUpdater. -
Uses of Transaction in org.cojen.tupl.ext
Methods in org.cojen.tupl.ext with parameters of type TransactionModifier and TypeMethodDescriptionvoidPrepareHandler.prepare(Transaction txn, byte[] message) Called to prepare a transaction or to recover one.voidPrepareHandler.prepareCommit(Transaction txn, byte[] message) A prepare variant intended to be called by a two-phase commit coordinator after all participants have prepared their transactions.voidCustomHandler.redo(Transaction txn, byte[] message) Called to write or apply an idempotent redo operation.voidCustomHandler.redo(Transaction txn, byte[] message, long indexId, byte[] key) Called to write or apply an idempotent redo operation which locked an index key.voidCustomHandler.undo(Transaction txn, byte[] message) Called to write or apply an idempotent undo operation.