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

float com::mysql::jdbc::ResultSet::getFloat ( int  columnIndex  )  throws SQLException [inline, inherited]

Get the value of a column in the current row as a Java float.

columnIndex the first column is 1, the second is 2,...
the column value; 0 if SQL NULL
SQLException if a database access error occurs

Definition at line 1171 of file ResultSet.java.

Referenced by com::mysql::jdbc::CallableStatement::getFloat().

        if (!this.isBinaryEncoded) {
            String val = null;

            val = getString(columnIndex);
            return getFloatFromString(val, columnIndex);

        return getNativeFloat(columnIndex);

Generated by  Doxygen 1.6.0   Back to index