dc.setSQL("SELECT object_to_index , max(id) as id from dist_journal " +
" where journal_type = ? and serverid = ? GROUP BY id, object_to_index,time_entered ORDER BY time_entered ASC");
dc.addParam(JOURNAL_TYPE_CACHE);
dc.addParam(serverId);
List<Map<String, String>> results = dc.loadResults(con);
long id = 0;
for (Map<String, String> r : results) {
x.add(r.get("object_to_index"));
id = new Long(r.get("id"));
}