Package io.debezium.connector.jdbc.type
Class AbstractTimeType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractTemporalType
io.debezium.connector.jdbc.type.AbstractTimeType
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
AbstractDebeziumTimeType,ConnectTimeType,ZonedTimeType
An abstract temporal implementation of
Type for TIME based columns.- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
AbstractTimeType
public AbstractTimeType()
-
-
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)
-