类 UpdateStatementImpl
- java.lang.Object
-
- com.mysql.cj.xdevapi.PreparableStatement<RES_T>
-
- com.mysql.cj.xdevapi.FilterableStatement<UpdateStatement,Result>
-
- com.mysql.cj.xdevapi.UpdateStatementImpl
-
- 所有已实现的接口:
Statement<UpdateStatement,Result>,UpdateStatement
public class UpdateStatementImpl extends FilterableStatement<UpdateStatement,Result> implements UpdateStatement
UpdateStatementimplementation.
-
-
嵌套类概要
-
从类继承的嵌套类/接口 com.mysql.cj.xdevapi.PreparableStatement
PreparableStatement.PreparableStatementFinalizer, PreparableStatement.PreparedState
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
字段概要
-
从类继承的字段 com.mysql.cj.xdevapi.FilterableStatement
filterParams
-
从类继承的字段 com.mysql.cj.xdevapi.PreparableStatement
mysqlxSession, preparedState, preparedStatementId
-
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CompletableFuture<Result>executeAsync()Execute the statement asynchronously.protected ResultexecutePreparedStatement()Executes a previously server-prepared statement.protected ResultexecuteStatement()Executes the statement directly (non-prepared).protected XMessagegetPrepareStatementXMessage()Returns theXMessageneeded to prepare this statement.UpdateStatementset(String field, Object value)Add the given update to the statement setting field to value for all rows matching the search criteria.UpdateStatementset(Map<String,Object> fieldsAndValues)Add the given set of updates to the statement.-
从类继承的方法 com.mysql.cj.xdevapi.FilterableStatement
bind, clearBindings, isRelational, limit, offset, orderBy, sort, where
-
从类继承的方法 com.mysql.cj.xdevapi.PreparableStatement
deallocatePrepared, execute, getMessageBuilder, resetPrepareState, setReprepareState
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 com.mysql.cj.xdevapi.UpdateStatement
limit, orderBy, where
-
-
-
-
方法详细资料
-
executeStatement
protected Result executeStatement()
从类复制的说明:PreparableStatementExecutes the statement directly (non-prepared). Implementation is dependent on the statement type.- 指定者:
executeStatement在类中PreparableStatement<Result>- 返回:
- the object returned from the lower level statement execution
-
getPrepareStatementXMessage
protected XMessage getPrepareStatementXMessage()
从类复制的说明:PreparableStatementReturns theXMessageneeded to prepare this statement. Implementation is dependent on the statement type.- 指定者:
getPrepareStatementXMessage在类中PreparableStatement<Result>- 返回:
- the
XMessagethat prepares this statement
-
executePreparedStatement
protected Result executePreparedStatement()
从类复制的说明:PreparableStatementExecutes a previously server-prepared statement. Implementation is dependent on the statement type.- 指定者:
executePreparedStatement在类中PreparableStatement<Result>- 返回:
- the object returned from the lower level statement execution
-
executeAsync
public CompletableFuture<Result> executeAsync()
从接口复制的说明:StatementExecute the statement asynchronously.- 指定者:
executeAsync在接口中Statement<UpdateStatement,Result>- 返回:
CompletableFuturefor result
-
set
public UpdateStatement set(Map<String,Object> fieldsAndValues)
从接口复制的说明:UpdateStatementAdd the given set of updates to the statement.- 指定者:
set在接口中UpdateStatement- 参数:
fieldsAndValues- table name-value pairs- 返回:
UpdateStatement
-
set
public UpdateStatement set(String field, Object value)
从接口复制的说明:UpdateStatementAdd the given update to the statement setting field to value for all rows matching the search criteria.- 指定者:
set在接口中UpdateStatement- 参数:
field- field namevalue- value to set- 返回:
UpdateStatement
-
-