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
    • 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 the data value; never null
        defaultValueExpression - 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