@NotThreadSafe public abstract class GraphStatementBuilderBase<SelfT extends GraphStatementBuilderBase<SelfT,StatementT>,StatementT extends GraphStatement<StatementT>> extends Object
Modifier and Type | Field and Description |
---|---|
protected com.datastax.oss.driver.api.core.ConsistencyLevel |
consistencyLevel |
protected com.datastax.oss.driver.api.core.config.DriverExecutionProfile |
executionProfile |
protected String |
executionProfileName |
protected String |
graphName |
protected Boolean |
isIdempotent |
protected com.datastax.oss.driver.api.core.metadata.Node |
node |
protected com.datastax.oss.driver.api.core.ConsistencyLevel |
readConsistencyLevel |
protected String |
subProtocol |
protected Duration |
timeout |
protected long |
timestamp |
protected String |
traversalSource |
protected com.datastax.oss.driver.api.core.ConsistencyLevel |
writeConsistencyLevel |
Modifier | Constructor and Description |
---|---|
protected |
GraphStatementBuilderBase() |
protected |
GraphStatementBuilderBase(StatementT template) |
Modifier and Type | Method and Description |
---|---|
SelfT |
addCustomPayload(String key,
ByteBuffer value) |
abstract StatementT |
build()
Create the statement with the configuration defined by this builder object.
|
protected Map<String,ByteBuffer> |
buildCustomPayload() |
SelfT |
clearCustomPayload() |
SelfT |
withConsistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel) |
SelfT |
withExecutionProfile(com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile) |
SelfT |
withExecutionProfileName(String executionProfileName) |
SelfT |
withGraphName(String graphName) |
SelfT |
withIdempotence(Boolean idempotent) |
SelfT |
withNode(com.datastax.oss.driver.api.core.metadata.Node node) |
SelfT |
withReadConsistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel) |
SelfT |
withSubProtocol(String subProtocol) |
SelfT |
withTimeout(Duration timeout) |
SelfT |
withTimestamp(long timestamp) |
SelfT |
withTraversalSource(String traversalSource) |
SelfT |
withWriteConsistencyLevel(com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel) |
protected Boolean isIdempotent
protected Duration timeout
protected com.datastax.oss.driver.api.core.metadata.Node node
protected long timestamp
protected com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile
protected String executionProfileName
protected String graphName
protected String traversalSource
protected String subProtocol
protected com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel
protected com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel
protected com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel
protected GraphStatementBuilderBase()
protected GraphStatementBuilderBase(StatementT template)
@NonNull public SelfT withIdempotence(@Nullable Boolean idempotent)
GraphStatement.setIdempotent(Boolean)
@NonNull public SelfT withTimeout(@Nullable Duration timeout)
GraphStatement.setTimeout(Duration)
@NonNull public SelfT withNode(@Nullable com.datastax.oss.driver.api.core.metadata.Node node)
GraphStatement.setNode(Node)
@NonNull public SelfT withTimestamp(long timestamp)
GraphStatement.setTimestamp(long)
@NonNull public SelfT withExecutionProfileName(@Nullable String executionProfileName)
@NonNull public SelfT withExecutionProfile(@Nullable com.datastax.oss.driver.api.core.config.DriverExecutionProfile executionProfile)
@NonNull public SelfT addCustomPayload(@NonNull String key, @Nullable ByteBuffer value)
GraphStatement.setCustomPayload(Map)
@NonNull public SelfT clearCustomPayload()
GraphStatement.setCustomPayload(Map)
@NonNull public SelfT withGraphName(@Nullable String graphName)
GraphStatement.setGraphName(String)
@NonNull public SelfT withSubProtocol(@Nullable String subProtocol)
GraphStatement.setSubProtocol(String)
@NonNull public SelfT withConsistencyLevel(@Nullable com.datastax.oss.driver.api.core.ConsistencyLevel consistencyLevel)
@NonNull public SelfT withReadConsistencyLevel(@Nullable com.datastax.oss.driver.api.core.ConsistencyLevel readConsistencyLevel)
@NonNull public SelfT withWriteConsistencyLevel(@Nullable com.datastax.oss.driver.api.core.ConsistencyLevel writeConsistencyLevel)
@NonNull protected Map<String,ByteBuffer> buildCustomPayload()
@NonNull public abstract StatementT build()
Copyright © 2017–2019. All rights reserved.