Class DataType

java.lang.Object
io.debezium.relational.ddl.DataType

@Immutable public final class DataType extends Object
An immutable representation of a data type
Author:
Randall Hauch
  • Field Details

    • expression

      private final String expression
    • name

      private final String name
    • jdbcType

      private final int jdbcType
    • length

      private final long length
    • scale

      private final int scale
    • arrayDimensions

      private final int[] arrayDimensions
  • Constructor Details

    • DataType

      protected DataType(String expr, String name, int jdbcType, long length, int scale, int[] arrayDimensions, int arrayDimLength)
  • Method Details

    • userDefinedType

      public static DataType userDefinedType(String qualifiedName)
      Obtain the data type for a user-defined or fully-qualified type name.
      Parameters:
      qualifiedName - the fully-qualified name; may not be null
      Returns:
      the data type; never null
    • expression

      public String expression()
    • name

      public String name()
    • jdbcType

      public int jdbcType()
    • length

      public long length()
    • scale

      public int scale()
    • arrayDimensions

      public int[] arrayDimensions()
    • toString

      public String toString()
      Overrides:
      toString in class Object