@NotThreadSafe public class SimpleStatementBuilder extends StatementBuilder<SimpleStatementBuilder,SimpleStatement>
This class is mutable and not thread-safe.
consistencyLevel, executionProfile, executionProfileName, idempotent, node, nowInSeconds, pageSize, pagingState, routingKey, routingKeyspace, routingToken, serialConsistencyLevel, timeout, timestamp, tracing
Constructor and Description |
---|
SimpleStatementBuilder(SimpleStatement template) |
SimpleStatementBuilder(String query) |
Modifier and Type | Method and Description |
---|---|
SimpleStatementBuilder |
addNamedValue(CqlIdentifier name,
Object value) |
SimpleStatementBuilder |
addNamedValue(String name,
Object value)
Shortcut for
addNamedValue(CqlIdentifier.fromCql(name), value) . |
SimpleStatementBuilder |
addPositionalValue(Object value) |
SimpleStatementBuilder |
addPositionalValues(Iterable<Object> values) |
SimpleStatementBuilder |
addPositionalValues(Object... values) |
SimpleStatement |
build() |
SimpleStatementBuilder |
clearNamedValues() |
SimpleStatementBuilder |
clearPositionalValues() |
SimpleStatementBuilder |
setKeyspace(CqlIdentifier keyspace) |
SimpleStatementBuilder |
setKeyspace(String keyspaceName)
Shortcut for
setKeyspace(CqlIdentifier.fromCql(keyspaceName)) . |
SimpleStatementBuilder |
setQuery(String query) |
addCustomPayload, buildCustomPayload, clearCustomPayload, disableTracing, enableTracing, setConsistencyLevel, setDefaultTimestamp, setExecutionProfile, setExecutionProfileName, setFetchSize, setIdempotence, setNode, setNowInSeconds, setPageSize, setPagingState, setQueryTimestamp, setRoutingKey, setRoutingKey, setRoutingKeyspace, setRoutingKeyspace, setRoutingToken, setSerialConsistencyLevel, setTimeout, setTracing, setTracing
public SimpleStatementBuilder(@NonNull String query)
public SimpleStatementBuilder(@NonNull SimpleStatement template)
@NonNull public SimpleStatementBuilder setQuery(@NonNull String query)
SimpleStatement.getQuery()
@NonNull public SimpleStatementBuilder setKeyspace(@Nullable CqlIdentifier keyspace)
Request.getKeyspace()
@NonNull public SimpleStatementBuilder setKeyspace(@Nullable String keyspaceName)
setKeyspace(CqlIdentifier.fromCql(keyspaceName))
.@NonNull public SimpleStatementBuilder addPositionalValue(@Nullable Object value)
@NonNull public SimpleStatementBuilder addPositionalValues(@NonNull Iterable<Object> values)
@NonNull public SimpleStatementBuilder addPositionalValues(@NonNull Object... values)
@NonNull public SimpleStatementBuilder clearPositionalValues()
@NonNull public SimpleStatementBuilder addNamedValue(@NonNull CqlIdentifier name, @Nullable Object value)
@NonNull public SimpleStatementBuilder addNamedValue(@NonNull String name, @Nullable Object value)
addNamedValue(CqlIdentifier.fromCql(name), value)
.@NonNull public SimpleStatementBuilder clearNamedValues()
@NonNull public SimpleStatement build()
build
in class StatementBuilder<SimpleStatementBuilder,SimpleStatement>
Copyright © 2017–2022. All rights reserved.