C# Класс CqlSharp.CqlBatchTransaction

A batched query. Any commands executed as part of a CqlBatchTransaction will be buffered and executed in a single batch when committed.
Наследование: System.Data.Common.DbTransaction
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
CheckIfPending void
CommitAsyncInternal Task

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Приватные методы

Метод Описание
CheckIfPending ( ) : void

Checks wether this transaction is in the pending state

CommitAsyncInternal ( CancellationToken cancellationToken ) : Task

Performs the actual asynchronous commit operation

Описание методов

Cancel() публичный Метод

Cancels the execution of this batch.
public Cancel ( ) : void
Результат void

Commit() публичный Метод

Commits the database transaction.
public Commit ( ) : void
Результат void

CommitAsync() публичный Метод

Commits the database transaction asynchronously.
public CommitAsync ( ) : Task
Результат Task

CommitAsync() публичный Метод

Commits the database transaction asynchronously.
public CommitAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
Результат Task

CqlBatchTransaction() публичный Метод

Initializes a new instance of the CqlBatchTransaction class.
public CqlBatchTransaction ( ) : System
Результат System

CqlBatchTransaction() публичный Метод

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.
Результат System

Dispose() защищенный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

Reset() публичный Метод

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
Результат void

Rollback() публичный Метод

Rolls back a transaction from a pending state.
public Rollback ( ) : void
Результат void