public class UpdateStatementImpl extends FilterableStatement<UpdateStatement,Result> implements UpdateStatement
UpdateStatement
implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
Statement.LockContention
filterParams
mysqlxSession, preparedState, preparedStatementId
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<Result> |
executeAsync()
Execute the statement asynchronously.
|
protected Result |
executePreparedStatement()
Executes a previously server-prepared statement.
|
protected Result |
executeStatement()
Executes the statement directly (non-prepared).
|
protected XMessage |
getPrepareStatementXMessage()
Returns the
XMessage needed to prepare this statement. |
UpdateStatement |
set(java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues)
Add the given set of updates to the statement.
|
UpdateStatement |
set(java.lang.String field,
java.lang.Object value)
Add the given update to the statement setting field to value for all rows matching the search criteria.
|
bind, clearBindings, isRelational, limit, offset, orderBy, sort, where
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
limit, orderBy, where
protected Result executeStatement()
PreparableStatement
executeStatement
in class PreparableStatement<Result>
protected XMessage getPrepareStatementXMessage()
PreparableStatement
XMessage
needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage
in class PreparableStatement<Result>
XMessage
that prepares this statementprotected Result executePreparedStatement()
PreparableStatement
executePreparedStatement
in class PreparableStatement<Result>
public java.util.concurrent.CompletableFuture<Result> executeAsync()
Statement
executeAsync
in interface Statement<UpdateStatement,Result>
CompletableFuture
for resultpublic UpdateStatement set(java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues)
UpdateStatement
set
in interface UpdateStatement
fieldsAndValues
- table name-value pairsUpdateStatement
public UpdateStatement set(java.lang.String field, java.lang.Object value)
UpdateStatement
set
in interface UpdateStatement
field
- field namevalue
- value to setUpdateStatement