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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UpdateSpec

      public UpdateSpec​(UpdateType updateType, java.lang.String source)
      Constructor.
      Parameters:
      updateType - update operation type
      source - 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

      public UpdateSpec setValue​(java.lang.Object value)
      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