Class CqlConditionalCommand<TEntity>
Represents an INSERT/UPDATE/DELETE command with support for Lightweight transactions.
Inheritance
System.Object
CqlConditionalCommand<TEntity>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Dse.dll
Syntax
public class CqlConditionalCommand<TEntity> : CqlCommand, IInternalStatement, IStatement
Type Parameters
Methods
Execute()
Executes a conditional query and returns information whether it was applied.
Declaration
public AppliedInfo<TEntity> Execute()
Returns
Type |
Description |
AppliedInfo<TEntity> |
An instance of AppliedInfo{TEntity}
|
Execute(String)
Executes a conditional query with the provided execution profile and returns information whether it was applied.
Declaration
public AppliedInfo<TEntity> Execute(string executionProfile)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
Returns
Type |
Description |
AppliedInfo<TEntity> |
An instance of AppliedInfo{TEntity}
|
ExecuteAsync()
Asynchronously executes a conditional query and returns information whether it was applied.
Declaration
public Task<AppliedInfo<TEntity>> ExecuteAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task<AppliedInfo<TEntity>> |
|
ExecuteAsync(String)
Asynchronously executes a conditional query with the provided execution profile and returns information whether it was applied.
Declaration
public Task<AppliedInfo<TEntity>> ExecuteAsync(string executionProfile)
Parameters
Type |
Name |
Description |
System.String |
executionProfile |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<AppliedInfo<TEntity>> |
|
GetCql(out Object[])
Declaration
protected override string GetCql(out object[] values)
Parameters
Type |
Name |
Description |
System.Object[] |
values |
|
Returns
Type |
Description |
System.String |
|
Overrides
SetConsistencyLevel(Nullable<ConsistencyLevel>)
Declaration
public CqlConditionalCommand<TEntity> SetConsistencyLevel(ConsistencyLevel? consistencyLevel)
Parameters
Returns
SetSerialConsistencyLevel(ConsistencyLevel)
Declaration
public CqlConditionalCommand<TEntity> SetSerialConsistencyLevel(ConsistencyLevel consistencyLevel)
Parameters
Returns
SetTimestamp(DateTimeOffset)
Sets the timestamp associated with this statement execution.
Declaration
public CqlConditionalCommand<TEntity> SetTimestamp(DateTimeOffset timestamp)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
timestamp |
|
Returns
SetTTL(Int32)
Sets the time for data in a column to expire (TTL) for INSERT and UPDATE commands.
Declaration
public CqlConditionalCommand<TEntity> SetTTL(int seconds)
Parameters
Type |
Name |
Description |
System.Int32 |
seconds |
Amount of seconds.
|
Returns
ToString()
Generates and returns the Cql query
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Implements