接口 UpdateStatement
-
- 所有超级接口:
Statement<UpdateStatement,Result>
- 所有已知实现类:
UpdateStatementImpl
public interface UpdateStatement extends Statement<UpdateStatement,Result>
A statement representing a set of row modifications.
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.mysql.cj.xdevapi.Statement
Statement.LockContention
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 UpdateStatementlimit(long numberOfRows)Add/replace the row limit for this statement.UpdateStatementorderBy(String... sortFields)Add/replace the order specification for 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.UpdateStatementwhere(String searchCondition)Add/replace the search criteria for this statement.-
从接口继承的方法 com.mysql.cj.xdevapi.Statement
bind, bind, bind, bind, clearBindings, execute, executeAsync
-
-
-
-
方法详细资料
-
set
UpdateStatement set(Map<String,Object> fieldsAndValues)
Add the given set of updates to the statement.- 参数:
fieldsAndValues- table name-value pairs- 返回:
UpdateStatement
-
set
UpdateStatement set(String field, Object value)
Add the given update to the statement setting field to value for all rows matching the search criteria.- 参数:
field- field namevalue- value to set- 返回:
UpdateStatement
-
where
UpdateStatement where(String searchCondition)
Add/replace the search criteria for this statement.- 参数:
searchCondition- search condition expression- 返回:
UpdateStatement
-
orderBy
UpdateStatement orderBy(String... sortFields)
Add/replace the order specification for this statement.- 参数:
sortFields- sort expression- 返回:
UpdateStatement
-
limit
UpdateStatement limit(long numberOfRows)
Add/replace the row limit for this statement.- 参数:
numberOfRows- limit- 返回:
UpdateStatement
-
-