public synchronized void queryExecuted(String hql, int rows, long time) { queryExecutionCount++; if (queryExecutionMaxTime<time) queryExecutionMaxTime=time; if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.executed(rows, time); } }
public synchronized void queryExecuted(String hql, int rows, long time) { queryExecutionCount++; if (queryExecutionMaxTime<time) { queryExecutionMaxTime=time; queryExecutionMaxTimeQueryString = hql; } if (hql!=null) { QueryStatistics qs = getQueryStatistics(hql); qs.executed(rows, time); } }