C# Class Upscaledb.Transaction

A Transaction class
Inheritance: IDisposable
Exibir arquivo Open project: cruppstahl/upscaledb Class Usage Examples

Public Methods

Method 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

Method Description
Transaction ( Environment env, IntPtr handle ) : System

Method Details

Abort() public method

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
return void

Commit() public method

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
return void

Dispose() public method

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