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.
@FunctionalInterface public interface DefaultValueConverter
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
Nested Classes Modifier and Type Interface Description static interface
DefaultValueConverter.DefaultValueMapper
Converts the raw JDBC default value expression for a column into an object.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<Object>
parseDefaultValue(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
passthrough()
Obtain a DefaultValueConverter that passes through values.
-
-
-
Method Detail
-
parseDefaultValue
Optional<Object> parseDefaultValue(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.- 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
static DefaultValueConverter passthrough()
Obtain a DefaultValueConverter that passes through values.- Returns:
- the pass-through DefaultValueConverter; never null
-
-