Код: Выделить всё
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;
}
Код: Выделить всё
public PagingBeanProcessor selectAll() throws SQLException {
PagingBeanProcessor bean = new PagingBeanProcessor();
String countQuery = bean.getCountQuery();
System.out.println("country dao-->"+countQuery);
Код: Выделить всё
country dao-->null
commons.utils.paging.CountQueryDAO
java.sql.SQLException: SQL statement to execute cannot be empty or null
С нетерпением жду
Подробнее здесь: https://stackoverflow.com/questions/791 ... ple-method
Мобильная версия