Class DdlParserListener.SetVariableEvent

java.lang.Object
io.debezium.relational.ddl.DdlParserListener.Event
io.debezium.relational.ddl.DdlParserListener.SetVariableEvent
Enclosing interface:
DdlParserListener

@Immutable public static class DdlParserListener.SetVariableEvent extends DdlParserListener.Event
An event describing the setting of a variable.
  • Field Details

    • variableName

      private final String variableName
    • value

      private final String value
    • databaseName

      private final String databaseName
    • order

      private final int order
  • Constructor Details

    • SetVariableEvent

      public SetVariableEvent(String variableName, String value, String currentDatabaseName, int order, String ddlStatement)
  • Method Details

    • variableName

      public String variableName()
      Get the name of the variable that was set.
      Returns:
      the variable name; never null
    • variableValue

      public String variableValue()
      Get the value of the variable that was set.
      Returns:
      the variable value; may be null
    • order

      public int order()
      In case of multiple vars set in the same SET statement the order of the variable in the statement.
      Returns:
      the variable order
    • databaseName

      public Optional<String> databaseName()
    • toString

      public String toString()
      Overrides:
      toString in class Object