Package | Description |
---|---|
com.datastax.oss.driver.api.core.cql |
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) |
Copyright © 2017–2024. All rights reserved.