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

public Class UpdateParams

extends Object
Class Inheritance
Imports
java.util.HashMap, .Map, com.mysql.cj.x.protobuf.MysqlxExpr.ColumnIdentifier, .MysqlxExpr.Expr

Class collecting parameters for Table#update().

Field Summary

Modifier and TypeField and Description
private Map<MysqlxExpr.ColumnIdentifier, MysqlxExpr.Expr>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addUpdate(String
field name
path
,
Object
value expression
value
)

Add update parameter.

public Object

Returns:

X Protocol ColumnIdentifier->Expr map.
getUpdates
()

Get update parameters map.

public void
setUpdates(Map<String, Object>
field -> value_expression map
updates
)

Fill update parameters from field -> value_expression map.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

updateOpsback to summary
private Map<MysqlxExpr.ColumnIdentifier, MysqlxExpr.Expr> updateOps

Constructor Detail

UpdateParamsback to summary
public UpdateParams()

Method Detail

addUpdateback to summary
public void addUpdate(String path, Object value)

Add update parameter.

Parameters
path:String

field name

value:Object

value expression

getUpdatesback to summary
public Object getUpdates()

Get update parameters map.

Returns:Object

X Protocol ColumnIdentifier->Expr map.

setUpdatesback to summary
public void setUpdates(Map<String, Object> updates)

Fill update parameters from field -> value_expression map.

Parameters
updates:Map<String, Object>

field -> value_expression map