Package io.debezium.connector.jdbc.type
Class AbstractTimestampType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractTemporalType
io.debezium.connector.jdbc.type.AbstractTimestampType
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
AbstractDebeziumTimestampType,AbstractDebeziumTimestampType,ConnectTimestampType,ConnectTimestampType,ZonedTimestampType,ZonedTimestampType,ZonedTimestampType
An abstract temporal implementation of
Type for TIMESTAMP based columns.- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intprotected intgetTimePrecision(org.apache.kafka.connect.data.Schema schema) getTypeName(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key) Return the SQL type name for this type.Methods inherited from class io.debezium.connector.jdbc.type.AbstractTemporalType
configure, getDatabaseTimeZoneMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
bind, getDefaultValueBinding, getDialect, getQueryBinding, getSchemaParameter, getSourceColumnPrecision, getSourceColumnSize, getSourceColumnType, throwUnexpectedValue, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.debezium.connector.jdbc.type.Type
getRegistrationKeys
-
Constructor Details
-
AbstractTimestampType
public AbstractTimestampType()
-
-
Method Details
-
getTypeName
public String getTypeName(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, boolean key) Description copied from interface:TypeReturn the SQL type name for this type.- Parameters:
dialect- dialect instance, nevernullschema- field schema, nevernullkey- whether the type resolution is for a key field- Returns:
- the resolved type to be used in DDL statements
-
getTimePrecision
protected int getTimePrecision(org.apache.kafka.connect.data.Schema schema) -
getJdbcType
protected int getJdbcType()
-