// get messages
sql = "select msg, nodeid, id_f, ts from dbmq_messages_t ";
sql += "where id_f IN ("+qmarks(ids.size())+")";
c.prepare(sql);
for (Long id : ids) { c.param(id); }
for (List<Object> row : c.select()) {
String msg = (String)row.get(0);
String nodeid = (String)row.get(1);
long id = (Integer)row.get(2);
Time ts = new Time((java.util.Date)row.get(3));