Tuesday, November 29, 2011

How to retrieve a whole row of data at once, instead of calling an individual ResultSet.get XXX method for each column?

The ResultSet.getXXX methods are the only way to retrieve data from a ResultSet object, which means that you have to make a method call for each column of a row. It is unlikely that this is the cause of a performance problem, however, because it is difficult to see how a column could be fetched without at least the cost of a function call in any scenario. We welcome input from developers on this issue.
Category:JDBC Interview Questions

No comments:

Post a Comment