Top Description Methods
com.mysql.cj.xdevapi

public Interface UpdateStatement

extends Statement<UpdateStatement, Result>
Known Direct Implementers
com.mysql.cj.xdevapi.UpdateStatementImpl
Imports
java.util.Map

A statement representing a set of row modifications.

Method Summary

Modifier and TypeMethod and Description
public UpdateStatement
limit(long
limit
numberOfRows
)

Add/replace the row limit for this statement.

public UpdateStatement
orderBy(String...
sort expression
sortFields
)

Add/replace the order specification for this statement.

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

Add the given set of updates to the statement.

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

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

public UpdateStatement
where(String
search condition expression
searchCondition
)

Add/replace the search criteria for this statement.

Inherited from com.mysql.cj.xdevapi.Statement:
bindbindbindbindclearBindingsexecuteexecuteAsync

Method Detail

limitback to summary
public UpdateStatement limit(long numberOfRows)

Add/replace the row limit for this statement.

Parameters
numberOfRows:long

limit

Returns:UpdateStatement

UpdateStatement

orderByback to summary
public UpdateStatement orderBy(String... sortFields)

Add/replace the order specification for this statement.

Parameters
sortFields:String[]

sort expression

Returns:UpdateStatement

UpdateStatement

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

Add the given set of updates to the statement.

Parameters
fieldsAndValues:Map<String, Object>

table name-value pairs

Returns:UpdateStatement

UpdateStatement

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

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

whereback to summary
public UpdateStatement where(String searchCondition)

Add/replace the search criteria for this statement.

Parameters
searchCondition:String

search condition expression

Returns:UpdateStatement

UpdateStatement