sql.append("(collection_id, project_id, active, ");
sql.append("status, created, expires) values ");
sql.append("(?, ?, ?, ?, now(), ?) ");
QueryParser qp = new QueryParser(sql.toString());
qp.addPreparedStmtElementDefinition(collection.getCollectionId());
qp.addPreparedStmtElementDefinition(collection.getProjectId());
qp.addPreparedStmtElementDefinition(collection.isActive());
qp.addPreparedStmtElementDefinition(QueryParserElement.INT, collection
.getStatus() <= 0 ? null : collection.getStatus());
qp.addPreparedStmtElementDefinition(QueryParserElement.TIMESTAMP,