Package com.mysql.cj.xdevapi
Class UpdateSpec
java.lang.Object
com.mysql.cj.xdevapi.UpdateSpec
public class UpdateSpec
extends java.lang.Object
Representation of a single update operation in a list of operations to be performed by
ModifyStatement
.
Used internally for transformation of X DevAPI parameters into X Protocol ones.-
Constructor Summary
Constructors Constructor Description UpdateSpec(UpdateType updateType, java.lang.String source)
Constructor. -
Method Summary
Modifier and Type Method Description java.lang.Object
getSource()
Get X Protocol ColumnIdentifier.java.lang.Object
getUpdateType()
Get X Protocol update type.java.lang.Object
getValue()
Get X Protocol value expression.UpdateSpec
setValue(java.lang.Object value)
Set value to be set by this update operation.
-
Constructor Details
-
UpdateSpec
Constructor.- Parameters:
updateType
- update operation typesource
- document path expression
-
-
Method Details
-
getUpdateType
public java.lang.Object getUpdateType()Get X Protocol update type.- Returns:
- X Protocol UpdateOperation.UpdateType
-
getSource
public java.lang.Object getSource()Get X Protocol ColumnIdentifier.- Returns:
- X Protocol MysqlxExpr.ColumnIdentifier
-
setValue
Set value to be set by this update operation.- Parameters:
value
- value expression- Returns:
- this UpdateSpec
-
getValue
public java.lang.Object getValue()Get X Protocol value expression.- Returns:
- X Protocol MysqlxExpr.Expr
-