Project

General

Profile

« Previous | Next » 

Revision 31

documentation additions

View differences:

DBSAXWriter.java
25 25

  
26 26
import oracle.xml.parser.v2.SAXParser;
27 27

  
28
/**
29
 * A Class that reads in an XML text document and
30
 * write its contents to a database connection using SAX
31
 */
28 32
public class DBSAXWriter {
29 33

  
30 34
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
31 35
  private Connection	conn = null;
32 36

  
37
  /**
38
   * the main routine used to test the DBSAXWriter utility.
39
   *
40
   * Usage: java DBSAXWriter <filename> <user> <password> [dbstring]
41
   *
42
   * @param filename the filename to be loaded into the database
43
   * @param user the username to use for the database connection
44
   * @param password the password to use for the database connection
45
   * @param dbstring the connection info to use for the database connection
46
   */
33 47
  static public void main(String[] args) {
34 48
     
35 49
     if (args.length < 3)
......
63 77
     }
64 78
  }
65 79
  
80
  /**
81
   * construct a new instance of the class to write an XML file to the database
82
   *
83
   * @param filename the filename to be loaded into the database
84
   * @param user the username to use for the database connection
85
   * @param password the password to use for the database connection
86
   * @param dbstring the connection info to use for the database connection
87
   */
66 88
  public DBSAXWriter( String filename, String user, 
67 89
                  String password, String dbstring) 
68 90
                  throws IOException, 
......
121 143

  
122 144
   }
123 145
  
146
   /** Utility method to establish the JDBC connection */
124 147
   private Connection openDBConnection(String dbDriver, String connection,
125 148
                String user, String password)
126 149
                throws SQLException, ClassNotFoundException {
......
132 155
     return conn;
133 156
   }
134 157

  
158
   /** Utility method to convert a file handle into a URL */
135 159
   static public URL fileToURL(File file) 
