boolean app = ((Boolean)data.get(Comment.APPROVED)).booleanValue();
ArrayList cmts = new ArrayList();
HashMap res = new HashMap();
res.put(COMMENTS, cmts);
statement.setString(APPROVED, (app ? "Y" : "N"));
results = statement.executeQuery();
while( results.next() ) {
Long cid = new Long(results.getLong(COMMENT_ID));
cmts.add(cid);
}
return res;