Click or drag to resize

SimpleStatement Methods

The SimpleStatement type exposes the following members.

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