Class LogMinerDatabaseStateWriter

java.lang.Object
io.debezium.connector.oracle.logminer.LogMinerDatabaseStateWriter

public class LogMinerDatabaseStateWriter extends Object
Utility class that can write the contents of several Oracle LogMiner tables to the connector's log if and only if DEBUG logging is enabled.
Author:
Chris Cranford
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
  • Constructor Details

    • LogMinerDatabaseStateWriter

      public LogMinerDatabaseStateWriter()
  • Method Details

    • write

      public static void write(OracleConnection connection)
    • logQueryResults

      private static void logQueryResults(OracleConnection connection, String query) throws SQLException
      Helper method that dumps the result set of an arbitrary SQL query to the connector's logs.
      Parameters:
      connection - the database connection
      query - the query to execute
      Throws:
      SQLException - thrown if an exception occurs performing a SQL operation