@NotThreadSafe public abstract class GraphStatementBuilderBase<SelfT extends GraphStatementBuilderBase<SelfT,StatementT>,StatementT extends GraphStatement<StatementT>> extends Object
Modifier and Type | Field and Description |
---|---|
protected ConsistencyLevel |
consistencyLevel |
protected DriverExecutionProfile |
executionProfile |
protected String |
executionProfileName |
protected String |
graphName |
protected Boolean |
isIdempotent |
protected Node |
node |
protected ConsistencyLevel |
readConsistencyLevel |
protected String |
subProtocol |
protected Duration |
timeout |
protected long |
timestamp |
protected String |
traversalSource |
protected 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 |
setConsistencyLevel(ConsistencyLevel consistencyLevel) |
SelfT |
setExecutionProfile(DriverExecutionProfile executionProfile) |
SelfT |
setExecutionProfileName(String executionProfileName) |
SelfT |
setGraphName(String graphName) |
SelfT |
setIdempotence(Boolean idempotent) |
SelfT |
setNode(Node node) |
SelfT |
setReadConsistencyLevel(ConsistencyLevel readConsistencyLevel) |
SelfT |
setSubProtocol(String subProtocol) |
SelfT |
setTimeout(Duration timeout) |
SelfT |
setTimestamp(long timestamp) |
SelfT |
setTraversalSource(String traversalSource) |
SelfT |
setWriteConsistencyLevel(ConsistencyLevel writeConsistencyLevel) |
protected Boolean isIdempotent
protected Duration timeout
protected Node node
protected long timestamp
protected DriverExecutionProfile executionProfile
protected String executionProfileName
protected String graphName
protected String traversalSource
protected String subProtocol
protected ConsistencyLevel consistencyLevel
protected ConsistencyLevel readConsistencyLevel
protected ConsistencyLevel writeConsistencyLevel
protected GraphStatementBuilderBase()
protected GraphStatementBuilderBase(StatementT template)
@NonNull public SelfT setIdempotence(@Nullable Boolean idempotent)
GraphStatement.setIdempotent(Boolean)
@NonNull public SelfT setTimeout(@Nullable Duration timeout)
GraphStatement.setTimeout(Duration)
@NonNull public SelfT setNode(@Nullable Node node)
GraphStatement.setNode(Node)
@NonNull public SelfT setTimestamp(long timestamp)
GraphStatement.setTimestamp(long)
@NonNull public SelfT setExecutionProfileName(@Nullable String executionProfileName)
@NonNull public SelfT setExecutionProfile(@Nullable 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 setGraphName(@Nullable String graphName)
GraphStatement.setGraphName(String)
@NonNull public SelfT setSubProtocol(@Nullable String subProtocol)
GraphStatement.setSubProtocol(String)
@NonNull public SelfT setConsistencyLevel(@Nullable ConsistencyLevel consistencyLevel)
@NonNull public SelfT setReadConsistencyLevel(@Nullable ConsistencyLevel readConsistencyLevel)
@NonNull public SelfT setWriteConsistencyLevel(@Nullable ConsistencyLevel writeConsistencyLevel)
@NonNull protected Map<String,ByteBuffer> buildCustomPayload()
@NonNull public abstract StatementT build()
Copyright © 2017–2024. All rights reserved.