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(org.apache.kafka.connect.data.Schema schema)
      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:
      schema - field schema, never 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 void bind(org.hibernate.query.Query<?> query, 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:
      query - hibernate query, is never null
      index - parameter index to bind
      schema - field schema, never null
      value - value to be bound, may be null
    • getLocalTime

      protected abstract LocalTime getLocalTime(Number value)