Changeset 8421
- Timestamp:
- 2004-10-29T12:58:36+13:00 (19 years ago)
- Location:
- trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/DocumentList.java
r8408 r8421 401 401 System.out.println("Updating timestamps " + thisTimeStamp + " " + lastTimeStamp); 402 402 403 DocumentSQLWriter.touchDocument(document.getID(), this.connection, time.getTime() );403 DocumentSQLWriter.touchDocument(document.getID(), this.connection, time.getTime(), thisTimeStamp); 404 404 } 405 405 } -
trunk/gsdl3/src/java/org/greenstone/gsdl3/gs3build/doctypes/DocumentSQLWriter.java
r8408 r8421 15 15 } 16 16 17 public static boolean touchDocument(DocumentID docID, GS3SQLConnection connection, long touchTime )17 public static boolean touchDocument(DocumentID docID, GS3SQLConnection connection, long touchTime, long modTime) 18 18 { GS3SQLUpdate update = new GS3SQLUpdate("document"); 19 19 update.setWhere(new GS3SQLWhere(new GS3SQLWhereItem("DocID", "=", docID.toString()))); 20 20 update.addDate("IndexedDate", new java.sql.Timestamp(touchTime)); 21 update.addDate("ModifiedDate", new java.sql.Timestamp(modTime)); 21 22 connection.execute(update.toString()); 22 23 System.out.println(update.toString()); … … 57 58 else { 58 59 /* redundant code - not used... */ 59 GS3SQLUpdate update = new GS3SQLUpdate("document");60 update.setWhere(new GS3SQLWhere(new GS3SQLWhereItem("DocID", "=", document.getID().toString())));61 connection.execute(update.toString());60 // GS3SQLUpdate update = new GS3SQLUpdate("document"); 61 // update.setWhere(new GS3SQLWhere(new GS3SQLWhereItem("DocID", "=", document.getID().toString()))); 62 // connection.execute(update.toString()); 62 63 } 63 64 }
Note:
See TracChangeset
for help on using the changeset viewer.