TransactionHandle class

Wrapper for transaction operations.

Provides convenient methods to commit or rollback a transaction.

Example:

final txn = TransactionHandle(backend, txnId);
// ... perform operations ...
txn.commit();

Constructors

TransactionHandle(OdbcConnectionBackend _backend, int _txnId)
Creates a new TransactionHandle instance.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
txnId → int
The transaction identifier.
no setter

Methods

commit() → bool
Commits the transaction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rollback() → bool
Rolls back the transaction.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited