Package com.mysql.cj.xdevapi
Class UpdateParams
java.lang.Object
com.mysql.cj.xdevapi.UpdateParams
public class UpdateParams
extends java.lang.Object
Class collecting parameters for
Table.update()
.-
Constructor Summary
Constructors Constructor Description UpdateParams()
-
Method Summary
Modifier and Type Method Description void
addUpdate(java.lang.String path, java.lang.Object value)
Add update parameter.java.lang.Object
getUpdates()
Get update parameters map.void
setUpdates(java.util.Map<java.lang.String,java.lang.Object> updates)
Fill update parameters from field -> value_expression map.
-
Constructor Details
-
UpdateParams
public UpdateParams()
-
-
Method Details
-
setUpdates
public void setUpdates(java.util.Map<java.lang.String,java.lang.Object> updates)Fill update parameters from field -> value_expression map.- Parameters:
updates
- field -> value_expression map
-
addUpdate
public void addUpdate(java.lang.String path, java.lang.Object value)Add update parameter.- Parameters:
path
- field namevalue
- value expression
-
getUpdates
public java.lang.Object getUpdates()Get update parameters map.- Returns:
- X Protocol ColumnIdentifier->Expr map.
-