类 UpdateSpec


  • public class UpdateSpec
    extends 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.
    • 构造器详细资料

      • UpdateSpec

        public UpdateSpec​(UpdateType updateType,
                          String source)
        Constructor.
        参数:
        updateType - update operation type
        source - document path expression
    • 方法详细资料

      • getUpdateType

        public Object getUpdateType()
        Get X Protocol update type.
        返回:
        X Protocol UpdateOperation.UpdateType
      • getSource

        public Object getSource()
        Get X Protocol ColumnIdentifier.
        返回:
        X Protocol MysqlxExpr.ColumnIdentifier
      • setValue

        public UpdateSpec setValue​(Object value)
        Set value to be set by this update operation.
        参数:
        value - value expression
        返回:
        this UpdateSpec
      • getValue

        public Object getValue()
        Get X Protocol value expression.
        返回:
        X Protocol MysqlxExpr.Expr