How do I get the size of a java.sql.ResultSet?
Shouldn’t this be a pretty straightforward operation? However, I see there’s neither a size() nor length() method. 15 Answers 15
Shouldn’t this be a pretty straightforward operation? However, I see there’s neither a size() nor length() method. 15 Answers 15
In Java I’m trying to test for a null value, from a ResultSet, where the column is being cast to a primitive int type. int iVal; ResultSet rs = magicallyAppearingStmt.executeQuery(query); if (rs.next()) { if (rs.getObject(“ID_PARENT”) != null && !rs.wasNull()) { iVal = rs.getInt(“ID_PARENT”); } } From the code fragment above, is there a better way … Read more
How do I get the size of a java.sql.ResultSet?