Package io.debezium.relational.ddl
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 Summary
Fields Modifier and Type Field Description private String
databaseName
private int
order
private String
value
private String
variableName
-
Constructor Summary
Constructors Constructor Description SetVariableEvent(String variableName, String value, String currentDatabaseName, int order, String ddlStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
databaseName()
int
order()
In case of multiple vars set in the same SET statement the order of the variable in the statement.String
toString()
String
variableName()
Get the name of the variable that was set.String
variableValue()
Get the value of the variable that was set.-
Methods inherited from class io.debezium.relational.ddl.DdlParserListener.Event
statement, type
-
-
-
-
Method Detail
-
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
-
-