C# Class Upscaledb.Transaction

A Transaction class
Inheritance: IDisposable
Afficher le fichier Open project: cruppstahl/upscaledb Class Usage Examples

Méthodes publiques

Méthode Description
Abort ( ) : void

Aborts the Transaction if it has not already been committed or aborted.

This method wraps the native ups_txn_abort function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.

Commit ( ) : void

Commits the Transaction

This method wraps the native ups_txn_commit function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.

Dispose ( ) : void

Aborts the Transaction if it has not already been committed or aborted.

Private Methods

Méthode Description
Transaction ( Environment env, IntPtr handle ) : System

Method Details

Abort() public méthode

Aborts the Transaction if it has not already been committed or aborted.
This method wraps the native ups_txn_abort function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.
public Abort ( ) : void
Résultat void

Commit() public méthode

Commits the Transaction
This method wraps the native ups_txn_commit function.
Note that the function will fail with UPS_CURSOR_STILL_OPEN if a Cursor was attached to this Transaction, and the Cursor was not closed.
public Commit ( ) : void
Résultat void

Dispose() public méthode

Aborts the Transaction if it has not already been committed or aborted.
public Dispose ( ) : void
Résultat void