org.apache.camel.component.debezium.DebeziumMySqlComponentConfigurer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-debezium-mysql Show documentation
Show all versions of camel-debezium-mysql Show documentation
Camel Debezium MySQL support
/* Generated by camel build tools - do NOT edit this file! */
package org.apache.camel.component.debezium;
import java.util.Map;
import org.apache.camel.CamelContext;
import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
import org.apache.camel.spi.PropertyConfigurerGetter;
import org.apache.camel.spi.ConfigurerStrategy;
import org.apache.camel.spi.GeneratedPropertyConfigurer;
import org.apache.camel.util.CaseInsensitiveMap;
import org.apache.camel.support.component.PropertyConfigurerSupport;
/**
* Generated by camel build tools - do NOT edit this file!
*/
@SuppressWarnings("unchecked")
public class DebeziumMySqlComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
private org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration getOrCreateConfiguration(DebeziumMySqlComponent target) {
if (target.getConfiguration() == null) {
target.setConfiguration(new org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration());
}
return target.getConfiguration();
}
@Override
public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
DebeziumMySqlComponent target = (DebeziumMySqlComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "additionalproperties":
case "additionalProperties": getOrCreateConfiguration(target).setAdditionalProperties(property(camelContext, java.util.Map.class, value)); return true;
case "autowiredenabled":
case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
case "bigintunsignedhandlingmode":
case "bigintUnsignedHandlingMode": getOrCreateConfiguration(target).setBigintUnsignedHandlingMode(property(camelContext, java.lang.String.class, value)); return true;
case "binaryhandlingmode":
case "binaryHandlingMode": getOrCreateConfiguration(target).setBinaryHandlingMode(property(camelContext, java.lang.String.class, value)); return true;
case "binlogbuffersize":
case "binlogBufferSize": getOrCreateConfiguration(target).setBinlogBufferSize(property(camelContext, int.class, value)); return true;
case "bridgeerrorhandler":
case "bridgeErrorHandler": target.setBridgeErrorHandler(property(camelContext, boolean.class, value)); return true;
case "columnblacklist":
case "columnBlacklist": getOrCreateConfiguration(target).setColumnBlacklist(property(camelContext, java.lang.String.class, value)); return true;
case "columnexcludelist":
case "columnExcludeList": getOrCreateConfiguration(target).setColumnExcludeList(property(camelContext, java.lang.String.class, value)); return true;
case "columnincludelist":
case "columnIncludeList": getOrCreateConfiguration(target).setColumnIncludeList(property(camelContext, java.lang.String.class, value)); return true;
case "columnpropagatesourcetype":
case "columnPropagateSourceType": getOrCreateConfiguration(target).setColumnPropagateSourceType(property(camelContext, java.lang.String.class, value)); return true;
case "columnwhitelist":
case "columnWhitelist": getOrCreateConfiguration(target).setColumnWhitelist(property(camelContext, java.lang.String.class, value)); return true;
case "configuration": target.setConfiguration(property(camelContext, org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration.class, value)); return true;
case "connectkeepalive":
case "connectKeepAlive": getOrCreateConfiguration(target).setConnectKeepAlive(property(camelContext, boolean.class, value)); return true;
case "connectkeepaliveintervalms":
case "connectKeepAliveIntervalMs": getOrCreateConfiguration(target).setConnectKeepAliveIntervalMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "connecttimeoutms":
case "connectTimeoutMs": getOrCreateConfiguration(target).setConnectTimeoutMs(property(camelContext, int.class, value)); return true;
case "converters": getOrCreateConfiguration(target).setConverters(property(camelContext, java.lang.String.class, value)); return true;
case "databaseexcludelist":
case "databaseExcludeList": getOrCreateConfiguration(target).setDatabaseExcludeList(property(camelContext, java.lang.String.class, value)); return true;
case "databasehistory":
case "databaseHistory": getOrCreateConfiguration(target).setDatabaseHistory(property(camelContext, java.lang.String.class, value)); return true;
case "databasehistoryfilefilename":
case "databaseHistoryFileFilename": getOrCreateConfiguration(target).setDatabaseHistoryFileFilename(property(camelContext, java.lang.String.class, value)); return true;
case "databasehistorykafkabootstrapservers":
case "databaseHistoryKafkaBootstrapServers": getOrCreateConfiguration(target).setDatabaseHistoryKafkaBootstrapServers(property(camelContext, java.lang.String.class, value)); return true;
case "databasehistorykafkaquerytimeoutms":
case "databaseHistoryKafkaQueryTimeoutMs": getOrCreateConfiguration(target).setDatabaseHistoryKafkaQueryTimeoutMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "databasehistorykafkarecoveryattempts":
case "databaseHistoryKafkaRecoveryAttempts": getOrCreateConfiguration(target).setDatabaseHistoryKafkaRecoveryAttempts(property(camelContext, int.class, value)); return true;
case "databasehistorykafkarecoverypollintervalms":
case "databaseHistoryKafkaRecoveryPollIntervalMs": getOrCreateConfiguration(target).setDatabaseHistoryKafkaRecoveryPollIntervalMs(property(camelContext, int.class, value)); return true;
case "databasehistorykafkatopic":
case "databaseHistoryKafkaTopic": getOrCreateConfiguration(target).setDatabaseHistoryKafkaTopic(property(camelContext, java.lang.String.class, value)); return true;
case "databasehistoryskipunparseableddl":
case "databaseHistorySkipUnparseableDdl": getOrCreateConfiguration(target).setDatabaseHistorySkipUnparseableDdl(property(camelContext, boolean.class, value)); return true;
case "databasehistorystoreonlycapturedtablesddl":
case "databaseHistoryStoreOnlyCapturedTablesDdl": getOrCreateConfiguration(target).setDatabaseHistoryStoreOnlyCapturedTablesDdl(property(camelContext, boolean.class, value)); return true;
case "databasehistorystoreonlymonitoredtablesddl":
case "databaseHistoryStoreOnlyMonitoredTablesDdl": getOrCreateConfiguration(target).setDatabaseHistoryStoreOnlyMonitoredTablesDdl(property(camelContext, boolean.class, value)); return true;
case "databasehostname":
case "databaseHostname": getOrCreateConfiguration(target).setDatabaseHostname(property(camelContext, java.lang.String.class, value)); return true;
case "databaseincludelist":
case "databaseIncludeList": getOrCreateConfiguration(target).setDatabaseIncludeList(property(camelContext, java.lang.String.class, value)); return true;
case "databaseinitialstatements":
case "databaseInitialStatements": getOrCreateConfiguration(target).setDatabaseInitialStatements(property(camelContext, java.lang.String.class, value)); return true;
case "databasejdbcdriver":
case "databaseJdbcDriver": getOrCreateConfiguration(target).setDatabaseJdbcDriver(property(camelContext, java.lang.String.class, value)); return true;
case "databasepassword":
case "databasePassword": getOrCreateConfiguration(target).setDatabasePassword(property(camelContext, java.lang.String.class, value)); return true;
case "databaseport":
case "databasePort": getOrCreateConfiguration(target).setDatabasePort(property(camelContext, int.class, value)); return true;
case "databaseserverid":
case "databaseServerId": getOrCreateConfiguration(target).setDatabaseServerId(property(camelContext, long.class, value)); return true;
case "databaseserveridoffset":
case "databaseServerIdOffset": getOrCreateConfiguration(target).setDatabaseServerIdOffset(property(camelContext, long.class, value)); return true;
case "databaseservername":
case "databaseServerName": getOrCreateConfiguration(target).setDatabaseServerName(property(camelContext, java.lang.String.class, value)); return true;
case "databasesslkeystore":
case "databaseSslKeystore": getOrCreateConfiguration(target).setDatabaseSslKeystore(property(camelContext, java.lang.String.class, value)); return true;
case "databasesslkeystorepassword":
case "databaseSslKeystorePassword": getOrCreateConfiguration(target).setDatabaseSslKeystorePassword(property(camelContext, java.lang.String.class, value)); return true;
case "databasesslmode":
case "databaseSslMode": getOrCreateConfiguration(target).setDatabaseSslMode(property(camelContext, java.lang.String.class, value)); return true;
case "databasessltruststore":
case "databaseSslTruststore": getOrCreateConfiguration(target).setDatabaseSslTruststore(property(camelContext, java.lang.String.class, value)); return true;
case "databasessltruststorepassword":
case "databaseSslTruststorePassword": getOrCreateConfiguration(target).setDatabaseSslTruststorePassword(property(camelContext, java.lang.String.class, value)); return true;
case "databaseuser":
case "databaseUser": getOrCreateConfiguration(target).setDatabaseUser(property(camelContext, java.lang.String.class, value)); return true;
case "datatypepropagatesourcetype":
case "datatypePropagateSourceType": getOrCreateConfiguration(target).setDatatypePropagateSourceType(property(camelContext, java.lang.String.class, value)); return true;
case "decimalhandlingmode":
case "decimalHandlingMode": getOrCreateConfiguration(target).setDecimalHandlingMode(property(camelContext, java.lang.String.class, value)); return true;
case "enabletimeadjuster":
case "enableTimeAdjuster": getOrCreateConfiguration(target).setEnableTimeAdjuster(property(camelContext, boolean.class, value)); return true;
case "eventdeserializationfailurehandlingmode":
case "eventDeserializationFailureHandlingMode": getOrCreateConfiguration(target).setEventDeserializationFailureHandlingMode(property(camelContext, java.lang.String.class, value)); return true;
case "eventprocessingfailurehandlingmode":
case "eventProcessingFailureHandlingMode": getOrCreateConfiguration(target).setEventProcessingFailureHandlingMode(property(camelContext, java.lang.String.class, value)); return true;
case "gtidsourceexcludes":
case "gtidSourceExcludes": getOrCreateConfiguration(target).setGtidSourceExcludes(property(camelContext, java.lang.String.class, value)); return true;
case "gtidsourcefilterdmlevents":
case "gtidSourceFilterDmlEvents": getOrCreateConfiguration(target).setGtidSourceFilterDmlEvents(property(camelContext, boolean.class, value)); return true;
case "gtidsourceincludes":
case "gtidSourceIncludes": getOrCreateConfiguration(target).setGtidSourceIncludes(property(camelContext, java.lang.String.class, value)); return true;
case "heartbeatactionquery":
case "heartbeatActionQuery": getOrCreateConfiguration(target).setHeartbeatActionQuery(property(camelContext, java.lang.String.class, value)); return true;
case "heartbeatintervalms":
case "heartbeatIntervalMs": getOrCreateConfiguration(target).setHeartbeatIntervalMs(property(camelContext, int.class, value)); return true;
case "heartbeattopicsprefix":
case "heartbeatTopicsPrefix": getOrCreateConfiguration(target).setHeartbeatTopicsPrefix(property(camelContext, java.lang.String.class, value)); return true;
case "includequery":
case "includeQuery": getOrCreateConfiguration(target).setIncludeQuery(property(camelContext, boolean.class, value)); return true;
case "includeschemachanges":
case "includeSchemaChanges": getOrCreateConfiguration(target).setIncludeSchemaChanges(property(camelContext, boolean.class, value)); return true;
case "includeschemacomments":
case "includeSchemaComments": getOrCreateConfiguration(target).setIncludeSchemaComments(property(camelContext, boolean.class, value)); return true;
case "inconsistentschemahandlingmode":
case "inconsistentSchemaHandlingMode": getOrCreateConfiguration(target).setInconsistentSchemaHandlingMode(property(camelContext, java.lang.String.class, value)); return true;
case "incrementalsnapshotallowschemachanges":
case "incrementalSnapshotAllowSchemaChanges": getOrCreateConfiguration(target).setIncrementalSnapshotAllowSchemaChanges(property(camelContext, boolean.class, value)); return true;
case "incrementalsnapshotchunksize":
case "incrementalSnapshotChunkSize": getOrCreateConfiguration(target).setIncrementalSnapshotChunkSize(property(camelContext, int.class, value)); return true;
case "internalkeyconverter":
case "internalKeyConverter": getOrCreateConfiguration(target).setInternalKeyConverter(property(camelContext, java.lang.String.class, value)); return true;
case "internalvalueconverter":
case "internalValueConverter": getOrCreateConfiguration(target).setInternalValueConverter(property(camelContext, java.lang.String.class, value)); return true;
case "maxbatchsize":
case "maxBatchSize": getOrCreateConfiguration(target).setMaxBatchSize(property(camelContext, int.class, value)); return true;
case "maxqueuesize":
case "maxQueueSize": getOrCreateConfiguration(target).setMaxQueueSize(property(camelContext, int.class, value)); return true;
case "maxqueuesizeinbytes":
case "maxQueueSizeInBytes": getOrCreateConfiguration(target).setMaxQueueSizeInBytes(property(camelContext, long.class, value)); return true;
case "messagekeycolumns":
case "messageKeyColumns": getOrCreateConfiguration(target).setMessageKeyColumns(property(camelContext, java.lang.String.class, value)); return true;
case "minrowcounttostreamresults":
case "minRowCountToStreamResults": getOrCreateConfiguration(target).setMinRowCountToStreamResults(property(camelContext, int.class, value)); return true;
case "offsetcommitpolicy":
case "offsetCommitPolicy": getOrCreateConfiguration(target).setOffsetCommitPolicy(property(camelContext, java.lang.String.class, value)); return true;
case "offsetcommittimeoutms":
case "offsetCommitTimeoutMs": getOrCreateConfiguration(target).setOffsetCommitTimeoutMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "offsetflushintervalms":
case "offsetFlushIntervalMs": getOrCreateConfiguration(target).setOffsetFlushIntervalMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "offsetstorage":
case "offsetStorage": getOrCreateConfiguration(target).setOffsetStorage(property(camelContext, java.lang.String.class, value)); return true;
case "offsetstoragefilename":
case "offsetStorageFileName": getOrCreateConfiguration(target).setOffsetStorageFileName(property(camelContext, java.lang.String.class, value)); return true;
case "offsetstoragepartitions":
case "offsetStoragePartitions": getOrCreateConfiguration(target).setOffsetStoragePartitions(property(camelContext, int.class, value)); return true;
case "offsetstoragereplicationfactor":
case "offsetStorageReplicationFactor": getOrCreateConfiguration(target).setOffsetStorageReplicationFactor(property(camelContext, int.class, value)); return true;
case "offsetstoragetopic":
case "offsetStorageTopic": getOrCreateConfiguration(target).setOffsetStorageTopic(property(camelContext, java.lang.String.class, value)); return true;
case "pollintervalms":
case "pollIntervalMs": getOrCreateConfiguration(target).setPollIntervalMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "providetransactionmetadata":
case "provideTransactionMetadata": getOrCreateConfiguration(target).setProvideTransactionMetadata(property(camelContext, boolean.class, value)); return true;
case "queryfetchsize":
case "queryFetchSize": getOrCreateConfiguration(target).setQueryFetchSize(property(camelContext, int.class, value)); return true;
case "retriablerestartconnectorwaitms":
case "retriableRestartConnectorWaitMs": getOrCreateConfiguration(target).setRetriableRestartConnectorWaitMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "sanitizefieldnames":
case "sanitizeFieldNames": getOrCreateConfiguration(target).setSanitizeFieldNames(property(camelContext, boolean.class, value)); return true;
case "schemanameadjustmentmode":
case "schemaNameAdjustmentMode": getOrCreateConfiguration(target).setSchemaNameAdjustmentMode(property(camelContext, java.lang.String.class, value)); return true;
case "signaldatacollection":
case "signalDataCollection": getOrCreateConfiguration(target).setSignalDataCollection(property(camelContext, java.lang.String.class, value)); return true;
case "skippedoperations":
case "skippedOperations": getOrCreateConfiguration(target).setSkippedOperations(property(camelContext, java.lang.String.class, value)); return true;
case "snapshotdelayms":
case "snapshotDelayMs": getOrCreateConfiguration(target).setSnapshotDelayMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "snapshotfetchsize":
case "snapshotFetchSize": getOrCreateConfiguration(target).setSnapshotFetchSize(property(camelContext, int.class, value)); return true;
case "snapshotincludecollectionlist":
case "snapshotIncludeCollectionList": getOrCreateConfiguration(target).setSnapshotIncludeCollectionList(property(camelContext, java.lang.String.class, value)); return true;
case "snapshotlocktimeoutms":
case "snapshotLockTimeoutMs": getOrCreateConfiguration(target).setSnapshotLockTimeoutMs(property(camelContext, java.time.Duration.class, value).toMillis()); return true;
case "snapshotlockingmode":
case "snapshotLockingMode": getOrCreateConfiguration(target).setSnapshotLockingMode(property(camelContext, java.lang.String.class, value)); return true;
case "snapshotmaxthreads":
case "snapshotMaxThreads": getOrCreateConfiguration(target).setSnapshotMaxThreads(property(camelContext, int.class, value)); return true;
case "snapshotmode":
case "snapshotMode": getOrCreateConfiguration(target).setSnapshotMode(property(camelContext, java.lang.String.class, value)); return true;
case "snapshotnewtables":
case "snapshotNewTables": getOrCreateConfiguration(target).setSnapshotNewTables(property(camelContext, java.lang.String.class, value)); return true;
case "snapshotselectstatementoverrides":
case "snapshotSelectStatementOverrides": getOrCreateConfiguration(target).setSnapshotSelectStatementOverrides(property(camelContext, java.lang.String.class, value)); return true;
case "sourcestructversion":
case "sourceStructVersion": getOrCreateConfiguration(target).setSourceStructVersion(property(camelContext, java.lang.String.class, value)); return true;
case "tableblacklist":
case "tableBlacklist": getOrCreateConfiguration(target).setTableBlacklist(property(camelContext, java.lang.String.class, value)); return true;
case "tableexcludelist":
case "tableExcludeList": getOrCreateConfiguration(target).setTableExcludeList(property(camelContext, java.lang.String.class, value)); return true;
case "tableignorebuiltin":
case "tableIgnoreBuiltin": getOrCreateConfiguration(target).setTableIgnoreBuiltin(property(camelContext, boolean.class, value)); return true;
case "tableincludelist":
case "tableIncludeList": getOrCreateConfiguration(target).setTableIncludeList(property(camelContext, java.lang.String.class, value)); return true;
case "tablewhitelist":
case "tableWhitelist": getOrCreateConfiguration(target).setTableWhitelist(property(camelContext, java.lang.String.class, value)); return true;
case "timeprecisionmode":
case "timePrecisionMode": getOrCreateConfiguration(target).setTimePrecisionMode(property(camelContext, java.lang.String.class, value)); return true;
case "tombstonesondelete":
case "tombstonesOnDelete": getOrCreateConfiguration(target).setTombstonesOnDelete(property(camelContext, boolean.class, value)); return true;
case "transactiontopic":
case "transactionTopic": getOrCreateConfiguration(target).setTransactionTopic(property(camelContext, java.lang.String.class, value)); return true;
default: return false;
}
}
@Override
public Class> getOptionType(String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "additionalproperties":
case "additionalProperties": return java.util.Map.class;
case "autowiredenabled":
case "autowiredEnabled": return boolean.class;
case "bigintunsignedhandlingmode":
case "bigintUnsignedHandlingMode": return java.lang.String.class;
case "binaryhandlingmode":
case "binaryHandlingMode": return java.lang.String.class;
case "binlogbuffersize":
case "binlogBufferSize": return int.class;
case "bridgeerrorhandler":
case "bridgeErrorHandler": return boolean.class;
case "columnblacklist":
case "columnBlacklist": return java.lang.String.class;
case "columnexcludelist":
case "columnExcludeList": return java.lang.String.class;
case "columnincludelist":
case "columnIncludeList": return java.lang.String.class;
case "columnpropagatesourcetype":
case "columnPropagateSourceType": return java.lang.String.class;
case "columnwhitelist":
case "columnWhitelist": return java.lang.String.class;
case "configuration": return org.apache.camel.component.debezium.configuration.MySqlConnectorEmbeddedDebeziumConfiguration.class;
case "connectkeepalive":
case "connectKeepAlive": return boolean.class;
case "connectkeepaliveintervalms":
case "connectKeepAliveIntervalMs": return long.class;
case "connecttimeoutms":
case "connectTimeoutMs": return int.class;
case "converters": return java.lang.String.class;
case "databaseexcludelist":
case "databaseExcludeList": return java.lang.String.class;
case "databasehistory":
case "databaseHistory": return java.lang.String.class;
case "databasehistoryfilefilename":
case "databaseHistoryFileFilename": return java.lang.String.class;
case "databasehistorykafkabootstrapservers":
case "databaseHistoryKafkaBootstrapServers": return java.lang.String.class;
case "databasehistorykafkaquerytimeoutms":
case "databaseHistoryKafkaQueryTimeoutMs": return long.class;
case "databasehistorykafkarecoveryattempts":
case "databaseHistoryKafkaRecoveryAttempts": return int.class;
case "databasehistorykafkarecoverypollintervalms":
case "databaseHistoryKafkaRecoveryPollIntervalMs": return int.class;
case "databasehistorykafkatopic":
case "databaseHistoryKafkaTopic": return java.lang.String.class;
case "databasehistoryskipunparseableddl":
case "databaseHistorySkipUnparseableDdl": return boolean.class;
case "databasehistorystoreonlycapturedtablesddl":
case "databaseHistoryStoreOnlyCapturedTablesDdl": return boolean.class;
case "databasehistorystoreonlymonitoredtablesddl":
case "databaseHistoryStoreOnlyMonitoredTablesDdl": return boolean.class;
case "databasehostname":
case "databaseHostname": return java.lang.String.class;
case "databaseincludelist":
case "databaseIncludeList": return java.lang.String.class;
case "databaseinitialstatements":
case "databaseInitialStatements": return java.lang.String.class;
case "databasejdbcdriver":
case "databaseJdbcDriver": return java.lang.String.class;
case "databasepassword":
case "databasePassword": return java.lang.String.class;
case "databaseport":
case "databasePort": return int.class;
case "databaseserverid":
case "databaseServerId": return long.class;
case "databaseserveridoffset":
case "databaseServerIdOffset": return long.class;
case "databaseservername":
case "databaseServerName": return java.lang.String.class;
case "databasesslkeystore":
case "databaseSslKeystore": return java.lang.String.class;
case "databasesslkeystorepassword":
case "databaseSslKeystorePassword": return java.lang.String.class;
case "databasesslmode":
case "databaseSslMode": return java.lang.String.class;
case "databasessltruststore":
case "databaseSslTruststore": return java.lang.String.class;
case "databasessltruststorepassword":
case "databaseSslTruststorePassword": return java.lang.String.class;
case "databaseuser":
case "databaseUser": return java.lang.String.class;
case "datatypepropagatesourcetype":
case "datatypePropagateSourceType": return java.lang.String.class;
case "decimalhandlingmode":
case "decimalHandlingMode": return java.lang.String.class;
case "enabletimeadjuster":
case "enableTimeAdjuster": return boolean.class;
case "eventdeserializationfailurehandlingmode":
case "eventDeserializationFailureHandlingMode": return java.lang.String.class;
case "eventprocessingfailurehandlingmode":
case "eventProcessingFailureHandlingMode": return java.lang.String.class;
case "gtidsourceexcludes":
case "gtidSourceExcludes": return java.lang.String.class;
case "gtidsourcefilterdmlevents":
case "gtidSourceFilterDmlEvents": return boolean.class;
case "gtidsourceincludes":
case "gtidSourceIncludes": return java.lang.String.class;
case "heartbeatactionquery":
case "heartbeatActionQuery": return java.lang.String.class;
case "heartbeatintervalms":
case "heartbeatIntervalMs": return int.class;
case "heartbeattopicsprefix":
case "heartbeatTopicsPrefix": return java.lang.String.class;
case "includequery":
case "includeQuery": return boolean.class;
case "includeschemachanges":
case "includeSchemaChanges": return boolean.class;
case "includeschemacomments":
case "includeSchemaComments": return boolean.class;
case "inconsistentschemahandlingmode":
case "inconsistentSchemaHandlingMode": return java.lang.String.class;
case "incrementalsnapshotallowschemachanges":
case "incrementalSnapshotAllowSchemaChanges": return boolean.class;
case "incrementalsnapshotchunksize":
case "incrementalSnapshotChunkSize": return int.class;
case "internalkeyconverter":
case "internalKeyConverter": return java.lang.String.class;
case "internalvalueconverter":
case "internalValueConverter": return java.lang.String.class;
case "maxbatchsize":
case "maxBatchSize": return int.class;
case "maxqueuesize":
case "maxQueueSize": return int.class;
case "maxqueuesizeinbytes":
case "maxQueueSizeInBytes": return long.class;
case "messagekeycolumns":
case "messageKeyColumns": return java.lang.String.class;
case "minrowcounttostreamresults":
case "minRowCountToStreamResults": return int.class;
case "offsetcommitpolicy":
case "offsetCommitPolicy": return java.lang.String.class;
case "offsetcommittimeoutms":
case "offsetCommitTimeoutMs": return long.class;
case "offsetflushintervalms":
case "offsetFlushIntervalMs": return long.class;
case "offsetstorage":
case "offsetStorage": return java.lang.String.class;
case "offsetstoragefilename":
case "offsetStorageFileName": return java.lang.String.class;
case "offsetstoragepartitions":
case "offsetStoragePartitions": return int.class;
case "offsetstoragereplicationfactor":
case "offsetStorageReplicationFactor": return int.class;
case "offsetstoragetopic":
case "offsetStorageTopic": return java.lang.String.class;
case "pollintervalms":
case "pollIntervalMs": return long.class;
case "providetransactionmetadata":
case "provideTransactionMetadata": return boolean.class;
case "queryfetchsize":
case "queryFetchSize": return int.class;
case "retriablerestartconnectorwaitms":
case "retriableRestartConnectorWaitMs": return long.class;
case "sanitizefieldnames":
case "sanitizeFieldNames": return boolean.class;
case "schemanameadjustmentmode":
case "schemaNameAdjustmentMode": return java.lang.String.class;
case "signaldatacollection":
case "signalDataCollection": return java.lang.String.class;
case "skippedoperations":
case "skippedOperations": return java.lang.String.class;
case "snapshotdelayms":
case "snapshotDelayMs": return long.class;
case "snapshotfetchsize":
case "snapshotFetchSize": return int.class;
case "snapshotincludecollectionlist":
case "snapshotIncludeCollectionList": return java.lang.String.class;
case "snapshotlocktimeoutms":
case "snapshotLockTimeoutMs": return long.class;
case "snapshotlockingmode":
case "snapshotLockingMode": return java.lang.String.class;
case "snapshotmaxthreads":
case "snapshotMaxThreads": return int.class;
case "snapshotmode":
case "snapshotMode": return java.lang.String.class;
case "snapshotnewtables":
case "snapshotNewTables": return java.lang.String.class;
case "snapshotselectstatementoverrides":
case "snapshotSelectStatementOverrides": return java.lang.String.class;
case "sourcestructversion":
case "sourceStructVersion": return java.lang.String.class;
case "tableblacklist":
case "tableBlacklist": return java.lang.String.class;
case "tableexcludelist":
case "tableExcludeList": return java.lang.String.class;
case "tableignorebuiltin":
case "tableIgnoreBuiltin": return boolean.class;
case "tableincludelist":
case "tableIncludeList": return java.lang.String.class;
case "tablewhitelist":
case "tableWhitelist": return java.lang.String.class;
case "timeprecisionmode":
case "timePrecisionMode": return java.lang.String.class;
case "tombstonesondelete":
case "tombstonesOnDelete": return boolean.class;
case "transactiontopic":
case "transactionTopic": return java.lang.String.class;
default: return null;
}
}
@Override
public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
DebeziumMySqlComponent target = (DebeziumMySqlComponent) obj;
switch (ignoreCase ? name.toLowerCase() : name) {
case "additionalproperties":
case "additionalProperties": return getOrCreateConfiguration(target).getAdditionalProperties();
case "autowiredenabled":
case "autowiredEnabled": return target.isAutowiredEnabled();
case "bigintunsignedhandlingmode":
case "bigintUnsignedHandlingMode": return getOrCreateConfiguration(target).getBigintUnsignedHandlingMode();
case "binaryhandlingmode":
case "binaryHandlingMode": return getOrCreateConfiguration(target).getBinaryHandlingMode();
case "binlogbuffersize":
case "binlogBufferSize": return getOrCreateConfiguration(target).getBinlogBufferSize();
case "bridgeerrorhandler":
case "bridgeErrorHandler": return target.isBridgeErrorHandler();
case "columnblacklist":
case "columnBlacklist": return getOrCreateConfiguration(target).getColumnBlacklist();
case "columnexcludelist":
case "columnExcludeList": return getOrCreateConfiguration(target).getColumnExcludeList();
case "columnincludelist":
case "columnIncludeList": return getOrCreateConfiguration(target).getColumnIncludeList();
case "columnpropagatesourcetype":
case "columnPropagateSourceType": return getOrCreateConfiguration(target).getColumnPropagateSourceType();
case "columnwhitelist":
case "columnWhitelist": return getOrCreateConfiguration(target).getColumnWhitelist();
case "configuration": return target.getConfiguration();
case "connectkeepalive":
case "connectKeepAlive": return getOrCreateConfiguration(target).isConnectKeepAlive();
case "connectkeepaliveintervalms":
case "connectKeepAliveIntervalMs": return getOrCreateConfiguration(target).getConnectKeepAliveIntervalMs();
case "connecttimeoutms":
case "connectTimeoutMs": return getOrCreateConfiguration(target).getConnectTimeoutMs();
case "converters": return getOrCreateConfiguration(target).getConverters();
case "databaseexcludelist":
case "databaseExcludeList": return getOrCreateConfiguration(target).getDatabaseExcludeList();
case "databasehistory":
case "databaseHistory": return getOrCreateConfiguration(target).getDatabaseHistory();
case "databasehistoryfilefilename":
case "databaseHistoryFileFilename": return getOrCreateConfiguration(target).getDatabaseHistoryFileFilename();
case "databasehistorykafkabootstrapservers":
case "databaseHistoryKafkaBootstrapServers": return getOrCreateConfiguration(target).getDatabaseHistoryKafkaBootstrapServers();
case "databasehistorykafkaquerytimeoutms":
case "databaseHistoryKafkaQueryTimeoutMs": return getOrCreateConfiguration(target).getDatabaseHistoryKafkaQueryTimeoutMs();
case "databasehistorykafkarecoveryattempts":
case "databaseHistoryKafkaRecoveryAttempts": return getOrCreateConfiguration(target).getDatabaseHistoryKafkaRecoveryAttempts();
case "databasehistorykafkarecoverypollintervalms":
case "databaseHistoryKafkaRecoveryPollIntervalMs": return getOrCreateConfiguration(target).getDatabaseHistoryKafkaRecoveryPollIntervalMs();
case "databasehistorykafkatopic":
case "databaseHistoryKafkaTopic": return getOrCreateConfiguration(target).getDatabaseHistoryKafkaTopic();
case "databasehistoryskipunparseableddl":
case "databaseHistorySkipUnparseableDdl": return getOrCreateConfiguration(target).isDatabaseHistorySkipUnparseableDdl();
case "databasehistorystoreonlycapturedtablesddl":
case "databaseHistoryStoreOnlyCapturedTablesDdl": return getOrCreateConfiguration(target).isDatabaseHistoryStoreOnlyCapturedTablesDdl();
case "databasehistorystoreonlymonitoredtablesddl":
case "databaseHistoryStoreOnlyMonitoredTablesDdl": return getOrCreateConfiguration(target).isDatabaseHistoryStoreOnlyMonitoredTablesDdl();
case "databasehostname":
case "databaseHostname": return getOrCreateConfiguration(target).getDatabaseHostname();
case "databaseincludelist":
case "databaseIncludeList": return getOrCreateConfiguration(target).getDatabaseIncludeList();
case "databaseinitialstatements":
case "databaseInitialStatements": return getOrCreateConfiguration(target).getDatabaseInitialStatements();
case "databasejdbcdriver":
case "databaseJdbcDriver": return getOrCreateConfiguration(target).getDatabaseJdbcDriver();
case "databasepassword":
case "databasePassword": return getOrCreateConfiguration(target).getDatabasePassword();
case "databaseport":
case "databasePort": return getOrCreateConfiguration(target).getDatabasePort();
case "databaseserverid":
case "databaseServerId": return getOrCreateConfiguration(target).getDatabaseServerId();
case "databaseserveridoffset":
case "databaseServerIdOffset": return getOrCreateConfiguration(target).getDatabaseServerIdOffset();
case "databaseservername":
case "databaseServerName": return getOrCreateConfiguration(target).getDatabaseServerName();
case "databasesslkeystore":
case "databaseSslKeystore": return getOrCreateConfiguration(target).getDatabaseSslKeystore();
case "databasesslkeystorepassword":
case "databaseSslKeystorePassword": return getOrCreateConfiguration(target).getDatabaseSslKeystorePassword();
case "databasesslmode":
case "databaseSslMode": return getOrCreateConfiguration(target).getDatabaseSslMode();
case "databasessltruststore":
case "databaseSslTruststore": return getOrCreateConfiguration(target).getDatabaseSslTruststore();
case "databasessltruststorepassword":
case "databaseSslTruststorePassword": return getOrCreateConfiguration(target).getDatabaseSslTruststorePassword();
case "databaseuser":
case "databaseUser": return getOrCreateConfiguration(target).getDatabaseUser();
case "datatypepropagatesourcetype":
case "datatypePropagateSourceType": return getOrCreateConfiguration(target).getDatatypePropagateSourceType();
case "decimalhandlingmode":
case "decimalHandlingMode": return getOrCreateConfiguration(target).getDecimalHandlingMode();
case "enabletimeadjuster":
case "enableTimeAdjuster": return getOrCreateConfiguration(target).isEnableTimeAdjuster();
case "eventdeserializationfailurehandlingmode":
case "eventDeserializationFailureHandlingMode": return getOrCreateConfiguration(target).getEventDeserializationFailureHandlingMode();
case "eventprocessingfailurehandlingmode":
case "eventProcessingFailureHandlingMode": return getOrCreateConfiguration(target).getEventProcessingFailureHandlingMode();
case "gtidsourceexcludes":
case "gtidSourceExcludes": return getOrCreateConfiguration(target).getGtidSourceExcludes();
case "gtidsourcefilterdmlevents":
case "gtidSourceFilterDmlEvents": return getOrCreateConfiguration(target).isGtidSourceFilterDmlEvents();
case "gtidsourceincludes":
case "gtidSourceIncludes": return getOrCreateConfiguration(target).getGtidSourceIncludes();
case "heartbeatactionquery":
case "heartbeatActionQuery": return getOrCreateConfiguration(target).getHeartbeatActionQuery();
case "heartbeatintervalms":
case "heartbeatIntervalMs": return getOrCreateConfiguration(target).getHeartbeatIntervalMs();
case "heartbeattopicsprefix":
case "heartbeatTopicsPrefix": return getOrCreateConfiguration(target).getHeartbeatTopicsPrefix();
case "includequery":
case "includeQuery": return getOrCreateConfiguration(target).isIncludeQuery();
case "includeschemachanges":
case "includeSchemaChanges": return getOrCreateConfiguration(target).isIncludeSchemaChanges();
case "includeschemacomments":
case "includeSchemaComments": return getOrCreateConfiguration(target).isIncludeSchemaComments();
case "inconsistentschemahandlingmode":
case "inconsistentSchemaHandlingMode": return getOrCreateConfiguration(target).getInconsistentSchemaHandlingMode();
case "incrementalsnapshotallowschemachanges":
case "incrementalSnapshotAllowSchemaChanges": return getOrCreateConfiguration(target).isIncrementalSnapshotAllowSchemaChanges();
case "incrementalsnapshotchunksize":
case "incrementalSnapshotChunkSize": return getOrCreateConfiguration(target).getIncrementalSnapshotChunkSize();
case "internalkeyconverter":
case "internalKeyConverter": return getOrCreateConfiguration(target).getInternalKeyConverter();
case "internalvalueconverter":
case "internalValueConverter": return getOrCreateConfiguration(target).getInternalValueConverter();
case "maxbatchsize":
case "maxBatchSize": return getOrCreateConfiguration(target).getMaxBatchSize();
case "maxqueuesize":
case "maxQueueSize": return getOrCreateConfiguration(target).getMaxQueueSize();
case "maxqueuesizeinbytes":
case "maxQueueSizeInBytes": return getOrCreateConfiguration(target).getMaxQueueSizeInBytes();
case "messagekeycolumns":
case "messageKeyColumns": return getOrCreateConfiguration(target).getMessageKeyColumns();
case "minrowcounttostreamresults":
case "minRowCountToStreamResults": return getOrCreateConfiguration(target).getMinRowCountToStreamResults();
case "offsetcommitpolicy":
case "offsetCommitPolicy": return getOrCreateConfiguration(target).getOffsetCommitPolicy();
case "offsetcommittimeoutms":
case "offsetCommitTimeoutMs": return getOrCreateConfiguration(target).getOffsetCommitTimeoutMs();
case "offsetflushintervalms":
case "offsetFlushIntervalMs": return getOrCreateConfiguration(target).getOffsetFlushIntervalMs();
case "offsetstorage":
case "offsetStorage": return getOrCreateConfiguration(target).getOffsetStorage();
case "offsetstoragefilename":
case "offsetStorageFileName": return getOrCreateConfiguration(target).getOffsetStorageFileName();
case "offsetstoragepartitions":
case "offsetStoragePartitions": return getOrCreateConfiguration(target).getOffsetStoragePartitions();
case "offsetstoragereplicationfactor":
case "offsetStorageReplicationFactor": return getOrCreateConfiguration(target).getOffsetStorageReplicationFactor();
case "offsetstoragetopic":
case "offsetStorageTopic": return getOrCreateConfiguration(target).getOffsetStorageTopic();
case "pollintervalms":
case "pollIntervalMs": return getOrCreateConfiguration(target).getPollIntervalMs();
case "providetransactionmetadata":
case "provideTransactionMetadata": return getOrCreateConfiguration(target).isProvideTransactionMetadata();
case "queryfetchsize":
case "queryFetchSize": return getOrCreateConfiguration(target).getQueryFetchSize();
case "retriablerestartconnectorwaitms":
case "retriableRestartConnectorWaitMs": return getOrCreateConfiguration(target).getRetriableRestartConnectorWaitMs();
case "sanitizefieldnames":
case "sanitizeFieldNames": return getOrCreateConfiguration(target).isSanitizeFieldNames();
case "schemanameadjustmentmode":
case "schemaNameAdjustmentMode": return getOrCreateConfiguration(target).getSchemaNameAdjustmentMode();
case "signaldatacollection":
case "signalDataCollection": return getOrCreateConfiguration(target).getSignalDataCollection();
case "skippedoperations":
case "skippedOperations": return getOrCreateConfiguration(target).getSkippedOperations();
case "snapshotdelayms":
case "snapshotDelayMs": return getOrCreateConfiguration(target).getSnapshotDelayMs();
case "snapshotfetchsize":
case "snapshotFetchSize": return getOrCreateConfiguration(target).getSnapshotFetchSize();
case "snapshotincludecollectionlist":
case "snapshotIncludeCollectionList": return getOrCreateConfiguration(target).getSnapshotIncludeCollectionList();
case "snapshotlocktimeoutms":
case "snapshotLockTimeoutMs": return getOrCreateConfiguration(target).getSnapshotLockTimeoutMs();
case "snapshotlockingmode":
case "snapshotLockingMode": return getOrCreateConfiguration(target).getSnapshotLockingMode();
case "snapshotmaxthreads":
case "snapshotMaxThreads": return getOrCreateConfiguration(target).getSnapshotMaxThreads();
case "snapshotmode":
case "snapshotMode": return getOrCreateConfiguration(target).getSnapshotMode();
case "snapshotnewtables":
case "snapshotNewTables": return getOrCreateConfiguration(target).getSnapshotNewTables();
case "snapshotselectstatementoverrides":
case "snapshotSelectStatementOverrides": return getOrCreateConfiguration(target).getSnapshotSelectStatementOverrides();
case "sourcestructversion":
case "sourceStructVersion": return getOrCreateConfiguration(target).getSourceStructVersion();
case "tableblacklist":
case "tableBlacklist": return getOrCreateConfiguration(target).getTableBlacklist();
case "tableexcludelist":
case "tableExcludeList": return getOrCreateConfiguration(target).getTableExcludeList();
case "tableignorebuiltin":
case "tableIgnoreBuiltin": return getOrCreateConfiguration(target).isTableIgnoreBuiltin();
case "tableincludelist":
case "tableIncludeList": return getOrCreateConfiguration(target).getTableIncludeList();
case "tablewhitelist":
case "tableWhitelist": return getOrCreateConfiguration(target).getTableWhitelist();
case "timeprecisionmode":
case "timePrecisionMode": return getOrCreateConfiguration(target).getTimePrecisionMode();
case "tombstonesondelete":
case "tombstonesOnDelete": return getOrCreateConfiguration(target).isTombstonesOnDelete();
case "transactiontopic":
case "transactionTopic": return getOrCreateConfiguration(target).getTransactionTopic();
default: return null;
}
}
@Override
public Object getCollectionValueType(Object target, String name, boolean ignoreCase) {
switch (ignoreCase ? name.toLowerCase() : name) {
case "additionalproperties":
case "additionalProperties": return java.lang.Object.class;
default: return null;
}
}
}