Package org.apache.calcite.sql
Enum SqlJdbcDataTypeName
- java.lang.Object
-
- java.lang.Enum<SqlJdbcDataTypeName>
-
- org.apache.calcite.sql.SqlJdbcDataTypeName
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SqlJdbcDataTypeName>
public enum SqlJdbcDataTypeName extends java.lang.Enum<SqlJdbcDataTypeName>
Defines the name of the types which can occur as a type argument in a JDBC{fn CONVERT(value, type)}
function. (This function has similar functionality toCAST
, and is not to be confused with the SQL standardCONVERT
function.)- See Also:
SqlJdbcFunctionCall
-
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description private org.apache.calcite.avatica.util.TimeUnitRange
range
private SqlTypeName
typeName
-
Constructor Summary
Constructors Modifier Constructor Description private
SqlJdbcDataTypeName(org.apache.calcite.avatica.util.TimeUnitRange range)
private
SqlJdbcDataTypeName(SqlTypeName typeName)
private
SqlJdbcDataTypeName(SqlTypeName typeName, org.apache.calcite.avatica.util.TimeUnitRange range)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlNode
createDataType(SqlParserPos pos)
Creates a parse tree node for a type identifier of this name.SqlLiteral
symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword at a particular position in the parsed text.static SqlJdbcDataTypeName
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SqlJdbcDataTypeName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SQL_CHAR
public static final SqlJdbcDataTypeName SQL_CHAR
-
SQL_VARCHAR
public static final SqlJdbcDataTypeName SQL_VARCHAR
-
SQL_DATE
public static final SqlJdbcDataTypeName SQL_DATE
-
SQL_TIME
public static final SqlJdbcDataTypeName SQL_TIME
-
SQL_TIME_WITH_LOCAL_TIME_ZONE
public static final SqlJdbcDataTypeName SQL_TIME_WITH_LOCAL_TIME_ZONE
-
SQL_TIMESTAMP
public static final SqlJdbcDataTypeName SQL_TIMESTAMP
-
SQL_TIMESTAMP_WITH_LOCAL_TIME_ZONE
public static final SqlJdbcDataTypeName SQL_TIMESTAMP_WITH_LOCAL_TIME_ZONE
-
SQL_DECIMAL
public static final SqlJdbcDataTypeName SQL_DECIMAL
-
SQL_NUMERIC
public static final SqlJdbcDataTypeName SQL_NUMERIC
-
SQL_BOOLEAN
public static final SqlJdbcDataTypeName SQL_BOOLEAN
-
SQL_INTEGER
public static final SqlJdbcDataTypeName SQL_INTEGER
-
SQL_BINARY
public static final SqlJdbcDataTypeName SQL_BINARY
-
SQL_VARBINARY
public static final SqlJdbcDataTypeName SQL_VARBINARY
-
SQL_TINYINT
public static final SqlJdbcDataTypeName SQL_TINYINT
-
SQL_SMALLINT
public static final SqlJdbcDataTypeName SQL_SMALLINT
-
SQL_BIGINT
public static final SqlJdbcDataTypeName SQL_BIGINT
-
SQL_REAL
public static final SqlJdbcDataTypeName SQL_REAL
-
SQL_DOUBLE
public static final SqlJdbcDataTypeName SQL_DOUBLE
-
SQL_FLOAT
public static final SqlJdbcDataTypeName SQL_FLOAT
-
SQL_INTERVAL_YEAR
public static final SqlJdbcDataTypeName SQL_INTERVAL_YEAR
-
SQL_INTERVAL_YEAR_TO_MONTH
public static final SqlJdbcDataTypeName SQL_INTERVAL_YEAR_TO_MONTH
-
SQL_INTERVAL_MONTH
public static final SqlJdbcDataTypeName SQL_INTERVAL_MONTH
-
SQL_INTERVAL_DAY
public static final SqlJdbcDataTypeName SQL_INTERVAL_DAY
-
SQL_INTERVAL_DAY_TO_HOUR
public static final SqlJdbcDataTypeName SQL_INTERVAL_DAY_TO_HOUR
-
SQL_INTERVAL_DAY_TO_MINUTE
public static final SqlJdbcDataTypeName SQL_INTERVAL_DAY_TO_MINUTE
-
SQL_INTERVAL_DAY_TO_SECOND
public static final SqlJdbcDataTypeName SQL_INTERVAL_DAY_TO_SECOND
-
SQL_INTERVAL_HOUR
public static final SqlJdbcDataTypeName SQL_INTERVAL_HOUR
-
SQL_INTERVAL_HOUR_TO_MINUTE
public static final SqlJdbcDataTypeName SQL_INTERVAL_HOUR_TO_MINUTE
-
SQL_INTERVAL_HOUR_TO_SECOND
public static final SqlJdbcDataTypeName SQL_INTERVAL_HOUR_TO_SECOND
-
SQL_INTERVAL_MINUTE
public static final SqlJdbcDataTypeName SQL_INTERVAL_MINUTE
-
SQL_INTERVAL_MINUTE_TO_SECOND
public static final SqlJdbcDataTypeName SQL_INTERVAL_MINUTE_TO_SECOND
-
SQL_INTERVAL_SECOND
public static final SqlJdbcDataTypeName SQL_INTERVAL_SECOND
-
-
Field Detail
-
range
private final org.apache.calcite.avatica.util.TimeUnitRange range
-
typeName
private final SqlTypeName typeName
-
-
Constructor Detail
-
SqlJdbcDataTypeName
private SqlJdbcDataTypeName(SqlTypeName typeName)
-
SqlJdbcDataTypeName
private SqlJdbcDataTypeName(org.apache.calcite.avatica.util.TimeUnitRange range)
-
SqlJdbcDataTypeName
private SqlJdbcDataTypeName(SqlTypeName typeName, org.apache.calcite.avatica.util.TimeUnitRange range)
-
-
Method Detail
-
values
public static SqlJdbcDataTypeName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SqlJdbcDataTypeName c : SqlJdbcDataTypeName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlJdbcDataTypeName valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
symbol
public SqlLiteral symbol(SqlParserPos pos)
Creates a parse-tree node representing an occurrence of this keyword at a particular position in the parsed text.
-
createDataType
public SqlNode createDataType(SqlParserPos pos)
Creates a parse tree node for a type identifier of this name.
-
-