Class SqlAlienSystemTypeNameSpec


public class SqlAlienSystemTypeNameSpec extends SqlBasicTypeNameSpec
Represents a type name for an alien system. For example, UNSIGNED is a built-in type in MySQL which is synonym of INTEGER.

You can use this class to define a customized type name with specific alias, for example, in some systems, STRING is synonym of VARCHAR and BYTES is synonym of VARBINARY.

Internally we may use the SqlAlienSystemTypeNameSpec to unparse as the builtin data type name for some alien systems during rel-to-sql conversion.

  • Constructor Details

    • SqlAlienSystemTypeNameSpec

      public SqlAlienSystemTypeNameSpec(String typeAlias, SqlTypeName typeName, SqlParserPos pos)
      Creates a SqlAlienSystemTypeNameSpec instance.
      Parameters:
      typeAlias - Type alias of the alien system
      typeName - Type name the typeAlias implies as the (standard) basic type name
      pos - The parser position
    • SqlAlienSystemTypeNameSpec

      public SqlAlienSystemTypeNameSpec(String typeAlias, SqlTypeName typeName, int precision, SqlParserPos pos)
      Creates a SqlAlienSystemTypeNameSpec instance.
      Parameters:
      typeAlias - Type alias of the alien system
      typeName - Type name the typeAlias implies as the (standard) basic type name
      precision - Type Precision
      pos - The parser position
  • Method Details