Project

General

Profile

« Previous | Next » 

Revision 396

Added by Matt Jones over 23 years ago

Folded the functionality from DBSAXDocument into the DocumentImpl class.
Now DocumentImpl handles both the reads and the writes to the database.
Eventually, it will implment the full DOM Document interface. Eliminated
the DBSAXDocument.java file as it is no longer relevant.

Updated DBSAXHandler, DBSAXNode, and DBWriter to use the new class.

Some methods from DBWriter should probably be moved into DocumentImpl,
such as the "write" and "delete" methods. Need to evaluate the consequences
of making such a change.

View differences:

DBSAXNode.java
49 49
   * @param parentNode the parent node for this node being created
50 50
   */
51 51
  public DBSAXNode (Connection conn, String tagname, DBSAXNode parentNode, 
52
                    DBSAXDocument currentDocument) {
52
                    DocumentImpl currentDocument) {
53 53

  
54 54
    super(tagname);
55 55
    setParentID(parentNode.getNodeID());
......
303 303
    return parentNode;
304 304
  }
305 305
}
306

  
307
/**
308
 * '$Log$
309
 * 'Revision 1.33  2000/08/03 23:17:19  bojilova
310
 * 'DBSAXNode constructor simplified
311
 * '
312
 * 'Revision 1.32  2000/06/27 04:31:07  jones
313
 * 'Fixed bugs associated with the new UPDATE and DELETE functions of
314
 * 'DBWriter.  There were problematic interactions between some static
315
 * 'variables used in DBEntityResolver and the way in which the
316
 * 'Servlet objects are re-used across multiple client invocations.
317
 * '
318
 * 'Generally cleaned up error reporting.  Now all errors and success
319
 * 'results are reported as XML documents from MetaCatServlet.  Need
320
 * 'to make the command line tools do the same.
321
 * '
322
 * 'Revision 1.31  2000/06/26 10:35:05  jones
323
 * 'Merged in substantial changes to DBWriter and associated classes and to
324
 * 'the MetaCatServlet in order to accomodate the new UPDATE and DELETE
325
 * 'functions.  The command line tools and the parameters for the
326
 * 'servlet have changed substantially.
327
 * '
328
 * 'Revision 1.30.2.2  2000/06/25 23:38:16  jones
329
 * 'Added RCSfile keyword
330
 * '
331
 * 'Revision 1.30.2.1  2000/06/25 23:34:17  jones
332
 * 'Changed documentation formatting, added log entries at bottom of source files
333
 * ''
334
 */

Also available in: Unified diff