Interface Column.Type

Enclosing interface:
Column

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

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    get(Class<?> valueClass)
    Returns the registered column type for the supplied value class.
    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.
    register(Class<?> valueClass, TypeParser<?> parser)
    Creates and registers a column type descriptor from its runtime value class and parser.
  • Field Details

  • Method Details

    • register

      static Column.Type register(Class<?> valueClass, TypeParser<?> parser)
      Creates and registers 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
    • get

      static Column.Type get(Class<?> valueClass)
      Returns the registered column type for the supplied value class.
      Parameters:
      valueClass - the runtime value class
      Returns:
      the registered column type
    • 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