List of usage examples for javax.sql RowSet getFloat
float getFloat(int columnIndex) throws SQLException;
ResultSet
object as a float
in the Java programming language. From source file:com.oracle.tutorial.jdbc.JdbcRowSetSample.java
private void outputRowSet(RowSet rs) throws SQLException { rs.beforeFirst();//w w w .ja v a 2 s.co m while (rs.next()) { String coffeeName = rs.getString(1); int supplierID = rs.getInt(2); float price = rs.getFloat(3); int sales = rs.getInt(4); int total = rs.getInt(5); System.out.println(coffeeName + ", " + supplierID + ", " + price + ", " + sales + ", " + total); } }