Enum 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 to CAST, and is not to be confused with the SQL standard CONVERT function.)
    See Also:
    • Field Detail

      • range

        private final org.apache.calcite.avatica.util.TimeUnitRange range
    • 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())
        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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.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.