Enum SqlTypeFamily

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SqlTypeFamily>, RelDataTypeFamily

    public enum SqlTypeFamily
    extends java.lang.Enum<SqlTypeFamily>
    implements RelDataTypeFamily
    SqlTypeFamily provides SQL type categorization.

    The primary family categorization is a complete disjoint partitioning of SQL types into families, where two types are members of the same primary family iff instances of the two types can be the operands of an SQL equality predicate such as WHERE v1 = v2. Primary families are returned by RelDataType.getFamily().

    There is also a secondary family categorization which overlaps with the primary categorization. It is used in type strategies for more specific or more general categorization than the primary families. Secondary families are never returned by RelDataType.getFamily().

    • Field Detail


        private static final java.util.Map<java.lang.Integer,​SqlTypeFamily> JDBC_TYPE_TO_FAMILY
    • Constructor Detail

      • SqlTypeFamily

        private SqlTypeFamily()
    • Method Detail

      • values

        public static SqlTypeFamily[] 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 (SqlTypeFamily c : SqlTypeFamily.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SqlTypeFamily 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
      • getFamilyForJdbcType

        public static SqlTypeFamily getFamilyForJdbcType​(int jdbcType)
        Gets the primary family containing a JDBC type.
        jdbcType - the JDBC type of interest
        containing family
      • getTypeNames

        public java.util.Collection<SqlTypeName> getTypeNames()
        collection of SqlTypeNames included in this family
      • contains

        public boolean contains​(RelDataType type)