Here you can find the source of isResultEmpty(ResultSet theResult)
protected static boolean isResultEmpty(ResultSet theResult) throws SQLException
//package com.java2s; /**//from www.ja v a2 s. c o m * ClarescoExperienceAPI * Copyright * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. * * Please contact Claresco, www.claresco.com, if you have any questions. **/ import java.sql.ResultSet; import java.sql.SQLException; public class Main { protected static boolean isResultEmpty(ResultSet theResult) throws SQLException { if (!theResult.isBeforeFirst()) { return true; } return false; } }