Blogroll

Tech Travels

Menu

Widgets

Search

java: testing empty resultset

I really don’t understand why the java.sql.ResultSet don’t provide an isEmpty() method or something similar and it’s true that I rarely need this method, however, sometimes this happen. Here is how I test for empty resultset in java.