@NotThreadSafe public class SimpleStatementBuilder extends StatementBuilder<SimpleStatementBuilder,SimpleStatement>
consistencyLevel, executionProfile, executionProfileName, idempotent, node, 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 |
withKeyspace(CqlIdentifier keyspace) |
SimpleStatementBuilder |
withKeyspace(String keyspaceName)
Shortcut for
withKeyspace(CqlIdentifier.fromCql(keyspaceName)) . |
SimpleStatementBuilder |
withQuery(String query) |
addCustomPayload, buildCustomPayload, clearCustomPayload, withConsistencyLevel, withExecutionProfile, withExecutionProfileName, withIdempotence, withNode, withPageSize, withPagingState, withRoutingKey, withRoutingKeyspace, withRoutingKeyspace, withRoutingToken, withSerialConsistencyLevel, withTimeout, withTimestamp, withTracing
public SimpleStatementBuilder(@NonNull String query)
public SimpleStatementBuilder(@NonNull SimpleStatement template)
@NonNull public SimpleStatementBuilder withQuery(@NonNull String query)
SimpleStatement.getQuery()
@NonNull public SimpleStatementBuilder withKeyspace(@Nullable CqlIdentifier keyspace)
Request.getKeyspace()
@NonNull public SimpleStatementBuilder withKeyspace(@Nullable String keyspaceName)
withKeyspace(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–2018. All rights reserved.