Class BinlogTestConnection
java.lang.Object
io.debezium.jdbc.JdbcConnection
io.debezium.connector.binlog.util.BinlogTestConnection
- All Implemented Interfaces:
AutoCloseable
- Author:
- Chris Cranford
-
Nested Class Summary
Nested classes/interfaces inherited from class io.debezium.jdbc.JdbcConnection
JdbcConnection.BlockingMultiResultSetConsumer, JdbcConnection.BlockingResultSetConsumer, JdbcConnection.CallPreparer, JdbcConnection.ConnectionFactory, JdbcConnection.MultiResultSetConsumer, JdbcConnection.Operations, JdbcConnection.ParameterResultSetConsumer, JdbcConnection.ResultSetConsumer, JdbcConnection.ResultSetExtractor<T extends Object>, JdbcConnection.ResultSetMapper<T extends Object>, JdbcConnection.StatementFactory, JdbcConnection.StatementPreparer -
Constructor Summary
ConstructorsConstructorDescriptionBinlogTestConnection(JdbcConfiguration config, JdbcConnection.ConnectionFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionprotected static JdbcConfigurationaddDefaultSettings(JdbcConfiguration configuration) abstract StringcurrentDateTimeDefaultOptional(String isoString) Get the current date time default valueprotected static JdbcConfiguration.BuildergetDefaultJdbcConfig(String databaseName) protected static JdbcConfiguration.BuildergetReplicaJdbcConfig(String databaseName) abstract booleanabstract booleanabstract booleanReturns whether the database is MariaDB.abstract booleanisMySQL5()Return whether the database is MySQL.abstract booleanReturns whether the database is Percona.booleanabstract voidSet the binlog compression off.abstract voidSet the binlog compression on.abstract voidSet the binlog row query events off.abstract voidSet the binlog row query events on.Methods inherited from class io.debezium.jdbc.JdbcConnection
buildSelectWithRowLimits, call, chunkQueryBuilder, close, commit, config, connect, connection, connection, connectionString, createTableId, database, escapeEscapeSequence, execute, execute, executeWithoutCommitting, getAttributeDetails, getColumnsDetails, getColumnValue, getCurrentTimestamp, getQualifiedTableName, isConnected, isNullable, isTableType, isTableUniqueIndexIncluded, isValid, loadKeyStore, nullsSortLast, overrideColumn, parseSqlStatementString, patternBasedFactory, patternBasedFactory, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQueryAndMap, prepareQueryWithBlockingConsumer, prepareUpdate, print, print, query, query, queryAndMap, queryAndMap, querySingleValue, queryWithBlockingConsumer, quotedColumnIdString, quotedTableIdString, readAllCatalogNames, readAllSchemaNames, readAllTableNames, readPrimaryKeyNames, readPrimaryKeyOrUniqueIndexNames, readSchema, readTableColumn, readTableNames, readTablePreparedStatement, readTableStatement, readTableUniqueIndices, reselectColumns, reselectColumns, resolveCatalogName, resolveJdbcType, resolveNativeType, rollback, rowToArray, setAutoCommit, setQueryColumnValue, singleResultMapper, supportedTableTypes, tableTypes, username
-
Constructor Details
-
BinlogTestConnection
-
-
Method Details
-
isTableIdCaseSensitive
public boolean isTableIdCaseSensitive()- Returns:
- true if table names are case-sensitive, false otherwise
-
getMySqlVersionString
-
isGtidEnabled
public abstract boolean isGtidEnabled() -
isMariaDb
public abstract boolean isMariaDb()Returns whether the database is MariaDB.- Returns:
- true if MariaDB, false otherwise.
-
isMySQL5
public abstract boolean isMySQL5()Return whether the database is MySQL.- Returns:
- true if is MySQL 5, false otherwise.
-
isPercona
public abstract boolean isPercona()Returns whether the database is Percona.- Returns:
- true if Percona, false otherwise.
-
currentDateTimeDefaultOptional
Get the current date time default value- Parameters:
isoString- the ISO string value- Returns:
- the default value
-
setBinlogCompressionOff
Set the binlog compression off.- Throws:
SQLException- if a database exception occurs.
-
setBinlogCompressionOn
Set the binlog compression on.- Throws:
SQLException- if a database exception occurs.
-
setBinlogRowQueryEventsOff
Set the binlog row query events off.- Throws:
SQLException- if a database exception occurs.
-
setBinlogRowQueryEventsOn
Set the binlog row query events on.- Throws:
SQLException- if a database exception occurs.
-
isCurrentDateTimeDefaultGenerated
public abstract boolean isCurrentDateTimeDefaultGenerated()- Returns:
- whether the current date time defaults as generated
-
addDefaultSettings
-
getDefaultJdbcConfig
-
getReplicaJdbcConfig
-