if (stmt != null) stmt.close();
if (rs != null) rs.close();
}
} catch (SQLException e)
{
throw new PersistenceException("Failed to fetch stats.", e);
}
// Convert data
List<ReadStats> rstats = new LinkedList<ReadStats>();
for (Map.Entry<Long, Map<Long, Integer>> entry : stats.entrySet())