Class OracleSchemaUtils


  • public class OracleSchemaUtils
    extends Object
    Utilities for converting from debezium Table types to Schema.
    • Method Detail

      • removeQuotes

        public static String removeQuotes​(String text)
        Removes leading and trailing double quote characters from the provided string.

        Oracle table and column names are inherently stored in upper-case; however, if the objects are created using double-quotes, the case of the object name is retained. This method will adhere to those rules and will always return the name in upper-case unless the provided name is double-quoted in which the returned value will have the double-quotes removed and case retained.

        Parameters:
        text - value to have double quotes removed
        Returns:
        string that has had quotes removed
      • toSchema

        public static Schema toSchema​(io.debezium.relational.Table table)
      • toColumn

        public static Column toColumn​(io.debezium.relational.Column column)
      • toDbzTableId

        public static io.debezium.relational.TableId toDbzTableId​(TableId tableId)
      • getSchema

        public static Schema getSchema​(io.debezium.jdbc.JdbcConnection jdbcConnection,
                                       io.debezium.relational.TableId tableId)
      • getTablePks

        public static List<String> getTablePks​(io.debezium.jdbc.JdbcConnection jdbc,
                                               io.debezium.relational.TableId tableId)
      • createOracleConnection

        public static io.debezium.jdbc.JdbcConnection createOracleConnection​(OracleSourceConfig sourceConfig)