Package io.debezium.relational.ddl
Class DdlParserListener.DatabaseAlteredEvent
- java.lang.Object
-
- io.debezium.relational.ddl.DdlParserListener.Event
-
- io.debezium.relational.ddl.DdlParserListener.DatabaseEvent
-
- io.debezium.relational.ddl.DdlParserListener.DatabaseAlteredEvent
-
- Enclosing interface:
- DdlParserListener
@Immutable public static class DdlParserListener.DatabaseAlteredEvent extends DdlParserListener.DatabaseEvent
An event describing the altering of a database.
-
-
Field Summary
Fields Modifier and Type Field Description private String
previousDatabaseName
-
Constructor Summary
Constructors Constructor Description DatabaseAlteredEvent(String databaseName, String previousDatabaseName, String ddlStatement)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
previousDatabaseName()
If the table was renamed, then get the old identifier of the table before it was renamed.String
toString()
-
Methods inherited from class io.debezium.relational.ddl.DdlParserListener.DatabaseEvent
databaseName
-
Methods inherited from class io.debezium.relational.ddl.DdlParserListener.Event
statement, type
-
-
-
-
Field Detail
-
previousDatabaseName
private final String previousDatabaseName
-
-
Method Detail
-
previousDatabaseName
public String previousDatabaseName()
If the table was renamed, then get the old identifier of the table before it was renamed.- Returns:
- the table's previous identifier; may be null if the alter did not affect the table's identifier
-
toString
public String toString()
- Overrides:
toString
in classDdlParserListener.DatabaseEvent
-
-