Package com.mysql.cj.xdevapi
Interface UpdateStatement
- All Superinterfaces:
Statement<UpdateStatement,Result>
- All Known Implementing Classes:
UpdateStatementImpl
public interface UpdateStatement extends Statement<UpdateStatement,Result>
A statement representing a set of row modifications.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mysql.cj.xdevapi.Statement
Statement.LockContention -
Method Summary
Modifier and Type Method Description UpdateStatementlimit(long numberOfRows)Add/replace the row limit for this statement.UpdateStatementorderBy(java.lang.String... sortFields)Add/replace the order specification for this statement.UpdateStatementset(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.UpdateStatementset(java.util.Map<java.lang.String,java.lang.Object> fieldsAndValues)Add the given set of updates to the statement.UpdateStatementwhere(java.lang.String searchCondition)Add/replace the search criteria for this statement.Methods inherited from interface com.mysql.cj.xdevapi.Statement
bind, bind, bind, bind, clearBindings, execute, executeAsync
-
Method Details
-
set
Add the given set of updates to the statement.- Parameters:
fieldsAndValues- table name-value pairs- Returns:
UpdateStatement
-
set
Add the given update to the statement setting field to value for all rows matching the search criteria.- Parameters:
field- field namevalue- value to set- Returns:
UpdateStatement
-
where
Add/replace the search criteria for this statement.- Parameters:
searchCondition- search condition expression- Returns:
UpdateStatement
-
orderBy
Add/replace the order specification for this statement.- Parameters:
sortFields- sort expression- Returns:
UpdateStatement
-
limit
Add/replace the row limit for this statement.- Parameters:
numberOfRows- limit- Returns:
UpdateStatement
-