Class SPIResultSetMetaData

    • Constructor Detail

      • SPIResultSetMetaData

        public SPIResultSetMetaData​(TupleDesc tupleDesc)
        Constructor.
        Parameters:
        tupleDesc - The descriptor for the ResultSet tuples
    • Method Detail

      • getColumnClassName

        public final String getColumnClassName​(int column)
                                        throws SQLException

        Returns the fully-qualified name of the Java class whose instances are manufactured if the method ResultSet.getObject is called to retrieve a value from the column. ResultSet.getObject may return a subclass of the class returned by this method.

        Specified by:
        getColumnClassName in interface ResultSetMetaData
        Specified by:
        getColumnClassName in class AbstractResultSetMetaData
        Parameters:
        column - the first column is 1, the second is 2, ...
        Returns:
        the fully-qualified name of the class in the Java programming language that would be used by the method ResultSet.getObject to retrieve the value in the specified column. This is the class name used for custom mapping.
        Throws:
        SQLException - if a database access error occurs
        Since:
        1.2
      • getFieldLength

        protected final int getFieldLength​(int column)
                                    throws SQLException
        Gets column length. This method is called if the AbstractResultSet does not know how to get column length according to type OID. We retutn 0 because we don't know the proper length either.
        Specified by:
        getFieldLength in class AbstractResultSetMetaData
        Parameters:
        column - Column index
        Returns:
        column length
        Throws:
        SQLException - if an error occurs