Revision 692
Added by bojilova over 23 years ago
QuerySpecification.java | ||
---|---|---|
54 | 54 |
|
55 | 55 |
// Query data structures |
56 | 56 |
private String meta_file_id; |
57 |
private String querytitle; |
|
57 |
// DOCTITLE attr cleared from the db |
|
58 |
// private String querytitle; |
|
58 | 59 |
private Vector doctypeList; |
59 | 60 |
private Vector returnFieldList; |
60 | 61 |
private Vector ownerList; |
... | ... | |
265 | 266 |
String currentTag = currentNode.getTagName(); |
266 | 267 |
if (currentTag.equals("meta_file_id")) { |
267 | 268 |
meta_file_id = inputString; |
268 |
} else if (currentTag.equals("querytitle")) { |
|
269 |
querytitle = inputString; |
|
269 |
// DOCTITLE attr cleared from the db |
|
270 |
// } else if (currentTag.equals("querytitle")) { |
|
271 |
// querytitle = inputString; |
|
270 | 272 |
} else if (currentTag.equals("value")) { |
271 | 273 |
currentValue = inputString; |
272 | 274 |
} else if (currentTag.equals("pathexpr")) { |
... | ... | |
290 | 292 |
public String printSQL() { |
291 | 293 |
StringBuffer self = new StringBuffer(); |
292 | 294 |
|
293 |
self.append("SELECT docid,docname,doctype,doctitle,");
|
|
295 |
self.append("SELECT docid,docname,doctype,"); |
|
294 | 296 |
self.append("date_created, date_updated, rev "); |
295 | 297 |
self.append("FROM xml_documents WHERE docid IN ("); |
296 | 298 |
|
... | ... | |
492 | 494 |
{ |
493 | 495 |
StringBuffer self = new StringBuffer(); |
494 | 496 |
|
495 |
self.append("SELECT docid,docname,doctype,doctitle,");
|
|
497 |
self.append("SELECT docid,docname,doctype,"); |
|
496 | 498 |
self.append("date_created, date_updated "); |
497 | 499 |
self.append("FROM xml_documents WHERE docid IN ("); |
498 | 500 |
self.append(docid).append(")"); |
... | ... | |
504 | 506 |
* This should become a way to get the XML serialization of the query. |
505 | 507 |
*/ |
506 | 508 |
public String toString() { |
507 |
return "meta_file_id=" + meta_file_id + "\n" + |
|
508 |
"querytitle=" + querytitle + "\n" + query; |
|
509 |
return "meta_file_id=" + meta_file_id + "\n" + query; |
|
510 |
//DOCTITLE attr cleared from the db |
|
511 |
// return "meta_file_id=" + meta_file_id + "\n" + |
|
512 |
// "querytitle=" + querytitle + "\n" + query; |
|
509 | 513 |
} |
510 | 514 |
|
511 | 515 |
/** a utility class that represents a group of terms in a query */ |
Also available in: Unified diff
there were more mentions of DOCTITLE attr - cleared them