public class ParserUtils extends Object
| Modifier | Constructor and Description |
|---|---|
private |
ParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cloneOldToNewColumnValues(Map<String,LogMinerColumnValueWrapper> newColumnValues,
Map<String,LogMinerColumnValueWrapper> oldColumnValues,
io.debezium.relational.Table table)
Initialize new column values with old column values.
|
static Object |
convertValueToSchemaType(io.debezium.relational.Column column,
Object value,
OracleChangeRecordValueConverter converters)
This converts the given value to the appropriate object.
|
static String |
getColumnName(io.debezium.ddl.parser.oracle.generated.PlSqlParser.Column_nameContext ctx)
This method returns pure column name without quotes
|
(package private) static String |
getTableName(io.debezium.ddl.parser.oracle.generated.PlSqlParser.Tableview_nameContext tableview_name)
Obtains the table name
|
static String |
removeApostrophes(String text)
In some cases values of the parsed expression are enclosed in apostrophes.
|
static String |
replaceDoubleBackSlashes(String text)
this is to handle cases when a record contains escape character(s)
|
static String |
stripeAlias(String text,
String alias)
this method stripes table alias and dot give string
|
static String |
stripeQuotes(String text)
stripes double quotes that surrounds a string
|
public static String getColumnName(io.debezium.ddl.parser.oracle.generated.PlSqlParser.Column_nameContext ctx)
ctx - column name contextpublic static String stripeQuotes(String text)
text - textpublic static String stripeAlias(String text, String alias)
text - string with possible aliasalias - table aliaspublic static void cloneOldToNewColumnValues(Map<String,LogMinerColumnValueWrapper> newColumnValues, Map<String,LogMinerColumnValueWrapper> oldColumnValues, io.debezium.relational.Table table)
newColumnValues - values to set or insertoldColumnValues - values in WHERE clausetable - Debezium Table objectpublic static Object convertValueToSchemaType(io.debezium.relational.Column column, Object value, OracleChangeRecordValueConverter converters)
column - column Objectvalue - value objectconverters - given converterpublic static String removeApostrophes(String text)
text - supplied value which might be enclosed by apostrophes.public static String replaceDoubleBackSlashes(String text)
text - before parsing we replaced it with double escape, now revert it backstatic String getTableName(io.debezium.ddl.parser.oracle.generated.PlSqlParser.Tableview_nameContext tableview_name)
tableview_name - table view contextCopyright © 2021 JBoss by Red Hat. All rights reserved.