C# Class CqlSharp.CqlBatchTransaction

A batched query. Any commands executed as part of a CqlBatchTransaction will be buffered and executed in a single batch when committed.
Inheritance: System.Data.Common.DbTransaction
Afficher le fichier Open project: reuzel/CqlSharp

Private Properties

Свойство Type Description
CheckIfPending void
CommitAsyncInternal Task

Méthodes publiques

Méthode Description
Cancel ( ) : void

Cancels the execution of this batch.

Commit ( ) : void

Commits the database transaction.

CommitAsync ( ) : Task

Commits the database transaction asynchronously.

CommitAsync ( CancellationToken cancellationToken ) : Task

Commits the database transaction asynchronously.

CqlBatchTransaction ( ) : System

Initializes a new instance of the CqlBatchTransaction class.

CqlBatchTransaction ( CqlConnection connection, CqlBatchType batchType = CqlBatchType.Logged, CqlConsistency consistency = CqlConsistency.One ) : System

Initializes a new instance of the CqlBatchTransaction class.

Reset ( ) : void

Resets this transaction. This clears the list of commands that are part of the transaction, and brings the transaction in the same state as if it was newly created

Rollback ( ) : void

Rolls back a transaction from a pending state.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Private Methods

Méthode Description
CheckIfPending ( ) : void

Checks wether this transaction is in the pending state

CommitAsyncInternal ( CancellationToken cancellationToken ) : Task

Performs the actual asynchronous commit operation

Method Details

Cancel() public méthode

Cancels the execution of this batch.
public Cancel ( ) : void
Résultat void

Commit() public méthode

Commits the database transaction.
public Commit ( ) : void
Résultat void

CommitAsync() public méthode

Commits the database transaction asynchronously.
public CommitAsync ( ) : Task
Résultat Task

CommitAsync() public méthode

Commits the database transaction asynchronously.
public CommitAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
Résultat Task

CqlBatchTransaction() public méthode

Initializes a new instance of the CqlBatchTransaction class.
public CqlBatchTransaction ( ) : System
Résultat System

CqlBatchTransaction() public méthode

Initializes a new instance of the CqlBatchTransaction class.
public CqlBatchTransaction ( CqlConnection connection, CqlBatchType batchType = CqlBatchType.Logged, CqlConsistency consistency = CqlConsistency.One ) : System
connection CqlConnection The connection.
batchType CqlBatchType Type of the batch.
consistency CqlConsistency The consistency.
Résultat System

Dispose() protected méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Reset() public méthode

Resets this transaction. This clears the list of commands that are part of the transaction, and brings the transaction in the same state as if it was newly created
public Reset ( ) : void
Résultat void

Rollback() public méthode

Rolls back a transaction from a pending state.
public Rollback ( ) : void
Résultat void