136 160
   {
137 161
     String path = file.getAbsolutePath();
DBSAXHandler.java
22 22

  
23 23
import oracle.xml.parser.v2.SAXParser;
24 24

  
25
/** 
26
 * A database aware Class implementing callback bethods for the SAX parser to
27
 * call when processing the XML stream and generating events
28
 */
25 29
public class DBSAXHandler extends DefaultXMLDocumentHandler
26 30
{
27 31

  
......
30 34
   private Stack 	elementStack;
31 35
   private Connection	conn = null;
32 36

  
37
   /** Construct an instance of the handler class 
38
    *
39
    * @param conn the JDBC connection to which information is written
40
    */
33 41
   public DBSAXHandler(Connection conn)
34 42
   {
35 43
      this.conn = conn;
......
43 51

  
44 52
   }
45 53
 
54
   /** SAX Handler that is called at the start of each XML element */
46 55
   public void startElement(NSName name, SAXAttrList atts) throws SAXException 
47 56
   {
48 57

  
......
102 111

  
103 112
   }
104 113

  
114
   /** SAX Handler that is called for each XML text node */
105 115
   public void characters(char[] cbuf, int start, int len)
106 116
   {
107 117
      DBSAXElement currentElement = (DBSAXElement)elementStack.peek();
108 118
      currentElement.appendContent(cbuf,start,len);
109 119
   }
110 120

  
121
   /** 
122
    * SAX Handler that is called for each XML text node that is Ignorable
123
    * white space
124
    */
111 125
   public void ignorableWhitespace(char[] cbuf, int start, int len)
112 126
   {
113 127
   }
114 128

  
129
   /** SAX Handler that is called at the end of each XML element */
115 130
   public void endElement(NSName name) throws SAXException 
116 131
   {
117 132
      // Use the methods getQualifiedName(), getLocalName(), getNamespace()
src/edu/ucsb/nceas/metacat/DBSAXHandler.java
22 22

  
23 23
import oracle.xml.parser.v2.SAXParser;
24 24

  
25
/** 
26
 * A database aware Class implementing callback bethods for the SAX parser to
27
 * call when processing the XML stream and generating events
28
 */
25 29
public class DBSAXHandler extends DefaultXMLDocumentHandler
26 30
{
27 31

  
......
30 34
   private Stack 	elementStack;
31 35
   private Connection	conn = null;
32 36

  
37
   /** Construct an instance of the handler class 
38
    *
39
    * @param conn the JDBC connection to which information is written
40
    */
33 41
   public DBSAXHandler(Connection conn)
34 42
   {
35 43
      this.conn = conn;
......
43 51

  
44 52
   }
45 53
 
54
   /** SAX Handler that is called at the start of each XML element */
46 55
   public void startElement(NSName name, SAXAttrList atts) throws SAXException 
47 56
   {
48 57

  
......
102 111

  
103 112
   }
104 113

  
114
   /** SAX Handler that is called for each XML text node */
105 115
   public void characters(char[] cbuf, int start, int len)
106 116
   {
107 117
      DBSAXElement currentElement = (DBSAXElement)elementStack.peek();
108 118
      currentElement.appendContent(cbuf,start,len);
109 119
   }
110 120

  
121
   /** 
122
    * SAX Handler that is called for each XML text node that is Ignorable
123
    * white space
124
    */
111 125
   public void ignorableWhitespace(char[] cbuf, int start, int len)
112 126
   {
113 127
   }
114 128

  
129
   /** SAX Handler that is called at the end of each XML element */
115 130
   public void endElement(NSName name) throws SAXException 
116 131
   {
117 132
      // Use the methods getQualifiedName(), getLocalName(), getNamespace()
src/edu/ucsb/nceas/metacat/ElementNode.java
16 16
import java.util.Vector;
17 17
import java.util.Enumeration;
18 18

  
19
/**
20
 * A Class that represents an XML element and its contents,
21
 * and can build itself from a database connection
22
 */
19 23
public class ReaderElement extends BasicElement {
20 24

  
21 25
    private Connection	conn;
22 26
    private Vector	children;
23 27

  
28
    /** 
29
     * Construct a new ReaderElement instance
30
     *
31
     * @param conn the database connection to use to initialize 
32
     */
24 33
    public ReaderElement (Connection conn) {
25 34
      this.conn = conn;
26 35
      this.children = new Vector();
27 36
    }
28 37

  
38
    /** 
39
     * Construct a new ReaderElement instance
40
     *
41
     * @param conn the database connection to use to initialize 
42
     * @param nodeid the element_id for the node to be created
43
     */
29 44
    public ReaderElement (Connection conn, long nodeid) {
30 45
      this(conn);
31 46

  
......
36 51
      setChildrenNodes(nodeid);
37 52
    }
38 53

  
54
    /** 
55
     * Construct a new ReaderElement instance
56
     *
57
     * @param conn the database connection to use to initialize 
58
     * @param nodeid the element_id for the node to be created
59
     * @param parentnodeid the id of the parent node
60
     * @param nodename the name of the element
61
     * @param nodedata the text content of the node
62
     */
39 63
    public ReaderElement (Connection conn, long nodeid, long parentnodeid,
40 64
                          String nodename, String nodedata) {
41 65
      this(conn);
......
156 180

  
157 181
    }
158 182

  
159
    /** String representation for display purposes */
183
    /** 
184
     * String representation for display purposes (recursively descends through
185
     * children to create an XML subtree)
186
     */
160 187
    public String toString ()
161 188
    {
162 189
        StringBuffer value = new StringBuffer();
src/edu/ucsb/nceas/metacat/DBWriter.java
25 25

  
26 26
import oracle.xml.parser.v2.SAXParser;
27 27

  
28
/**
29
 * A Class that reads in an XML text document and
30
 * write its contents to a database connection using SAX
31
 */
28 32
public class DBSAXWriter {
29 33

  
30 34
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
31 35
  private Connection	conn = null;
32 36

  
37
  /**
38
   * the main routine used to test the DBSAXWriter utility.
39
   *
40
   * Usage: java DBSAXWriter <filename> <user> <password> [dbstring]
41
   *
42
   * @param filename the filename to be loaded into the database
43
   * @param user the username to use for the database connection
44
   * @param password the password to use for the database connection
45
   * @param dbstring the connection info to use for the database connection
46
   */
33 47
  static public void main(String[] args) {
34 48
     
35 49
     if (args.length < 3)
......
63 77
     }
64 78
  }
65 79
  
80
  /**
81
   * construct a new instance of the class to write an XML file to the database
82
   *
83
   * @param filename the filename to be loaded into the database
84
   * @param user the username to use for the database connection
85
   * @param password the password to use for the database connection
86
   * @param dbstring the connection info to use for the database connection
87
   */
66 88
  public DBSAXWriter( String filename, String user, 
67 89
                  String password, String dbstring) 
68 90
                  throws IOException, 
......
121 143

  
122 144
   }
123 145
  
146
   /** Utility method to establish the JDBC connection */
124 147
   private Connection openDBConnection(String dbDriver, String connection,
125 148
                String user, String password)
126 149
                throws SQLException, ClassNotFoundException {
......
132 155
     return conn;
133 156
   }
134 157

  
158
   /** Utility method to convert a file handle into a URL */
135 159
   static public URL fileToURL(File file) 
136 160
   {
137 161
     String path = file.getAbsolutePath();
src/edu/ucsb/nceas/metacat/DBSimpleQuery.java
1 1
/**
2 2
 *        Name: DBSimpleQuery.java
3
 *     Purpose: A Class that searches a relational DB for XPath expressions
4
 *              and returns a reult set consisting of the root nodeid for
3
 *     Purpose: A Class that searches a relational DB for elements and 
4
 *              attributes that have free text matches to the query string.  
5
 *              It returns a result set consisting of the root nodeid for 
5 6
 *              each document that satisfies the query
6 7
 * Institution: National Center for Ecological Analysis and Synthesis
7 8
 *   Copyright: 2000
......
18 19
import java.util.Hashtable;
19 20
import java.util.Enumeration;
20 21

  
22
/** 
23
 * A Class that searches a relational DB for elements and attributes that
24
 * have free text matches to the query string.  It returns a result set 
25
 * consisting of the root nodeid for each document that satisfies the query
26
 */
21 27
public class DBSimpleQuery {
22 28

  
23 29
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
24 30
  private Connection	conn = null;
25 31

  
32
  /**
33
   * the main routine used to test the DBSimpleQuery utility.
34
   *
35
   * Usage: java DBSimpleQuery <query> <user> <password> [dbstring]
36
   *
37
   * @param query the text to search for in the element and attribute content
38
   * @param user the username to use for the database connection
39
   * @param password the password to use for the database connection
40
   * @param dbstring the connection info to use for the database connection
41
   */
26 42
  static public void main(String[] args) {
27 43
     
28 44
     if (args.length < 3)
......
71 87
     }
72 88
  }
73 89
  
90
  /**
91
   * construct an instance of the DBSimpleQuery class 
92
   *
93
   * Generally, one would call the findRootNodes() routine after creating 
94
   * an instance to specify the query to search for
95
   *
96
   * @param query the text to search for in the element and attribute content
97
   * @param user the username to use for the database connection
98
   * @param password the password to use for the database connection
99
   * @param dbstring the connection info to use for the database connection
100
   */
74 101
  private DBSimpleQuery( String user, String password, String dbstring) 
75 102
                  throws IOException, 
76 103
                         SQLException, 
......
83 110

  
84 111
  }
85 112
  
113
  /** Utility message to establish a JDBC database connection */
86 114
  private Connection openDBConnection(String dbDriver, String connection,
87 115
                String user, String password)
88 116
                throws SQLException, ClassNotFoundException {
......
94 122
     return conn;
95 123
  }
96 124

  
125
  /** 
126
   * routine to search the elements and attributes looking to match query
127
   *
128
   * @param query the text to search for
129
   */
97 130
  public Hashtable findRootNodes(String query) {
98 131
      Hashtable	nodeListResult = new Hashtable();
99 132
      Hashtable	rootListResult = new Hashtable();
src/edu/ucsb/nceas/metacat/BasicNode.java
14 14
import java.util.Hashtable;
15 15
import java.util.Enumeration;
16 16

  
17
/** A Class that represents an XML element and its contents */
17 18
public class BasicElement {
18 19

  
19 20
    private long		element_id;
......
22 23
    private long		parent_id;
23 24
    private Hashtable		attributes;
24 25

  
26
    /** Construct a Basic Element */
25 27
    public BasicElement () {
26 28
      content = new StringBuffer();
27 29
      attributes = new Hashtable(); 
28 30
    }
29 31

  
32
    /** Construct a Basic Element 
33
     *
34
     * @param tagname the name of the element
35
     * @param parent_id the id number of the parent element
36
     */
30 37
    public BasicElement (String tagname, long parent_id) {
31 38
      this();
32 39
      this.tagname = tagname;
33 40
      this.parent_id = parent_id;
34 41
    }
35 42
    
43
    /** Construct a Basic Element 
44
     *
45
     * @param element_id the id number of the element
46
     * @param tagname the name of the element
47
     * @param parent_id the id number of the parent element
48
     */
36 49
    public BasicElement (long element_id, String tagname, long parent_id) {
37 50
      this(tagname,parent_id);
38 51
      this.element_id = element_id;
39 52
    }
40 53

  
41
    // used by JTree to display this node
54
    /** convert the element to a string representation for display */
42 55
    public String toString ()
43 56
    {
44 57
	StringBuffer value = new StringBuffer();
......
136 149
    public String getContent() {
137 150
      return this.content.toString();
138 151
    }
139

  
140 152
}
src/edu/ucsb/nceas/metacat/DBSAXNode.java
15 15
import java.util.Hashtable;
16 16
import java.util.Enumeration;
17 17

  
18
/** 
19
 * A Class that represents an XML element and its contents and
20
 * can write its own representation to a database connection
21
 */
18 22
public class DBSAXElement extends BasicElement {
19 23

  
20 24
    private Connection		conn;
21 25

  
26
    /** 
27
     * Construct a new element instance
28
     *
29
     * @param conn the JDBC Connection to which all information is written
30
     * @param tagname the name of the element
31
     * @param parent_id the parent id number for this element
32
     */
22 33
    public DBSAXElement (Connection conn, String tagname, 
23 34
                         long parent_id) {
24 35

  
src/edu/ucsb/nceas/metacat/DBReader.java
15 15
import java.sql.*;
16 16
import java.util.Stack;
17 17

  
18
/** 
19
 * A Class that creates an XML text document
20
 * from a query to a relational DB containing a DOM representation
21
 */
18 22
public class DBReader {
19 23

  
20 24
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
21 25
  private Connection	conn = null;
22 26

  
27
  /**
28
   * main routine used for testing.
29
   *
30
   * Usage: java DBReader <nodeid> <user> <password> [dbstring]
31
   *
32
   * @param nodeid the id number of the root of the subtree to display
33
   * @param user the username to use for the database connection
34
   * @param password the password to use for the database connection
35
   * @param dbstring the connection info to use for the database connection
36
   */
23 37
  static public void main(String[] args) {
24 38
     
25 39
     if (args.length < 3)
......
44 58
          }
45 59

  
46 60
          DBReader rd = new DBReader(user, password, dbstring);
47
          String xml = rd.readDocument(nodeid);
61
          String xml = rd.readXMLDocument(nodeid);
48 62
          System.out.println(xml);
49 63

  
50 64
        } catch (Exception e) {
......
55 69
     }
56 70
  }
57 71
  
72
  /**
73
   * construct a DBReader instance.
74
   *
75
   * Generally, one calls readXMLDocument() after constructing the instance
76
   *
77
   * @param user the username to use for the database connection
78
   * @param password the password to use for the database connection
79
   * @param dbstring the connection info to use for the database connection
80
   */
58 81
  public DBReader( String user, String password, String dbstring) 
59 82
                  throws IOException, 
60 83
                         SQLException, 
......
67 90

  
68 91
  }
69 92
  
93
  /** open a connection to the database with the supplied information */
70 94
  private Connection openDBConnection(String dbDriver, String connection,
71 95
                String user, String password)
72 96
                throws SQLException, ClassNotFoundException {
......
78 102
     return conn;
79 103
  }
80 104

  
81
  public String readDocument(long nodeid) {
105
  /**
106
   * Create an XML document from the database starting with the element 
107
   * having element_id nodeid
108
   *
109
   * @param nodeid the node that will represent the root of the document
110
   */
111
  public String readXMLDocument(long nodeid) {
82 112
    StringBuffer doc = new StringBuffer();
83 113

  
84 114
    ReaderElement element = new ReaderElement(conn, nodeid);
src/edu/ucsb/nceas/metacat/BasicElement.java
14 14
import java.util.Hashtable;
15 15
import java.util.Enumeration;
16 16

  
17
/** A Class that represents an XML element and its contents */
17 18
public class BasicElement {
18 19

  
19 20
    private long		element_id;
......
22 23
    private long		parent_id;
23 24
    private Hashtable		attributes;
24 25

  
26
    /** Construct a Basic Element */
25 27
    public BasicElement () {
26 28
      content = new StringBuffer();
27 29
      attributes = new Hashtable(); 
28 30
    }
29 31

  
32
    /** Construct a Basic Element 
33
     *
34
     * @param tagname the name of the element
35
     * @param parent_id the id number of the parent element
36
     */
30 37
    public BasicElement (String tagname, long parent_id) {
31 38
      this();
32 39
      this.tagname = tagname;
33 40
      this.parent_id = parent_id;
34 41
    }
35 42
    
43
    /** Construct a Basic Element 
44
     *
45
     * @param element_id the id number of the element
46
     * @param tagname the name of the element
47
     * @param parent_id the id number of the parent element
48
     */
36 49
    public BasicElement (long element_id, String tagname, long parent_id) {
37 50
      this(tagname,parent_id);
38 51
      this.element_id = element_id;
39 52
    }
40 53

  
41
    // used by JTree to display this node
54
    /** convert the element to a string representation for display */
42 55
    public String toString ()
43 56
    {
44 57
	StringBuffer value = new StringBuffer();
......
136 149
    public String getContent() {
137 150
      return this.content.toString();
138 151
    }
139

  
140 152
}
src/edu/ucsb/nceas/metacat/DBSAXElement.java
15 15
import java.util.Hashtable;
16 16
import java.util.Enumeration;
17 17

  
18
/** 
19
 * A Class that represents an XML element and its contents and
20
 * can write its own representation to a database connection
21
 */
18 22
public class DBSAXElement extends BasicElement {
19 23

  
20 24
    private Connection		conn;
21 25

  
26
    /** 
27
     * Construct a new element instance
28
     *
29
     * @param conn the JDBC Connection to which all information is written
30
     * @param tagname the name of the element
31
     * @param parent_id the parent id number for this element
32
     */
22 33
    public DBSAXElement (Connection conn, String tagname, 
23 34
                         long parent_id) {
24 35

  
src/edu/ucsb/nceas/metacat/ReaderElement.java
16 16
import java.util.Vector;
17 17
import java.util.Enumeration;
18 18

  
19
/**
20
 * A Class that represents an XML element and its contents,
21
 * and can build itself from a database connection
22
 */
19 23
public class ReaderElement extends BasicElement {
20 24

  
21 25
    private Connection	conn;
22 26
    private Vector	children;
23 27

  
28
    /** 
29
     * Construct a new ReaderElement instance
30
     *
31
     * @param conn the database connection to use to initialize 
32
     */
24 33
    public ReaderElement (Connection conn) {
25 34
      this.conn = conn;
26 35
      this.children = new Vector();
27 36
    }
28 37

  
38
    /** 
39
     * Construct a new ReaderElement instance
40
     *
41
     * @param conn the database connection to use to initialize 
42
     * @param nodeid the element_id for the node to be created
43
     */
29 44
    public ReaderElement (Connection conn, long nodeid) {
30 45
      this(conn);
31 46

  
......
36 51
      setChildrenNodes(nodeid);
37 52
    }
38 53

  
54
    /** 
55
     * Construct a new ReaderElement instance
56
     *
57
     * @param conn the database connection to use to initialize 
58
     * @param nodeid the element_id for the node to be created
59
     * @param parentnodeid the id of the parent node
60
     * @param nodename the name of the element
61
     * @param nodedata the text content of the node
62
     */
39 63
    public ReaderElement (Connection conn, long nodeid, long parentnodeid,
40 64
                          String nodename, String nodedata) {
41 65
      this(conn);
......
156 180

  
157 181
    }
158 182

  
159
    /** String representation for display purposes */
183
    /** 
184
     * String representation for display purposes (recursively descends through
185
     * children to create an XML subtree)
186
     */
160 187
    public String toString ()
161 188
    {
162 189
        StringBuffer value = new StringBuffer();
src/edu/ucsb/nceas/metacat/DBSAXWriter.java
25 25

  
26 26
import oracle.xml.parser.v2.SAXParser;
27 27

  
28
/**
29
 * A Class that reads in an XML text document and
30
 * write its contents to a database connection using SAX
31
 */
28 32
public class DBSAXWriter {
29 33

  
30 34
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
31 35
  private Connection	conn = null;
32 36

  
37
  /**
38
   * the main routine used to test the DBSAXWriter utility.
39
   *
40
   * Usage: java DBSAXWriter <filename> <user> <password> [dbstring]
41
   *
42
   * @param filename the filename to be loaded into the database
43
   * @param user the username to use for the database connection
44
   * @param password the password to use for the database connection
45
   * @param dbstring the connection info to use for the database connection
46
   */
33 47
  static public void main(String[] args) {
34 48
     
35 49
     if (args.length < 3)
......
63 77
     }
64 78
  }
65 79
  
80
  /**
81
   * construct a new instance of the class to write an XML file to the database
82
   *
83
   * @param filename the filename to be loaded into the database
84
   * @param user the username to use for the database connection
85
   * @param password the password to use for the database connection
86
   * @param dbstring the connection info to use for the database connection
87
   */
66 88
  public DBSAXWriter( String filename, String user, 
67 89
                  String password, String dbstring) 
68 90
                  throws IOException, 
......
121 143

  
122 144
   }
123 145
  
146
   /** Utility method to establish the JDBC connection */
124 147
   private Connection openDBConnection(String dbDriver, String connection,
125 148
                String user, String password)
126 149
                throws SQLException, ClassNotFoundException {
......
132 155
     return conn;
133 156
   }
134 157

  
158
   /** Utility method to convert a file handle into a URL */
135 159
   static public URL fileToURL(File file) 
136 160
   {
137 161
     String path = file.getAbsolutePath();
DBReader.java
15 15
import java.sql.*;
16 16
import java.util.Stack;
17 17

  
18
/** 
19
 * A Class that creates an XML text document
20
 * from a query to a relational DB containing a DOM representation
21
 */
18 22
public class DBReader {
19 23

  
20 24
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
21 25
  private Connection	conn = null;
22 26

  
27
  /**
28
   * main routine used for testing.
29
   *
30
   * Usage: java DBReader <nodeid> <user> <password> [dbstring]
31
   *
32
   * @param nodeid the id number of the root of the subtree to display
33
   * @param user the username to use for the database connection
34
   * @param password the password to use for the database connection
35
   * @param dbstring the connection info to use for the database connection
36
   */
23 37
  static public void main(String[] args) {
24 38
     
25 39
     if (args.length < 3)
......
44 58
          }
45 59

  
46 60
          DBReader rd = new DBReader(user, password, dbstring);
47
          String xml = rd.readDocument(nodeid);
61
          String xml = rd.readXMLDocument(nodeid);
48 62
          System.out.println(xml);
49 63

  
50 64
        } catch (Exception e) {
......
55 69
     }
56 70
  }
57 71
  
72
  /**
73
   * construct a DBReader instance.
74
   *
75
   * Generally, one calls readXMLDocument() after constructing the instance
76
   *
77
   * @param user the username to use for the database connection
78
   * @param password the password to use for the database connection
79
   * @param dbstring the connection info to use for the database connection
80
   */
58 81
  public DBReader( String user, String password, String dbstring) 
59 82
                  throws IOException, 
60 83
                         SQLException, 
......
67 90

  
68 91
  }
69 92
  
93
  /** open a connection to the database with the supplied information */
70 94
  private Connection openDBConnection(String dbDriver, String connection,
71 95
                String user, String password)
72 96
                throws SQLException, ClassNotFoundException {
......
78 102
     return conn;
79 103
  }
80 104

  
81
  public String readDocument(long nodeid) {
105
  /**
106
   * Create an XML document from the database starting with the element 
107
   * having element_id nodeid
108
   *
109
   * @param nodeid the node that will represent the root of the document
110
   */
111
  public String readXMLDocument(long nodeid) {
82 112
    StringBuffer doc = new StringBuffer();
83 113

  
84 114
    ReaderElement element = new ReaderElement(conn, nodeid);
docs/ReaderElement.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc on Tue Apr 11 19:05:41 AKDT 2000 -->
6
<TITLE>
7
: Class  ReaderElement
8
</TITLE>
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
10
</HEAD>
11
<BODY BGCOLOR="white">
12

  
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
16
<TR>
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
  <TR ALIGN="center" VALIGN="top">
21
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
22
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
26
  </TR>
27
</TABLE>
28
</TD>
29
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
30
</EM>
31
</TD>
32
</TR>
33

  
34
<TR>
35
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
36
&nbsp;<A HREF="DBSimpleQuery.html"><B>PREV CLASS</B></A>&nbsp;
37
&nbsp;NEXT CLASS</FONT></TD>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
40
&nbsp;<A HREF="ReaderElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
41
</TR>
42
<TR>
43
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
44
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
47
</TR>
48
</TABLE>
49
<!-- =========== END OF NAVBAR =========== -->
50

  
51
<HR>
52
<!-- ======== START OF CLASS DATA ======== -->
53
<H2>
54
Class  ReaderElement</H2>
55
<PRE>
56
java.lang.Object
57
  |
58
  +--<A HREF="BasicElement.html">BasicElement</A>
59
        |
60
        +--<B>ReaderElement</B>
61
</PRE>
62
<HR>
63
<DL>
64
<DT>public class <B>ReaderElement</B><DT>extends <A HREF="BasicElement.html">BasicElement</A></DL>
65

  
66
<P>
67
A Class that represents an XML element and its contents,
68
 and can build itself from a database connection
69
<P>
70
<HR>
71

  
72
<P>
73
<!-- ======== INNER CLASS SUMMARY ======== -->
74

  
75

  
76
<!-- =========== FIELD SUMMARY =========== -->
77

  
78

  
79
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
80

  
81
<A NAME="constructor_summary"><!-- --></A>
82
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
83
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
84
<TD COLSPAN=2><FONT SIZE="+2">
85
<B>Constructor Summary</B></FONT></TD>
86
</TR>
87
<TR BGCOLOR="white" CLASS="TableRowColor">
88
<TD><CODE><B><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection)">ReaderElement</A></B>(java.sql.Connection&nbsp;conn)</CODE>
89

  
90
<BR>
91
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new ReaderElement instance</TD>
92
</TR>
93
<TR BGCOLOR="white" CLASS="TableRowColor">
94
<TD><CODE><B><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long)">ReaderElement</A></B>(java.sql.Connection&nbsp;conn,
95
              long&nbsp;nodeid)</CODE>
96

  
97
<BR>
98
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new ReaderElement instance</TD>
99
</TR>
100
<TR BGCOLOR="white" CLASS="TableRowColor">
101
<TD><CODE><B><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)">ReaderElement</A></B>(java.sql.Connection&nbsp;conn,
102
              long&nbsp;nodeid,
103
              long&nbsp;parentnodeid,
104
              java.lang.String&nbsp;nodename,
105
              java.lang.String&nbsp;nodedata)</CODE>
106

  
107
<BR>
108
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new ReaderElement instance</TD>
109
</TR>
110
</TABLE>
111
&nbsp;
112
<!-- ========== METHOD SUMMARY =========== -->
113

  
114
<A NAME="method_summary"><!-- --></A>
115
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
116
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
117
<TD COLSPAN=2><FONT SIZE="+2">
118
<B>Method Summary</B></FONT></TD>
119
</TR>
120
<TR BGCOLOR="white" CLASS="TableRowColor">
121
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
123
<TD><CODE><B><A HREF="ReaderElement.html#toString()">toString</A></B>()</CODE>
124

  
125
<BR>
126
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String representation for display purposes (recursively descends through
127
 children to create an XML subtree)</TD>
128
</TR>
129
</TABLE>
130
&nbsp;<A NAME="methods_inherited_from_class_BasicElement"><!-- --></A>
131
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
132
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
133
<TD><B>Methods inherited from class <A HREF="BasicElement.html">BasicElement</A></B></TD>
134
</TR>
135
<TR BGCOLOR="white" CLASS="TableRowColor">
136
<TD><CODE><A HREF="BasicElement.html#appendContent(char[], int, int)">appendContent</A>, 
137
<A HREF="BasicElement.html#appendContent(java.lang.String)">appendContent</A>, 
138
<A HREF="BasicElement.html#getAttribute(java.lang.String)">getAttribute</A>, 
139
<A HREF="BasicElement.html#getAttributes()">getAttributes</A>, 
140
<A HREF="BasicElement.html#getContent()">getContent</A>, 
141
<A HREF="BasicElement.html#getElementID()">getElementID</A>, 
142
<A HREF="BasicElement.html#getParentID()">getParentID</A>, 
143
<A HREF="BasicElement.html#getTagName()">getTagName</A>, 
144
<A HREF="BasicElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A>, 
145
<A HREF="BasicElement.html#setElementID(long)">setElementID</A>, 
146
<A HREF="BasicElement.html#setParentID(long)">setParentID</A>, 
147
<A HREF="BasicElement.html#setTagName(java.lang.String)">setTagName</A></CODE></TD>
148
</TR>
149
</TABLE>
150
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
151
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
152
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
153
<TD><B>Methods inherited from class java.lang.Object</B></TD>
154
</TR>
155
<TR BGCOLOR="white" CLASS="TableRowColor">
156
<TD><CODE>clone, 
157
equals, 
158
finalize, 
159
getClass, 
160
hashCode, 
161
notify, 
162
notifyAll, 
163
wait, 
164
wait, 
165
wait</CODE></TD>
166
</TR>
167
</TABLE>
168
&nbsp;
169
<P>
170

  
171
<!-- ============ FIELD DETAIL =========== -->
172

  
173

  
174
<!-- ========= CONSTRUCTOR DETAIL ======== -->
175

  
176
<A NAME="constructor_detail"><!-- --></A>
177
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
178
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
179
<TD COLSPAN=1><FONT SIZE="+2">
180
<B>Constructor Detail</B></FONT></TD>
181
</TR>
182
</TABLE>
183

  
184
<A NAME="ReaderElement(java.sql.Connection)"><!-- --></A><H3>
185
ReaderElement</H3>
186
<PRE>
187
public <B>ReaderElement</B>(java.sql.Connection&nbsp;conn)</PRE>
188
<DL>
189
<DD>Construct a new ReaderElement instance<DD><DL>
190
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize</DL>
191
</DD>
192
</DL>
193
<HR>
194

  
195
<A NAME="ReaderElement(java.sql.Connection, long)"><!-- --></A><H3>
196
ReaderElement</H3>
197
<PRE>
198
public <B>ReaderElement</B>(java.sql.Connection&nbsp;conn,
199
                     long&nbsp;nodeid)</PRE>
200
<DL>
201
<DD>Construct a new ReaderElement instance<DD><DL>
202
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize<DD><CODE>nodeid</CODE> - the element_id for the node to be created</DL>
203
</DD>
204
</DL>
205
<HR>
206

  
207
<A NAME="ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><!-- --></A><H3>
208
ReaderElement</H3>
209
<PRE>
210
public <B>ReaderElement</B>(java.sql.Connection&nbsp;conn,
211
                     long&nbsp;nodeid,
212
                     long&nbsp;parentnodeid,
213
                     java.lang.String&nbsp;nodename,
214
                     java.lang.String&nbsp;nodedata)</PRE>
215
<DL>
216
<DD>Construct a new ReaderElement instance<DD><DL>
217
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize<DD><CODE>nodeid</CODE> - the element_id for the node to be created<DD><CODE>parentnodeid</CODE> - the id of the parent node<DD><CODE>nodename</CODE> - the name of the element<DD><CODE>nodedata</CODE> - the text content of the node</DL>
218
</DD>
219
</DL>
220

  
221
<!-- ============ METHOD DETAIL ========== -->
222

  
223
<A NAME="method_detail"><!-- --></A>
224
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
225
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
226
<TD COLSPAN=1><FONT SIZE="+2">
227
<B>Method Detail</B></FONT></TD>
228
</TR>
229
</TABLE>
230

  
231
<A NAME="toString()"><!-- --></A><H3>
232
toString</H3>
233
<PRE>
234
public java.lang.String <B>toString</B>()</PRE>
235
<DL>
236
<DD>String representation for display purposes (recursively descends through
237
 children to create an XML subtree)<DD><DL>
238
<DT><B>Overrides:</B><DD><A HREF="BasicElement.html#toString()">toString</A> in class <A HREF="BasicElement.html">BasicElement</A></DL>
239
</DD>
240
</DL>
241
<!-- ========= END OF CLASS DATA ========= -->
242
<HR>
243

  
244
<!-- ========== START OF NAVBAR ========== -->
245
<A NAME="navbar_bottom"><!-- --></A>
246
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
247
<TR>
248
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
249
<A NAME="navbar_bottom_firstrow"><!-- --></A>
250
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
251
  <TR ALIGN="center" VALIGN="top">
252
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
253
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
254
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
255
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
256
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
257
  </TR>
258
</TABLE>
259
</TD>
260
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
261
</EM>
262
</TD>
263
</TR>
264

  
265
<TR>
266
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
267
&nbsp;<A HREF="DBSimpleQuery.html"><B>PREV CLASS</B></A>&nbsp;
268
&nbsp;NEXT CLASS</FONT></TD>
269
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
270
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
271
&nbsp;<A HREF="ReaderElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
272
</TR>
273
<TR>
274
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
275
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
276
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
277
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
278
</TR>
279
</TABLE>
280
<!-- =========== END OF NAVBAR =========== -->
281

  
282
<HR>
283

  
284
</BODY>
285
</HTML>
0 286

  
docs/index-all.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc on Tue Apr 11 19:05:41 AKDT 2000 -->
6
<TITLE>
7
: Index
8
</TITLE>
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
10
</HEAD>
11
<BODY BGCOLOR="white">
12

  
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
16
<TR>
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
  <TR ALIGN="center" VALIGN="top">
21
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
22
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
26
  </TR>
27
</TABLE>
28
</TD>
29
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
30
</EM>
31
</TD>
32
</TR>
33

  
34
<TR>
35
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
36
&nbsp;PREV&nbsp;
37
&nbsp;NEXT</FONT></TD>
38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
40
&nbsp;<A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
41
</TR>
42
</TABLE>
43
<!-- =========== END OF NAVBAR =========== -->
44

  
45
<A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_I_">I</A> <A HREF="#_M_">M</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A HREF="#_W_">W</A> <HR>
46
<A NAME="_A_"><!-- --></A><H2>
47
<B>A</B></H2>
48
<DL>
49
<DT><A HREF="BasicElement.html#appendContent(char[], int, int)"><B>appendContent(char[], int, int)</B></A> - 
50
Method in class <A HREF="BasicElement.html">BasicElement</A>
51
<DD>Append to the content of the element
52
<DT><A HREF="BasicElement.html#appendContent(java.lang.String)"><B>appendContent(String)</B></A> - 
53
Method in class <A HREF="BasicElement.html">BasicElement</A>
54
<DD>Append to the content of the element
55
</DL>
56
<HR>
57
<A NAME="_B_"><!-- --></A><H2>
58
<B>B</B></H2>
59
<DL>
60
<DT><A HREF="BasicElement.html"><B>BasicElement</B></A> - class <A HREF="BasicElement.html">BasicElement</A>.<DD>A Class that represents an XML element and its contents<DT><A HREF="BasicElement.html#BasicElement()"><B>BasicElement()</B></A> - 
61
Constructor for class <A HREF="BasicElement.html">BasicElement</A>
62
<DD>Construct a Basic Element
63
<DT><A HREF="BasicElement.html#BasicElement(long, java.lang.String, long)"><B>BasicElement(long, String, long)</B></A> - 
64
Constructor for class <A HREF="BasicElement.html">BasicElement</A>
65
<DD>Construct a Basic Element
66
<DT><A HREF="BasicElement.html#BasicElement(java.lang.String, long)"><B>BasicElement(String, long)</B></A> - 
67
Constructor for class <A HREF="BasicElement.html">BasicElement</A>
68
<DD>Construct a Basic Element
69
</DL>
70
<HR>
71
<A NAME="_C_"><!-- --></A><H2>
72
<B>C</B></H2>
73
<DL>
74
<DT><A HREF="DBSAXHandler.html#characters(char[], int, int)"><B>characters(char[], int, int)</B></A> - 
75
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
76
<DD>SAX Handler that is called for each XML text node
77
</DL>
78
<HR>
79
<A NAME="_D_"><!-- --></A><H2>
80
<B>D</B></H2>
81
<DL>
82
<DT><A HREF="DBReader.html"><B>DBReader</B></A> - class <A HREF="DBReader.html">DBReader</A>.<DD>A Class that creates an XML text document
83
 from a query to a relational DB containing a DOM representation<DT><A HREF="DBReader.html#DBReader(java.lang.String, java.lang.String, java.lang.String)"><B>DBReader(String, String, String)</B></A> - 
84
Constructor for class <A HREF="DBReader.html">DBReader</A>
85
<DD>construct a DBReader instance.
86
<DT><A HREF="DBSAXElement.html"><B>DBSAXElement</B></A> - class <A HREF="DBSAXElement.html">DBSAXElement</A>.<DD>A Class that represents an XML element and its contents and
87
 can write its own representation to a database connection<DT><A HREF="DBSAXElement.html#DBSAXElement(java.sql.Connection, java.lang.String, long)"><B>DBSAXElement(Connection, String, long)</B></A> - 
88
Constructor for class <A HREF="DBSAXElement.html">DBSAXElement</A>
89
<DD>Construct a new element instance
90
<DT><A HREF="DBSAXHandler.html"><B>DBSAXHandler</B></A> - class <A HREF="DBSAXHandler.html">DBSAXHandler</A>.<DD>A database aware Class implementing callback bethods for the SAX parser to
91
 call when processing the XML stream and generating events<DT><A HREF="DBSAXHandler.html#DBSAXHandler(java.sql.Connection)"><B>DBSAXHandler(Connection)</B></A> - 
92
Constructor for class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
93
<DD>Construct an instance of the handler class
94
<DT><A HREF="DBSAXWriter.html"><B>DBSAXWriter</B></A> - class <A HREF="DBSAXWriter.html">DBSAXWriter</A>.<DD>A Class that reads in an XML text document and
95
 write its contents to a database connection using SAX<DT><A HREF="DBSAXWriter.html#DBSAXWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><B>DBSAXWriter(String, String, String, String)</B></A> - 
96
Constructor for class <A HREF="DBSAXWriter.html">DBSAXWriter</A>
97
<DD>construct a new instance of the class to write an XML file to the database
98
<DT><A HREF="DBSimpleQuery.html"><B>DBSimpleQuery</B></A> - class <A HREF="DBSimpleQuery.html">DBSimpleQuery</A>.<DD>A Class that searches a relational DB for elements and attributes that
99
 have free text matches to the query string.</DL>
100
<HR>
101
<A NAME="_E_"><!-- --></A><H2>
102
<B>E</B></H2>
103
<DL>
104
<DT><A HREF="DBSAXHandler.html#endElement(oracle.xml.parser.v2.NSName)"><B>endElement(NSName)</B></A> - 
105
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
106
<DD>SAX Handler that is called at the end of each XML element
107
</DL>
108
<HR>
109
<A NAME="_F_"><!-- --></A><H2>
110
<B>F</B></H2>
111
<DL>
112
<DT><A HREF="DBSAXWriter.html#fileToURL(java.io.File)"><B>fileToURL(File)</B></A> - 
113
Static method in class <A HREF="DBSAXWriter.html">DBSAXWriter</A>
114
<DD>Utility method to convert a file handle into a URL
115
<DT><A HREF="DBSimpleQuery.html#findRootNodes(java.lang.String)"><B>findRootNodes(String)</B></A> - 
116
Method in class <A HREF="DBSimpleQuery.html">DBSimpleQuery</A>
117
<DD>routine to search the elements and attributes looking to match query
118
</DL>
119
<HR>
120
<A NAME="_G_"><!-- --></A><H2>
121
<B>G</B></H2>
122
<DL>
123
<DT><A HREF="BasicElement.html#getAttribute(java.lang.String)"><B>getAttribute(String)</B></A> - 
124
Method in class <A HREF="BasicElement.html">BasicElement</A>
125
<DD>Get an attribute value by name
126
<DT><A HREF="BasicElement.html#getAttributes()"><B>getAttributes()</B></A> - 
127
Method in class <A HREF="BasicElement.html">BasicElement</A>
128
<DD>Get the attributes as a string
129
<DT><A HREF="BasicElement.html#getContent()"><B>getContent()</B></A> - 
130
Method in class <A HREF="BasicElement.html">BasicElement</A>
131
<DD>Get the content of the element
132
<DT><A HREF="BasicElement.html#getElementID()"><B>getElementID()</B></A> - 
133
Method in class <A HREF="BasicElement.html">BasicElement</A>
134
<DD>Get the id of this element
135
<DT><A HREF="BasicElement.html#getParentID()"><B>getParentID()</B></A> - 
136
Method in class <A HREF="BasicElement.html">BasicElement</A>
137
<DD>Get the parent id of this element
138
<DT><A HREF="BasicElement.html#getTagName()"><B>getTagName()</B></A> - 
139
Method in class <A HREF="BasicElement.html">BasicElement</A>
140
<DD>Get the name of this element
141
</DL>
142
<HR>
143
<A NAME="_I_"><!-- --></A><H2>
144
<B>I</B></H2>
145
<DL>
146
<DT><A HREF="DBSAXHandler.html#ignorableWhitespace(char[], int, int)"><B>ignorableWhitespace(char[], int, int)</B></A> - 
147
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
148
<DD>SAX Handler that is called for each XML text node that is Ignorable
149
 white space
150
</DL>
151
<HR>
152
<A NAME="_M_"><!-- --></A><H2>
153
<B>M</B></H2>
154
<DL>
155
<DT><A HREF="DBSAXWriter.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
156
Static method in class <A HREF="DBSAXWriter.html">DBSAXWriter</A>
157
<DD>the main routine used to test the DBSAXWriter utility.
158
<DT><A HREF="DBReader.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
159
Static method in class <A HREF="DBReader.html">DBReader</A>
160
<DD>main routine used for testing.
161
<DT><A HREF="DBSimpleQuery.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
162
Static method in class <A HREF="DBSimpleQuery.html">DBSimpleQuery</A>
163
<DD>the main routine used to test the DBSimpleQuery utility.
164
</DL>
165
<HR>
166
<A NAME="_R_"><!-- --></A><H2>
167
<B>R</B></H2>
168
<DL>
169
<DT><A HREF="ReaderElement.html"><B>ReaderElement</B></A> - class <A HREF="ReaderElement.html">ReaderElement</A>.<DD>A Class that represents an XML element and its contents,
170
 and can build itself from a database connection<DT><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection)"><B>ReaderElement(Connection)</B></A> - 
171
Constructor for class <A HREF="ReaderElement.html">ReaderElement</A>
172
<DD>Construct a new ReaderElement instance
173
<DT><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long)"><B>ReaderElement(Connection, long)</B></A> - 
174
Constructor for class <A HREF="ReaderElement.html">ReaderElement</A>
175
<DD>Construct a new ReaderElement instance
176
<DT><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><B>ReaderElement(Connection, long, long, String, String)</B></A> - 
177
Constructor for class <A HREF="ReaderElement.html">ReaderElement</A>
178
<DD>Construct a new ReaderElement instance
179
<DT><A HREF="DBReader.html#readXMLDocument(long)"><B>readXMLDocument(long)</B></A> - 
180
Method in class <A HREF="DBReader.html">DBReader</A>
181
<DD>Create an XML document from the database starting with the element 
182
 having element_id nodeid
183
</DL>
184
<HR>
185
<A NAME="_S_"><!-- --></A><H2>
186
<B>S</B></H2>
187
<DL>
188
<DT><A HREF="BasicElement.html#setAttribute(java.lang.String, java.lang.String)"><B>setAttribute(String, String)</B></A> - 
189
Method in class <A HREF="BasicElement.html">BasicElement</A>
190
<DD>Add a new attribute to this element, or set its value
191
<DT><A HREF="DBSAXElement.html#setAttribute(java.lang.String, java.lang.String)"><B>setAttribute(String, String)</B></A> - 
192
Method in class <A HREF="DBSAXElement.html">DBSAXElement</A>
193
<DD>Add a new attribute to this element, or set its value
194
<DT><A HREF="BasicElement.html#setElementID(long)"><B>setElementID(long)</B></A> - 
195
Method in class <A HREF="BasicElement.html">BasicElement</A>
196
<DD>Set the id of this element
197
<DT><A HREF="BasicElement.html#setParentID(long)"><B>setParentID(long)</B></A> - 
198
Method in class <A HREF="BasicElement.html">BasicElement</A>
199
<DD>Set the parent id of this element
200
<DT><A HREF="BasicElement.html#setTagName(java.lang.String)"><B>setTagName(String)</B></A> - 
201
Method in class <A HREF="BasicElement.html">BasicElement</A>
202
<DD>Set the tagname of this element
203
<DT><A HREF="DBSAXHandler.html#startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)"><B>startElement(NSName, SAXAttrList)</B></A> - 
204
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
205
<DD>SAX Handler that is called at the start of each XML element
206
</DL>
207
<HR>
208
<A NAME="_T_"><!-- --></A><H2>
209
<B>T</B></H2>
210
<DL>
211
<DT><A HREF="BasicElement.html#toString()"><B>toString()</B></A> - 
212
Method in class <A HREF="BasicElement.html">BasicElement</A>
213
<DD>convert the element to a string representation for display
214
<DT><A HREF="ReaderElement.html#toString()"><B>toString()</B></A> - 
215
Method in class <A HREF="ReaderElement.html">ReaderElement</A>
216
<DD>String representation for display purposes (recursively descends through
217
 children to create an XML subtree)
218
</DL>
219
<HR>
220
<A NAME="_W_"><!-- --></A><H2>
221
<B>W</B></H2>
222
<DL>
223
<DT><A HREF="DBSAXElement.html#writeContentToDB()"><B>writeContentToDB()</B></A> - 
224
Method in class <A HREF="DBSAXElement.html">DBSAXElement</A>
225
<DD>Write the element content to the db connection
226
</DL>
227
<HR>
228
<A HREF="#_A_">A</A> <A HREF="#_B_">B</A> <A HREF="#_C_">C</A> <A HREF="#_D_">D</A> <A HREF="#_E_">E</A> <A HREF="#_F_">F</A> <A HREF="#_G_">G</A> <A HREF="#_I_">I</A> <A HREF="#_M_">M</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A HREF="#_W_">W</A> 
229
<!-- ========== START OF NAVBAR ========== -->
230
<A NAME="navbar_bottom"><!-- --></A>
231
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
232
<TR>
233
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
234
<A NAME="navbar_bottom_firstrow"><!-- --></A>
235
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
236
  <TR ALIGN="center" VALIGN="top">
237
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
238
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
239
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
240
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Index</B></FONT>&nbsp;</TD>
241
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
242
  </TR>
243
</TABLE>
244
</TD>
245
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
246
</EM>
247
</TD>
248
</TR>
249

  
250
<TR>
251
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
252
&nbsp;PREV&nbsp;
253
&nbsp;NEXT</FONT></TD>
254
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
255
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
256
&nbsp;<A HREF="index-all.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
257
</TR>
258
</TABLE>
259
<!-- =========== END OF NAVBAR =========== -->
260

  
261
<HR>
262

  
263
</BODY>
264
</HTML>
0 265

  
docs/stylesheet.css
1
/* Javadoc style sheet */
2

  
3
/* Define colors, fonts and other style attributes here to override the defaults  */
4

  
5
/* Page background color */
6
body { background-color: #FFFFFF }
7

  
8
/* Table colors */
9
.TableHeadingColor     { background: #CCCCFF } /* Dark mauve */
10
.TableSubHeadingColor  { background: #EEEEFF } /* Light mauve */
11
.TableRowColor         { background: #FFFFFF } /* White */
12

  
13
/* Font used in left-hand frame lists */
14
.FrameTitleFont   { font-size: normal; font-family: normal }
15
.FrameHeadingFont { font-size: normal; font-family: normal }
16
.FrameItemFont    { font-size: normal; font-family: normal }
17

  
18
/* Example of smaller, sans-serif font in frames */
19
/* .FrameItemFont  { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */
20

  
21
/* Navigation bar fonts and colors */
22
.NavBarCell1    { background-color:#EEEEFF;}/* Light mauve */
23
.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */
24
.NavBarFont1    { font-family: Arial, Helvetica, sans-serif; color:#000000;}
25
.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
26

  
27
.NavBarCell2    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
28
.NavBarCell3    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
29

  
0 30

  
docs/allclasses-frame.html
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc on Tue Apr 11 19:05:41 AKDT 2000 -->
6
<TITLE>
7
All Classes
8
</TITLE>
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
10
</HEAD>
11
<BODY BGCOLOR="white">
12
<FONT size="+1" CLASS="FrameHeadingFont">
13
<B>All Classes</B></FONT>
14
<BR>
15

  
16
<TABLE BORDER="0" WIDTH="100%">
17
<TR>
18
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="BasicElement.html" TARGET="classFrame">BasicElement</A>
19
<BR>
20
<A HREF="DBReader.html" TARGET="classFrame">DBReader</A>
21
<BR>
22
<A HREF="DBSAXElement.html" TARGET="classFrame">DBSAXElement</A>
23
<BR>
24
<A HREF="DBSAXHandler.html" TARGET="classFrame">DBSAXHandler</A>
25
<BR>
26
<A HREF="DBSAXWriter.html" TARGET="classFrame">DBSAXWriter</A>
27
<BR>
28
<A HREF="DBSimpleQuery.html" TARGET="classFrame">DBSimpleQuery</A>
29
<BR>
30
<A HREF="ReaderElement.html" TARGET="classFrame">ReaderElement</A>
31
<BR>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff