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 Java class represented by this column type.
    id()
    Returns the stable identifier used for this column type.
    default boolean
    Indicates whether the represented value class is a primitive Java type.
    of(Class<?> valueClass)
    Resolves a column type descriptor for the supplied Java class.
  • Method Details

    • of

      static Column.Type of(Class<?> valueClass)
      Resolves a column type descriptor for the supplied Java class.
      Parameters:
      valueClass - the Java class represented by the column type
      Returns:
      a reusable column type descriptor
    • id

      String id()
      Returns the stable identifier used for this column type.
      Returns:
      the column type identifier
    • getValueClass

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

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