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
파일 보기 프로젝트 열기: reuzel/CqlSharp

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