public class UpdateWithOptions<ENTITY> extends AbstractOptionsForCRUDUpdate<UpdateWithOptions<ENTITY>> implements MutationAction, StatementProvider
ifExists, insertStrategy, lwtResultListeners| Constructor and Description |
|---|
UpdateWithOptions(AbstractEntityProperty<ENTITY> meta,
RuntimeEngine rte,
ENTITY instance,
boolean updateStatic,
Optional<CassandraOptions> cassandraOptions) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ExecutionInfo> |
executeAsyncWithStats()
Execute the INSERT/UPDATE/DELETE action asynchronously
and return a
CompletableFuture
of ExecutionInfo object. |
BoundStatement |
generateAndGetBoundStatement()
1.
|
List<Object> |
getBoundValues()
Return the provided raw (not yet encoded) bound values
OR extract the raw bound values from a given entity
|
List<Object> |
getEncodedBoundValues()
Return the provided encoded bound values
OR extract the raw bound values from a given entity
and encode them
|
protected CassandraOptions |
getOptions() |
String |
getStatementAsString()
Generate the statement as plain text
|
protected UpdateWithOptions<ENTITY> |
getThis() |
getOverridenStrategy, ifExists, ifExists, usingTimestamp, usingTimeToLive, withLwtResultListener, withLwtResultListenersisIdempotent, isIdempotent, withConsistencyLevel, withDMLResultsDisplaySize, withFetchSize, withOptionalConsistencyLevel, withOptionalOutgoingPayload, withOptionalPagingState, withOptionalPagingStateString, withOptionalRetryPolicy, withOptionalSerialConsistencyLevel, withOutgoingPayload, withPagingState, withPagingState, withReadTimeoutInMillis, withResultSetAsyncListener, withResultSetAsyncListeners, withRetryPolicy, withRowAsyncListener, withRowAsyncListeners, withSerialConsistencyLevel, withTracing, withTracingclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, executeAsync, executeWithStatsextractCauseFromExecutionExceptionpublic UpdateWithOptions(AbstractEntityProperty<ENTITY> meta, RuntimeEngine rte, ENTITY instance, boolean updateStatic, Optional<CassandraOptions> cassandraOptions)
public CompletableFuture<ExecutionInfo> executeAsyncWithStats()
MutationActionCompletableFuture
of ExecutionInfo object.executeAsyncWithStats in interface MutationActionprotected CassandraOptions getOptions()
getOptions in class AbstractOptionsForSelect<UpdateWithOptions<ENTITY>>public BoundStatement generateAndGetBoundStatement()
StatementProvidergenerateAndGetBoundStatement in interface StatementProviderpublic String getStatementAsString()
StatementProvidergetStatementAsString in interface StatementProviderpublic List<Object> getBoundValues()
StatementProvidergetBoundValues in interface StatementProviderpublic List<Object> getEncodedBoundValues()
StatementProvidergetEncodedBoundValues in interface StatementProviderprotected UpdateWithOptions<ENTITY> getThis()
getThis in class AbstractOptionsForSelect<UpdateWithOptions<ENTITY>>Copyright © 2012-2021. All Rights Reserved.