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 
    Converts the raw JDBC default value expression for a column into an object.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Obtain a DefaultValueConverter that passes through values.
  • Method Details

    • 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