Class AbstractDebeziumTimeType
java.lang.Object
io.debezium.connector.jdbc.type.AbstractType
io.debezium.connector.jdbc.type.AbstractTemporalType
io.debezium.connector.jdbc.type.AbstractTimeType
io.debezium.connector.jdbc.type.debezium.AbstractDebeziumTimeType
- All Implemented Interfaces:
Type
- Direct Known Subclasses:
MicroTimeType,NanoTimeType,TimeType
An abstract Debezium time-type implementation of
AbstractTimeType.- Author:
- Chris Cranford
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbind(org.hibernate.query.Query<?> query, int index, org.apache.kafka.connect.data.Schema schema, Object value) Binds the value to the query.getDefaultValueBinding(DatabaseDialect dialect, org.apache.kafka.connect.data.Schema schema, Object value) Resolve the default value clause value.protected abstract LocalTimegetLocalTime(Number value) getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema, Object value) Return the SQL string to be used in DML statements for binding this type to SQL.Methods inherited from class io.debezium.connector.jdbc.type.AbstractTimeType
getTimePrecision, getTypeNameMethods inherited from class io.debezium.connector.jdbc.type.AbstractTemporalType
configure, getDatabaseTimeZoneMethods inherited from class io.debezium.connector.jdbc.type.AbstractType
getDialect, 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
-
AbstractDebeziumTimeType
public AbstractDebeziumTimeType()
-
-
Method Details
-
getQueryBinding
public String getQueryBinding(ColumnDescriptor column, org.apache.kafka.connect.data.Schema schema, Object value) Description copied from interface:TypeReturn the SQL string to be used in DML statements for binding this type to SQL.- Specified by:
getQueryBindingin interfaceType- Overrides:
getQueryBindingin classAbstractType- Parameters:
column- column descriptor in the table relational model, nevernullschema- field schema, nevernullvalue- value to be bound, may benull- 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:TypeResolve the default value clause value.- Specified by:
getDefaultValueBindingin interfaceType- Overrides:
getDefaultValueBindingin classAbstractType- Parameters:
dialect- dialect instance, nevernullschema- field schema, nevernullvalue- the default value, should not benull- Returns:
- the formatted default value for the SQL statement as a string
-
bind
public int bind(org.hibernate.query.Query<?> query, int index, org.apache.kafka.connect.data.Schema schema, Object value) Description copied from interface:TypeBinds the value to the query.- Specified by:
bindin interfaceType- Overrides:
bindin classAbstractType- Parameters:
query- hibernate query, is nevernullindex- parameter index to bindschema- field schema, nevernullvalue- value to be bound, may benull- Returns:
- the number of bound parameters
-
getLocalTime
-