Class GridSqlType


  • public final class GridSqlType
    extends Object
    SQL Data type based on H2.
    • Method Detail

      • fromColumn

        public static GridSqlType fromColumn​(org.h2.table.Column c)
        Parameters:
        c - Column to take type definition from.
        Returns:
        Type.
      • fromExpression

        public static GridSqlType fromExpression​(org.h2.expression.Expression e)
        Parameters:
        e - Expression to take type from.
        Returns:
        Type.
      • type

        public int type()
        Returns:
        Get H2 type.
      • scale

        public int scale()
        Get the scale of this expression.
        Returns:
        Scale.
      • precision

        public long precision()
        Get the precision of this expression.
        Returns:
        Precision.
      • displaySize

        public int displaySize()
        Get the display size of this expression.
        Returns:
        the display size
      • sql

        public String sql()
        Returns:
        SQL definition of the type.