Enum ColumnMetaData.Rep

    • Field Detail

      • clazz

        public final java.lang.Class clazz
      • typeId

        public final int typeId
      • VALUE_MAP

        public static final java.util.Map<java.lang.Class,​ColumnMetaData.Rep> VALUE_MAP
    • Constructor Detail

      • Rep

        private Rep​(java.lang.Class clazz,
                    int typeId)
    • Method Detail

      • values

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

        public static ColumnMetaData.Rep 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 name
        java.lang.NullPointerException - if the argument is null
      • jdbcGet

        public java.lang.Object jdbcGet​(java.sql.ResultSet resultSet,
                                        int i)
                                 throws java.sql.SQLException
        Returns the value of a column of this type from a result set.
        Throws:
        java.sql.SQLException
      • nonPrimitiveRepOf

        public static ColumnMetaData.Rep nonPrimitiveRepOf​(SqlType type)
        Computes the given JDBC type for a primitive to the corresponding ColumnMetaData.Rep for the equivalent Object type. If the provided type is not for a primitive, a ColumnMetaData.Rep for the provided Object is returned.
        Parameters:
        type - The type of a value (based on Types).
        Returns:
        The corresponding non-primitive ColumnMetaData.Rep for the given type.
      • serialRepOf

        public static ColumnMetaData.Rep serialRepOf​(SqlType type)
        Computes the given JDBC type into the ColumnMetaData.Rep for the wire (serial) form of that type.
        Parameters:
        type - The type of a value (based on Types).
        Returns:
        The corresponding ColumnMetaData.Rep for the serial form of the type.