Class SqlServerDatabaseDialect
java.lang.Object
io.debezium.connector.jdbc.dialect.GeneralDatabaseDialect
io.debezium.connector.jdbc.dialect.sqlserver.SqlServerDatabaseDialect
- All Implemented Interfaces:
DatabaseDialect
A
DatabaseDialect implementation for SQL Server.- Author:
- Chris Cranford
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSqlServerDatabaseDialect(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory) -
Method Summary
Modifier and TypeMethodDescriptionReturns the default format for binding a byte arrayintGets the maximum precision allowed for a dialect's time data type.intGets the maximum precision allowed for a dialect's timestamp data type.intGets the maximum length of a VARCHAR field in a primary key column.getUpsertStatement(TableDescriptor table, SinkRecordDescriptor record) Construct aUPSERTstatement specific for this dialect.protected voidMethods inherited from class io.debezium.connector.jdbc.dialect.GeneralDatabaseDialect
addColumnDefaultValue, bindValue, columnNameFromField, columnNameFromField, columnQueryBindingFromField, getAlterTableStatement, getColumnNamingStrategy, getConfig, getCreateTableStatement, getDatabaseVersion, getDefaultDecimalPrecision, getDefaultTimestampPrecision, getDeleteStatement, getFormattedBoolean, getFormattedDate, getFormattedDateTime, getFormattedDateTimeWithNanos, getFormattedTime, getFormattedTimestamp, getFormattedTimestampWithTimeZone, getFormattedTimeWithTimeZone, getIdentifierHelper, getInsertStatement, getMaxNVarcharLengthInKey, getMaxVarbinaryLength, getSchemaType, getTypeName, getTypeName, getTypeName, getUpdateStatement, getVersion, isIdentifierUppercaseWhenNotQuoted, isNegativeScaleAllowed, readTable, registerType, resolveMissingFields, tableExists, toIdentifier, toIdentifier
-
Constructor Details
-
SqlServerDatabaseDialect
private SqlServerDatabaseDialect(JdbcSinkConnectorConfig config, org.hibernate.SessionFactory sessionFactory)
-
-
Method Details
-
registerTypes
protected void registerTypes()- Overrides:
registerTypesin classGeneralDatabaseDialect
-
getMaxVarcharLengthInKey
public int getMaxVarcharLengthInKey()Description copied from interface:DatabaseDialectGets the maximum length of a VARCHAR field in a primary key column.- Specified by:
getMaxVarcharLengthInKeyin interfaceDatabaseDialect- Overrides:
getMaxVarcharLengthInKeyin classGeneralDatabaseDialect- Returns:
- maximum varchar field length when participating in the primary key
-
getMaxTimePrecision
public int getMaxTimePrecision()Description copied from interface:DatabaseDialectGets the maximum precision allowed for a dialect's time data type.- Returns:
- maximum time precision
-
getMaxTimestampPrecision
public int getMaxTimestampPrecision()Description copied from interface:DatabaseDialectGets the maximum precision allowed for a dialect's timestamp data type.- Returns:
- maximum timestamp precision
-
getUpsertStatement
Description copied from interface:DatabaseDialectConstruct aUPSERTstatement specific for this dialect.- Specified by:
getUpsertStatementin interfaceDatabaseDialect- Overrides:
getUpsertStatementin classGeneralDatabaseDialect- Parameters:
table- the current relational table model, should not benullrecord- the current sink record being processed, should not benull- Returns:
- the upsert SQL statement to be executed, never
null
-
getByteArrayFormat
Description copied from interface:DatabaseDialectReturns the default format for binding a byte array- Specified by:
getByteArrayFormatin interfaceDatabaseDialect- Overrides:
getByteArrayFormatin classGeneralDatabaseDialect- Returns:
- the format for binding a byte array
-