Class DataType


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

      • 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 Detail

      • DataType

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

      • 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()
      • jdbcType

        public int jdbcType()
      • length

        public long length()
      • scale

        public int scale()
      • arrayDimensions

        public int[] arrayDimensions()