Not able to run very simple method
I am trying to set SQLQuery and trying to get its result via bean but unable to fix it. Here is my code: public static int countTotalNumberOfRecords(String countQuery) throws SQLException { CountQueryDAO db = new CountQueryDAO(); PagingBeanProcessor bean = new PagingBeanProcessor(); bean.setCountQuery(countQuery); bean = db.selectAll(); int totalRecords = bean.getTotalRecords(); return totalRecords; } This is how