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 Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description LogMinerDatabaseStateWriter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidlogQueryResults(OracleConnection connection, String query)Helper method that dumps the result set of an arbitrary SQL query to the connector's logs.static voidwrite(OracleConnection connection)
-
-
-
Method Detail
-
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 connectionquery- the query to execute- Throws:
SQLException- thrown if an exception occurs performing a SQL operation
-
-