public class UpdateStatementImpl extends FilterableStatement<UpdateStatement,Result> implements UpdateStatement
UpdateStatement implementation.PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedStateStatement.LockContentionfilterParamsmysqlxSession, 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, wheredeallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlimit, orderBy, whereprotected Result executeStatement()
PreparableStatementexecuteStatement in class PreparableStatement<Result>protected XMessage getPrepareStatementXMessage()
PreparableStatementXMessage needed to prepare this statement. Implementation is dependent on the statement type.getPrepareStatementXMessage in class PreparableStatement<Result>XMessage that prepares this statementprotected Result executePreparedStatement()
PreparableStatementexecutePreparedStatement in class PreparableStatement<Result>public java.util.concurrent.CompletableFuture<Result> executeAsync()
StatementexecuteAsync in interface Statement<UpdateStatement,Result>CompletableFuture for resultpublic UpdateStatement set(java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues)
UpdateStatementset in interface UpdateStatementfieldsAndValues - table name-value pairsUpdateStatementpublic UpdateStatement set(java.lang.String field, java.lang.Object value)
UpdateStatementset in interface UpdateStatementfield - field namevalue - value to setUpdateStatement