Class AbstractDebeziumTimeType

All Implemented Interfaces:
Type
Direct Known Subclasses:
MicroTimeType, NanoTimeType, TimeType

public abstract class AbstractDebeziumTimeType extends AbstractTimeType
An abstract Debezium time-type implementation of AbstractTimeType.
Author:
Chris Cranford
  • Constructor Details

    • AbstractDebeziumTimeType

      public AbstractDebeziumTimeType()
  • Method Details

    • getQueryBinding

      public String getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema, Object value)
      Description copied from interface: Type
      Return the SQL string to be used in DML statements for binding this type to SQL.
      Specified by:
      getQueryBinding in interface Type
      Overrides:
      getQueryBinding in class AbstractType
      Parameters:
      column - column descriptor in the table relational model, never null
      schema - field schema, never null
      value - value to be bound, may be null
      Returns:
      query parameter argument binding SQL fragment
    • getDefaultValueBinding

      public String getDefaultValueBinding(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, Object value)
      Description copied from interface: Type
      Resolve the default value clause value.
      Specified by:
      getDefaultValueBinding in interface Type
      Overrides:
      getDefaultValueBinding in class AbstractType
      Parameters:
      dialect - dialect instance, never null
      schema - field schema, never null
      value - the default value, should not be null
      Returns:
      the formatted default value for the SQL statement as a string
    • bind

      public List<ValueBindDescriptor> bind(int index, org.apache.kafka.connect.data.Schema schema, Object value)
      Description copied from interface: Type
      Binds the value to the query.
      Specified by:
      bind in interface Type
      Overrides:
      bind in class AbstractType
      Parameters:
      index - parameter index to bind
      schema - field schema, never null
      value - value to be bound, may be null
      Returns:
      the list of ValueBindDescriptor
    • getJdbcType

      protected int getJdbcType()
    • getLocalTime

      protected abstract LocalTime getLocalTime(Number value)