Package com.mysql.cj.xdevapi
Class UpdateStatementImpl
java.lang.Object
com.mysql.cj.xdevapi.PreparableStatement<RES_T>
com.mysql.cj.xdevapi.FilterableStatement<UpdateStatement,Result>
com.mysql.cj.xdevapi.UpdateStatementImpl
- All Implemented Interfaces:
Statement<UpdateStatement,Result>
,UpdateStatement
public class UpdateStatementImpl extends FilterableStatement<UpdateStatement,Result> implements UpdateStatement
UpdateStatement
implementation.-
Nested Class Summary
Nested classes/interfaces inherited from class com.mysql.cj.xdevapi.PreparableStatement
PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
Nested classes/interfaces inherited from interface com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
Field Summary
Fields inherited from class com.mysql.cj.xdevapi.PreparableStatement
mysqlxSession, preparedState, preparedStatementId
-
Method Summary
Modifier and Type Method 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 theXMessage
needed to prepare this 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.UpdateStatement
set(java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues)
Add the given set of updates to the statement.Methods inherited from class com.mysql.cj.xdevapi.FilterableStatement
bind, clearBindings, isRelational, limit, offset, orderBy, sort, where
Methods inherited from class com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
executeStatement
Description copied from class:PreparableStatement
Executes the statement directly (non-prepared). Implementation is dependent on the statement type.- Specified by:
executeStatement
in classPreparableStatement<Result>
- Returns:
- the object returned from the lower level statement execution
-
getPrepareStatementXMessage
Description copied from class:PreparableStatement
Returns theXMessage
needed to prepare this statement. Implementation is dependent on the statement type.- Specified by:
getPrepareStatementXMessage
in classPreparableStatement<Result>
- Returns:
- the
XMessage
that prepares this statement
-
executePreparedStatement
Description copied from class:PreparableStatement
Executes a previously server-prepared statement. Implementation is dependent on the statement type.- Specified by:
executePreparedStatement
in classPreparableStatement<Result>
- Returns:
- the object returned from the lower level statement execution
-
executeAsync
Description copied from interface:Statement
Execute the statement asynchronously.- Specified by:
executeAsync
in interfaceStatement<UpdateStatement,Result>
- Returns:
CompletableFuture
for result
-
set
Description copied from interface:UpdateStatement
Add the given set of updates to the statement.- Specified by:
set
in interfaceUpdateStatement
- Parameters:
fieldsAndValues
- table name-value pairs- Returns:
UpdateStatement
-
set
Description copied from interface:UpdateStatement
Add the given update to the statement setting field to value for all rows matching the search criteria.- Specified by:
set
in interfaceUpdateStatement
- Parameters:
field
- field namevalue
- value to set- Returns:
UpdateStatement
-