public class SqlAlienSystemTypeNameSpec extends SqlBasicTypeNameSpec
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 and Description |
|---|
SqlAlienSystemTypeNameSpec(String typeAlias,
SqlTypeName typeName,
int precision,
SqlParserPos pos)
Creates a
SqlAlienSystemTypeNameSpec instance. |
SqlAlienSystemTypeNameSpec(String typeAlias,
SqlTypeName typeName,
SqlParserPos pos)
Creates a
SqlAlienSystemTypeNameSpec instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsDeep(SqlTypeNameSpec node,
Litmus litmus)
Returns whether this spec is structurally equivalent to another spec.
|
void |
unparse(SqlWriter writer,
int leftPrec,
int rightPrec)
Writes a SQL representation of this spec to a writer.
|
deriveType, getCharSetName, getPrecision, getScalegetParserPos, getTypeNamepublic SqlAlienSystemTypeNameSpec(String typeAlias, SqlTypeName typeName, SqlParserPos pos)
SqlAlienSystemTypeNameSpec instance.typeAlias - Type alias of the alien systemtypeName - Type name the typeAlias implies as the (standard) basic type namepos - The parser positionpublic SqlAlienSystemTypeNameSpec(String typeAlias, SqlTypeName typeName, int precision, SqlParserPos pos)
SqlAlienSystemTypeNameSpec instance.typeAlias - Type alias of the alien systemtypeName - Type name the typeAlias implies as the (standard) basic type nameprecision - Type Precisionpos - The parser positionpublic void unparse(SqlWriter writer, int leftPrec, int rightPrec)
SqlTypeNameSpecunparse in class SqlBasicTypeNameSpecpublic boolean equalsDeep(SqlTypeNameSpec node, Litmus litmus)
SqlTypeNameSpecequalsDeep in class SqlBasicTypeNameSpecCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.