Click or drag to resize

SimpleStatement Class

A simple IStatement implementation built directly from a query string.
Inheritance Hierarchy
SystemObject
  DseStatement
    DseRegularStatement
      DseSimpleStatement
        Dse.Data.LinqCqlCommand

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public class SimpleStatement : RegularStatement

The SimpleStatement type exposes the following members.

Constructors
  NameDescription
Public methodSimpleStatement
Creates a new instance of SimpleStatement without any query string or parameters.
Public methodSimpleStatement(String)
Creates a new instance of SimpleStatement with the provided CQL query.
Public methodCode exampleSimpleStatement(IDictionaryString, Object, String)
Creates a new instance of SimpleStatement using a dictionary of parameters and a query with named parameters.
Public methodCode exampleSimpleStatement(String, Object)
Creates a new instance of SimpleStatement with the provided CQL query and values provided.
Top
Properties
Methods
  NameDescription
Public methodBind Obsolete.
Sets the parameter values for the query.

The same amount of values must be provided as parameter markers in the query.

Specify the parameter values by the position of the markers in the query or by name, using a single instance of an anonymous type, with property names as parameter names.

Public methodBindObjects Obsolete.
Public methodSetKeyspace
Sets the keyspace this Statement operates on. The keyspace should only be set when the IStatement applies to a different keyspace to the logged keyspace of the ISession.
Public methodSetQueryString
Public methodSetRoutingKey
Set the routing key for this query.

This method allows to manually provide a routing key for this query. It is thus optional since the routing key is only an hint for token aware load balancing policy but is never mandatory.

If the partition key for the query is composite, use the #setRoutingKey(ByteBuffer...) method instead to build the routing key.

Public methodSetRoutingValues
Sets the partition key values in order to route the query to the correct replicas.

For simple partition keys, set the partition key value.

For composite partition keys, set the multiple the partition key values in correct order.

Top
See Also

Reference