Package io.debezium.relational
Interface DefaultValueConverter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface is used to convert the string default value to a Java type
recognized by value converters for a subset of types.
- Author:
- Jiabao Sun
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Converts the raw JDBC default value expression for a column into an object. -
Method Summary
Modifier and TypeMethodDescriptionparseDefaultValue
(Column column, String defaultValueExpression) This interface is used to convert the default value literal to a Java type recognized by value converters for a subset of types.static DefaultValueConverter
Obtain a DefaultValueConverter that passes through values.
-
Method Details
-
parseDefaultValue
This interface is used to convert the default value literal to a Java type recognized by value converters for a subset of types.- Parameters:
column
- the column definition describing thedata
value; never nulldefaultValueExpression
- the default value literal; may be null- Returns:
- value converted to a Java type; optional
-
passthrough
Obtain a DefaultValueConverter that passes through values.- Returns:
- the pass-through DefaultValueConverter; never null
-