Logo Search packages:      
Sourcecode: mysql-connector-java version File versions

Field com::mysql::jdbc::ResultSetMetaData::getField ( int  columnIndex  )  throws SQLException [inline, protected]

Returns the field instance for the given column index

Parameters:
columnIndex the column number to retrieve a field instance for
Returns:
the field instance for the given column index
Exceptions:
SQLException if an error occurs

Definition at line 702 of file ResultSetMetaData.java.

References com::mysql::jdbc::Field::length.

Referenced by getCatalogName(), getColumnCharacterSet(), getColumnClassName(), getColumnDisplaySize(), getColumnName(), getColumnType(), getColumnTypeName(), getPrecision(), getScale(), getTableName(), isAutoIncrement(), isCaseSensitive(), isNullable(), isReadOnly(), and isSigned().

                                                                  {
        if ((columnIndex < 1) || (columnIndex > this.fields.length)) {
            throw new SQLException(Messages.getString("ResultSetMetaData.46"), //$NON-NLS-1$
                SQLError.SQL_STATE_INVALID_COLUMN_NUMBER);
        }

        return this.fields[columnIndex - 1];
    }


Generated by  Doxygen 1.6.0   Back to index