Class DBReader

java.lang.Object
  |
  +--DBReader

public class DBReader
extends java.lang.Object

A Class that creates an XML text document from a query to a relational DB containing a DOM representation


Constructor Summary
DBReader(java.lang.String user, java.lang.String password, java.lang.String dbstring)
          construct a DBReader instance.
 
Method Summary
static void main(java.lang.String[] args)
          main routine used for testing.
 java.lang.String readXMLDocument(long nodeid)
          Create an XML document from the database starting with the element having element_id nodeid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBReader

public DBReader(java.lang.String user,
                java.lang.String password,
                java.lang.String dbstring)
         throws java.io.IOException,
                java.sql.SQLException,
                java.lang.ClassNotFoundException
construct a DBReader instance. Generally, one calls readXMLDocument() after constructing the instance
Parameters:
user - the username to use for the database connection
password - the password to use for the database connection
dbstring - the connection info to use for the database connection
Method Detail

main

public static void main(java.lang.String[] args)
main routine used for testing. Usage: java DBReader [dbstring]
Parameters:
nodeid - the id number of the root of the subtree to display
user - the username to use for the database connection
password - the password to use for the database connection
dbstring - the connection info to use for the database connection

readXMLDocument

public java.lang.String readXMLDocument(long nodeid)
Create an XML document from the database starting with the element having element_id nodeid
Parameters:
nodeid - the node that will represent the root of the document