Class CqlConditionalCommand<TEntity>
Represents an INSERT/UPDATE/DELETE command with support for Lightweight transactions.
Inheritance
object
CqlConditionalCommand<TEntity>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Assembly: Cassandra.dll
Syntax
public class CqlConditionalCommand<TEntity> : CqlCommand, 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 |
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
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 |
string |
executionProfile |
|
Returns
GetCql(out object[])
Declaration
protected override string GetCql(out object[] values)
Parameters
Type |
Name |
Description |
object[] |
values |
|
Returns
Overrides
SetConsistencyLevel(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 |
DateTimeOffset |
timestamp |
|
Returns
SetTTL(int)
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 |
int |
seconds |
Amount of seconds.
|
Returns
ToString()
Generates and returns the Cql query
Declaration
public override string ToString()
Returns
Overrides
Implements