Date now = new Date(System.currentTimeMillis());
String tmp;
Long val;
val = (Long)data.get(Comment.COMMENT_ID);
statement.setLong(COMMENT_ID, val.longValue());
statement.setDate(CREATED, now);
statement.setString(APPROVED, "N");
tmp = (String)data.get(Comment.EMAIL);
if( tmp == null ) {
statement.setNull(EMAIL, Types.VARCHAR);
}
else {
statement.setString(EMAIL, tmp);
}
statement.setString(NAME, (String)data.get(Comment.NAME));
statement.setString(COMMENT, (String)data.get(Comment.COMMENT));
statement.executeUpdate();
data.put(Comment.CREATED, now);
return null;