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

public Class UpdateSpec

extends Object
Class Inheritance
Imports
com.mysql.cj.Messages, com.mysql.cj.x.protobuf.MysqlxCrud.UpdateOperation, .MysqlxExpr.ColumnIdentifier, .MysqlxExpr.Expr

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.

Field Summary

Modifier and TypeField and Description
private MysqlxExpr.ColumnIdentifier
private MysqlxCrud.UpdateOperation.UpdateType
private MysqlxExpr.Expr

Constructor Summary

AccessConstructor and Description
public
UpdateSpec(UpdateType
update operation type
updateType
)

Constructor.

public
UpdateSpec(UpdateType
update operation type
updateType
,
String
document path expression
source
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

X Protocol MysqlxExpr.ColumnIdentifier
getSource
()

Get X Protocol ColumnIdentifier.

public Object

Returns:

X Protocol UpdateOperation.UpdateType
getUpdateType
()

Get X Protocol update type.

public Object

Returns:

X Protocol MysqlxExpr.Expr
getValue
()

Get X Protocol value expression.

public UpdateSpec

Returns:

this UpdateSpec
setValue
(Object
value expression
value
)

Set value to be set by this update operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

sourceback to summary
private MysqlxExpr.ColumnIdentifier source
updateTypeback to summary
private MysqlxCrud.UpdateOperation.UpdateType updateType
valueback to summary
private MysqlxExpr.Expr value

Constructor Detail

UpdateSpecback to summary
public UpdateSpec(UpdateType updateType)

Constructor.

Parameters
updateType:UpdateType

update operation type

UpdateSpecback to summary
public UpdateSpec(UpdateType updateType, String source)

Constructor.

Parameters
updateType:UpdateType

update operation type

source:String

document path expression

Method Detail

getSourceback to summary
public Object getSource()

Get X Protocol ColumnIdentifier.

Returns:Object

X Protocol MysqlxExpr.ColumnIdentifier

getUpdateTypeback to summary
public Object getUpdateType()

Get X Protocol update type.

Returns:Object

X Protocol UpdateOperation.UpdateType

getValueback to summary
public Object getValue()

Get X Protocol value expression.

Returns:Object

X Protocol MysqlxExpr.Expr

setValueback to summary
public UpdateSpec setValue(Object value)

Set value to be set by this update operation.

Parameters
value:Object

value expression

Returns:UpdateSpec

this UpdateSpec