Package | Description |
---|---|
com.datastax.oss.driver.api.core.cql | |
com.datastax.oss.driver.api.querybuilder |
Modifier and Type | Method and Description |
---|---|
SimpleStatement |
SimpleStatementBuilder.build() |
static SimpleStatement |
SimpleStatement.newInstance(String cqlQuery)
Shortcut to create an instance of the default implementation with only a CQL query (see
SimpleStatementBuilder for the defaults for the other fields). |
static SimpleStatement |
SimpleStatement.newInstance(String cqlQuery,
Map<String,Object> namedValues)
Shortcut to create an instance of the default implementation with only a CQL query and named
values (see
SimpleStatementBuilder for the defaults for other fields). |
static SimpleStatement |
SimpleStatement.newInstance(String cqlQuery,
Object... positionalValues)
Shortcut to create an instance of the default implementation with only a CQL query and
positional values (see
SimpleStatementBuilder for the defaults for the other fields). |
SimpleStatement |
SimpleStatement.setKeyspace(CqlIdentifier newKeyspace)
Sets the CQL keyspace to associate with the query.
|
default SimpleStatement |
SimpleStatement.setKeyspace(String newKeyspaceName)
Shortcut for
setKeyspace(CqlIdentifier.fromCql(newKeyspaceName)) . |
default SimpleStatement |
SimpleStatement.setNamedValues(Map<String,Object> newNamedValues)
Shortcut for
setNamedValuesWithIds(Map) with raw strings as value names. |
SimpleStatement |
SimpleStatement.setNamedValuesWithIds(Map<CqlIdentifier,Object> newNamedValues)
Sets the named values to bind to named placeholders.
|
SimpleStatement |
SimpleStatement.setPositionalValues(List<Object> newPositionalValues)
Sets the positional values to bind to anonymous placeholders.
|
SimpleStatement |
SimpleStatement.setQuery(String newQuery)
Sets the CQL query to execute.
|
Modifier and Type | Method and Description |
---|---|
static SimpleStatementBuilder |
SimpleStatement.builder(SimpleStatement template)
Returns a builder to create an instance of the default implementation, copying the fields of
the given statement.
|
default PreparedStatement |
SyncCqlSession.prepare(SimpleStatement statement)
Prepares a CQL statement synchronously (the calling thread blocks until the statement is
prepared).
|
default CompletionStage<PreparedStatement> |
AsyncCqlSession.prepareAsync(SimpleStatement statement)
Prepares a CQL statement asynchronously (the call returns as soon as the prepare query was
sent, generally before the statement is prepared).
|
Constructor and Description |
---|
SimpleStatementBuilder(SimpleStatement template) |
Modifier and Type | Method and Description |
---|---|
default SimpleStatement |
BuildableQuery.build()
Builds the CQL query and wraps it in a simple statement.
|
default SimpleStatement |
BuildableQuery.build(Map<String,Object> namedValues)
Builds the CQL query and wraps it in a simple statement, also providing named values for bind
markers.
|
default SimpleStatement |
BuildableQuery.build(Object... values)
Builds the CQL query and wraps it in a simple statement, also providing positional values for
bind markers.
|
Copyright © 2017–2020. All rights reserved.