public synchronized boolean cancelQuery() throws JRException { if (queryRunning) { session.cancelQuery(); return true; } return false; }
public void cancelQuery() throws HibernateException { session.cancelQuery(); }