Interface Column.Type

Enclosing interface:
Column

public static interface Column.Type
Describes the runtime value type stored by a column.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the parser associated with this logical type.
    Returns the Java class represented by this column type.
    default boolean
    Indicates whether the represented value class is a primitive Java type.
    of(Class<?> valueClass, TypeParser<?> parser)
    Creates a column type descriptor from its runtime value class and parser.
  • Method Details

    • of

      static Column.Type of(Class<?> valueClass, TypeParser<?> parser)
      Creates a column type descriptor from its runtime value class and parser.
      Parameters:
      valueClass - the Java class represented by the column type
      parser - the parser associated with this type
      Returns:
      the created column type descriptor
    • getValueClass

      Class<?> getValueClass()
      Returns the Java class represented by this column type.
      Returns:
      the runtime value class
    • getParser

      TypeParser<?> getParser()
      Returns the parser associated with this logical type.
      Returns:
      the type parser
    • isPrimitive

      default boolean isPrimitive()
      Indicates whether the represented value class is a primitive Java type.
      Returns:
      true when the underlying value class is primitive