Class AbstractTimestampType

All Implemented Interfaces:
Type
Direct Known Subclasses:
AbstractDebeziumTimestampType, AbstractDebeziumTimestampType, ConnectTimestampType, ConnectTimestampType, ZonedTimestampType, ZonedTimestampType, ZonedTimestampType

public abstract class AbstractTimestampType extends AbstractTemporalType
An abstract temporal implementation of Type for TIMESTAMP based columns.
Author:
Chris Cranford
  • 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: Type
      Return the SQL type name for this type.
      Parameters:
      dialect - dialect instance, never null
      schema - field schema, never null
      key - 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()