Transaction Methods

BerkeleyDB

The Transaction type exposes the following members.

Methods

  NameDescription
Abort
Cause an abnormal termination of the transaction.
CommitOverloaded.

In the case of nested transactions, if the transaction is a parent transaction, committing the parent transaction causes all unresolved children of the parent to be committed. In the case of nested transactions, if the transaction is a child transaction, its locks are not released, but are acquired by its parent. Although the commit of the child transaction will succeed, the actual resolution of the child transaction is postponed until the parent transaction is committed or aborted; that is, if its parent transaction commits, it will be committed; and if its parent transaction aborts, it will be aborted.

All cursors opened within the transaction must be closed before the transaction is committed.

Discard
Free up all the per-process resources associated with the specified Transaction instance, neither committing nor aborting the transaction.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Prepare
Initiate the beginning of a two-phase commit.
SetLockTimeout
Set the timeout value for locks for this transaction.
SetTxnTimeout
Set the timeout value for transactions for this transaction.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also