Top Description Fields Constructors Methods
com.mysql.cj.xdevapi

public Class UpdateStatementImpl

extends FilterableStatement<UpdateStatement, Result>
implements UpdateStatement
Class Inheritance
All Implemented Interfaces
com.mysql.cj.xdevapi.UpdateStatement, com.mysql.cj.xdevapi.Statement
Imports
java.util.Map, java.util.concurrent.CompletableFuture, com.mysql.cj.MysqlxSession, com.mysql.cj.protocol.x.XMessage, .XMessageBuilder

UpdateStatement implementation.

Field Summary

Modifier and TypeField and Description
private UpdateParams
Inherited from com.mysql.cj.xdevapi.FilterableStatement:
filterParams

Constructor Summary

AccessConstructor and Description
pack-priv
UpdateStatementImpl(MysqlxSession mysqlxSession, String schema, String table)

Method Summary

Modifier and TypeMethod and Description
public CompletableFuture<Result>
executeAsync()

Implements com.mysql.cj.xdevapi.Statement.executeAsync.

Execute the statement asynchronously.

protected Result
executePreparedStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executePreparedStatement.

Executes a previously server-prepared statement.

protected Result
executeStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executeStatement.

Executes the statement directly (non-prepared).

protected XMessage
getPrepareStatementXMessage()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.getPrepareStatementXMessage.

Returns the XMessage needed to prepare this statement.

public UpdateStatement
set(Map<String, Object>
table name-value pairs
fieldsAndValues
)

Implements com.mysql.cj.xdevapi.UpdateStatement.set.

Add the given set of updates to the statement.

public UpdateStatement
set(String
field name
field
,
Object
value to set
value
)

Implements com.mysql.cj.xdevapi.UpdateStatement.set.

Add the given update to the statement setting field to value for all rows matching the search criteria.

Inherited from com.mysql.cj.xdevapi.FilterableStatement:
bindclearBindingsisRelationallimitoffsetorderBysortwhere

Field Detail

updateParamsback to summary
private UpdateParams updateParams

Constructor Detail

UpdateStatementImplback to summary
pack-priv UpdateStatementImpl(MysqlxSession mysqlxSession, String schema, String table)

Method Detail

executeAsyncback to summary
public CompletableFuture<Result> executeAsync()

Implements com.mysql.cj.xdevapi.Statement.executeAsync.

Doc from com.mysql.cj.xdevapi.Statement.executeAsync.

Execute the statement asynchronously.

Returns:CompletableFuture<Result>

CompletableFuture for result

Annotations
@Override
executePreparedStatementback to summary
protected Result executePreparedStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executePreparedStatement.

Doc from com.mysql.cj.xdevapi.PreparableStatement.executePreparedStatement.

Executes a previously server-prepared statement. Implementation is dependent on the statement type.

Returns:Result

the object returned from the lower level statement execution

Annotations
@Override
executeStatementback to summary
protected Result executeStatement()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.executeStatement.

Doc from com.mysql.cj.xdevapi.PreparableStatement.executeStatement.

Executes the statement directly (non-prepared). Implementation is dependent on the statement type.

Returns:Result

the object returned from the lower level statement execution

Annotations
@Override
getPrepareStatementXMessageback to summary
protected XMessage getPrepareStatementXMessage()

Implements abstract com.mysql.cj.xdevapi.PreparableStatement.getPrepareStatementXMessage.

Doc from com.mysql.cj.xdevapi.PreparableStatement.getPrepareStatementXMessage.

Returns the XMessage needed to prepare this statement. Implementation is dependent on the statement type.

Returns:XMessage

the XMessage that prepares this statement

Annotations
@Override
setback to summary
public UpdateStatement set(Map<String, Object> fieldsAndValues)

Implements com.mysql.cj.xdevapi.UpdateStatement.set.

Doc from com.mysql.cj.xdevapi.UpdateStatement.set.

Add the given set of updates to the statement.

Parameters
fieldsAndValues:Map<String, Object>

table name-value pairs

Returns:UpdateStatement

UpdateStatement

Annotations
@Override
setback to summary
public UpdateStatement set(String field, Object value)

Implements com.mysql.cj.xdevapi.UpdateStatement.set.

Doc from com.mysql.cj.xdevapi.UpdateStatement.set.

Add the given update to the statement setting field to value for all rows matching the search criteria.

Parameters
field:String

field name

value:Object

value to set

Returns:UpdateStatement

UpdateStatement

Annotations
@Override