Project

General

Profile

« Previous | Next » 

Revision 51

Added by Matt Jones over 24 years ago

changed package name to edu.ucsb.nceas.metacat.*

View differences:

Makefile
1 1
# For Win32, make 'SEP' be a semicolon
2 2
SEP=:
3 3
#CPATH=../../xml.jar$(SEP)$(JAVA_HOME)/lib/classes.zip
4
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP).
4
CPATH=/home/httpd/servlets/xsql/lib/xmlparserv2.jar$(SEP)$(ORACLE_HOME)/jdbc/lib/classes111.zip$(SEP)/usr/lib/apache/ApacheJServ.jar$(SEP)/home/httpd/classes/servlet-2.0.jar$(SEP)./classes
5 5

  
6 6
USER=jones
7
PW=kinkaj0u
7 8

  
8
PW=your-pw-goes-here
9
JAVAC=javac -d classes
9 10

  
10 11
default: all
11 12

  
12 13
all: orasax reader query servlet
13 14

  
14 15
orasax: util
15
	javac -classpath "$(CPATH)" \
16
	$(JAVAC) -classpath "$(CPATH)" \
16 17
		DBSAXWriter.java \
17 18
		BasicElement.java \
18 19
		DBSAXElement.java \
19 20
		DBSAXHandler.java
20 21
		
21 22
sundom:
22
	javac -classpath "$(CPATH)" \
23
	$(JAVAC) -classpath "$(CPATH)" \
23 24
		DBWriter.java \
24 25
		DBElement.java
25 26
		
26 27
reader: util
27
	javac -classpath "$(CPATH)" \
28
	$(JAVAC) -classpath "$(CPATH)" \
28 29
		DBReader.java \
29 30
		BasicElement.java \
30 31
		ReaderElement.java
31
	cp DBReader.class \
32
		ReaderElement.class \
33
		BasicElement.class \
34
		/home/httpd/servlets/
35 32

  
36 33
query: util
37
	javac -classpath "$(CPATH)" \
34
	$(JAVAC) -classpath "$(CPATH)" \
38 35
		DBSimpleQuery.java
39
	cp DBSimpleQuery.class /home/httpd/servlets/
40 36

  
41 37
servlet: query reader
42
	javac -classpath "$(CPATH)" MetaCatServlet.java
43
	cp MetaCatServlet.class /home/httpd/servlets/
38
	$(JAVAC) -classpath "$(CPATH)" MetaCatServlet.java
39
	cp -r classes/edu /home/httpd/servlets/
44 40

  
45 41
util: 
46
	javac -classpath "$(CPATH)" \
42
	$(JAVAC) -classpath "$(CPATH)" \
47 43
		MetaCatUtil.java
48
	cp MetaCatUtil.class /home/httpd/servlets/
49 44

  
50 45
test:
51
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW)
46
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
47
		test.xml $(USER) $(PW)
52 48

  
53 49
test1:
54
	java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) \
50
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSAXWriter \
51
		test.xml $(USER) $(PW) \
55 52
		jdbc:oracle:thin:@localhost:1521:test
56 53

  
57 54
rdtest:
58
	java -cp $(CPATH) DBReader 1 $(USER) $(PW) 
55
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 1 $(USER) $(PW) 
59 56

  
60 57
rdtest1:
61
	java -cp $(CPATH) DBReader 31 $(USER) $(PW) 
58
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBReader 31 $(USER) $(PW) 
62 59

  
63 60
qtest:
64
	java -cp $(CPATH) DBSimpleQuery Value1 $(USER) $(PW) 
61
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
62
		Value1 $(USER) $(PW) 
65 63

  
66 64
qtest1:
67
	java -cp $(CPATH) DBSimpleQuery lakename $(USER) $(PW) 
65
	java -cp $(CPATH) edu.ucsb.nceas.metacat.DBSimpleQuery \
66
		lakename $(USER) $(PW) 
68 67

  
69 68
javadoc:
70 69
	javadoc -classpath $(CPATH) -d docs \
......
75 74
		DBReader.java \
76 75
		ReaderElement.java \
77 76
		DBSimpleQuery.java \
78
		MetaCatServlet.java
77
		MetaCatServlet.java \
78
		MetaCatUtil.java
79 79

  
80 80
clean:
81
	-rm -f *.class Log
81
	-rm -rf *.class Log classes/edu
MetaCatUtil.java
1
/**
2
 *        Name: MetaCatUtil.java
3
 *     Purpose: A Class that implements utility methods for a metadata catalog
4
 *   Copyright: 2000 Regents of the University of California and the
5
 *              National Center for Ecological Analysis and Synthesis
6
 *     Authors: Matt Jones
7
 * 
8
 *     Version: '$Id$'
9
 */
10

  
11
package edu.ucsb.nceas.metacat;
12

  
1 13
import java.sql.Connection;
2 14
import java.sql.DriverManager;
3 15
import java.sql.SQLException;
......
8 20
public class MetaCatUtil {
9 21

  
10 22
  static  String 	user = "jones";
11
  static  String 	password = "your-pw-goes-here";
23
  static  String 	password = "kinkaj0u";
12 24
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
13 25

  
14 26
  /** 
resultset.xsl
1
<?xml version="1.0"?>
2
<!--
3
  * resultset.xsl
4
  *
5
  *      Authors: Matt Jones
6
  *    Copyright: 2000 Regents of the University of California and the 
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *      Created: 2000 April 5
10
  *    File Info: '$Id$'
11
  *
12
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
13
  * convert an XML file showing the resultset of a query
14
  * into an HTML format suitable for rendering with modern web browsers.
15
-->
16
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
17

  
18
  <xsl:output method="html"/>
19

  
20
  <xsl:template match="/">
21
    <html>
22
      <head>
23
	<link rel="stylesheet" type="text/css" href="/xmltodb/rowcol.css" />
24
      </head>
25
      <body class="emlbody">
26
	<center>
27
          <h1>Query Results</h1>
28
          <h3>for querystring <xsl:value-of select="resultset/query"/>
29
          </h3>
30
        </center>
31
        
32
        <table width="100%">
33
        <tr class="rowodd">
34
        <th><xsl:text>Document ID</xsl:text></th>
35
        <th><xsl:text>Title</xsl:text></th>
36
        </tr>
37

  
38
        <xsl:for-each select="resultset/nodeid">
39
          <tr valign="top">
40
            <xsl:attribute name="class">
41
              <xsl:choose>
42
                <xsl:when test="position() mod 2 = 1">rowwhite</xsl:when>
43
                <xsl:when test="position() mod 2 = 0">rowlight</xsl:when>
44
              </xsl:choose>
45
            </xsl:attribute>
46

  
47
          <td><a>
48
              <xsl:attribute name="href">
49
              /servlets/MetaCatServlet?action=getdocument&amp;docid=<xsl:value-of select="."/>
50
              </xsl:attribute>
51
              <xsl:text>Document </xsl:text><xsl:value-of select="."/>
52
              </a>
53
          </td>
54
          <td>Fake title</td>
55
          </tr>
56
        </xsl:for-each>
57
        </table>
58

  
59
      </body>
60
    </html>
61
  </xsl:template>
62

  
63
</xsl:stylesheet>
0 64

  
MetaCatServlet.java
1
/**
2
 *        Name: MetaCatServlet.java
3
 *     Purpose: A Class that implements a metadata catalog as a java Servlet
4
 *   Copyright: 2000 Regents of the University of California and the
5
 *              National Center for Ecological Analysis and Synthesis
6
 *     Authors: Matt Jones
7
 * 
8
 *     Version: '$Id$'
9
 */
10

  
11
package edu.ucsb.nceas.metacat;
12

  
1 13
import java.io.PrintWriter;
2 14
import java.io.IOException;
3 15
import java.io.Reader;
lib/resultset.xsl
1
<?xml version="1.0"?>
2
<!--
3
  * resultset.xsl
4
  *
5
  *      Authors: Matt Jones
6
  *    Copyright: 2000 Regents of the University of California and the 
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *      Created: 2000 April 5
10
  *    File Info: '$Id$'
11
  *
12
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
13
  * convert an XML file showing the resultset of a query
14
  * into an HTML format suitable for rendering with modern web browsers.
15
-->
16
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
17

  
18
  <xsl:output method="html"/>
19

  
20
  <xsl:template match="/">
21
    <html>
22
      <head>
23
	<link rel="stylesheet" type="text/css" href="/xmltodb/rowcol.css" />
24
      </head>
25
      <body class="emlbody">
26
	<center>
27
          <h1>Query Results</h1>
28
          <h3>for querystring <xsl:value-of select="resultset/query"/>
29
          </h3>
30
        </center>
31
        
32
        <table width="100%">
33
        <tr class="rowodd">
34
        <th><xsl:text>Document ID</xsl:text></th>
35
        <th><xsl:text>Title</xsl:text></th>
36
        </tr>
37

  
38
        <xsl:for-each select="resultset/nodeid">
39
          <tr valign="top">
40
            <xsl:attribute name="class">
41
              <xsl:choose>
42
                <xsl:when test="position() mod 2 = 1">rowwhite</xsl:when>
43
                <xsl:when test="position() mod 2 = 0">rowlight</xsl:when>
44
              </xsl:choose>
45
            </xsl:attribute>
46

  
47
          <td><a>
48
              <xsl:attribute name="href">
49
              /servlets/MetaCatServlet?action=getdocument&amp;docid=<xsl:value-of select="."/>
50
              </xsl:attribute>
51
              <xsl:text>Document </xsl:text><xsl:value-of select="."/>
52
              </a>
53
          </td>
54
          <td>Fake title</td>
55
          </tr>
56
        </xsl:for-each>
57
        </table>
58

  
59
      </body>
60
    </html>
61
  </xsl:template>
62

  
63
</xsl:stylesheet>
0 64

  
BasicElement.java
8 8
 *     Version: '$Id$'
9 9
 */
10 10

  
11
//package project;
11
package edu.ucsb.nceas.metacat;
12 12

  
13 13
import java.io.IOException;
14 14
import java.util.Hashtable;
DBElement.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
//package project;
12
package edu.ucsb.nceas.metacat;
13 13

  
14 14
import com.sun.xml.tree.ElementNode;
15 15

  
DBSAXHandler.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import org.xml.sax.*;
13 15

  
14 16
import java.sql.*;
src/edu/ucsb/nceas/metacat/DBSAXHandler.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import org.xml.sax.*;
13 15

  
14 16
import java.sql.*;
src/edu/ucsb/nceas/metacat/ElementNode.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
//package project;
12
package edu.ucsb.nceas.metacat;
13 13

  
14 14
import java.sql.*;
15 15
import java.io.IOException;
src/edu/ucsb/nceas/metacat/DBWriter.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import org.xml.sax.*;
13 15

  
14 16
import java.io.*;
src/edu/ucsb/nceas/metacat/MetaCatServlet.java
1
/**
2
 *        Name: MetaCatServlet.java
3
 *     Purpose: A Class that implements a metadata catalog as a java Servlet
4
 *   Copyright: 2000 Regents of the University of California and the
5
 *              National Center for Ecological Analysis and Synthesis
6
 *     Authors: Matt Jones
7
 * 
8
 *     Version: '$Id$'
9
 */
10

  
11
package edu.ucsb.nceas.metacat;
12

  
1 13
import java.io.PrintWriter;
2 14
import java.io.IOException;
3 15
import java.io.Reader;
src/edu/ucsb/nceas/metacat/DBSimpleQuery.java
11 11
 *     Version: '$Id$'
12 12
 */
13 13

  
14
package edu.ucsb.nceas.metacat;
15

  
14 16
import java.io.*;
15 17
import java.net.URL;
16 18
import java.net.MalformedURLException;
src/edu/ucsb/nceas/metacat/BasicNode.java
8 8
 *     Version: '$Id$'
9 9
 */
10 10

  
11
//package project;
11
package edu.ucsb.nceas.metacat;
12 12

  
13 13
import java.io.IOException;
14 14
import java.util.Hashtable;
src/edu/ucsb/nceas/metacat/DBSAXNode.java
8 8
 *     Version: '$Id$'
9 9
 */
10 10

  
11
//package project;
11
package edu.ucsb.nceas.metacat;
12 12

  
13 13
import java.sql.*;
14 14
import java.io.IOException;
src/edu/ucsb/nceas/metacat/DBReader.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import java.io.*;
13 15
import java.net.URL;
14 16
import java.net.MalformedURLException;
src/edu/ucsb/nceas/metacat/BasicElement.java
8 8
 *     Version: '$Id$'
9 9
 */
10 10

  
11
//package project;
11
package edu.ucsb.nceas.metacat;
12 12

  
13 13
import java.io.IOException;
14 14
import java.util.Hashtable;
src/edu/ucsb/nceas/metacat/DBSAXElement.java
8 8
 *     Version: '$Id$'
9 9
 */
10 10

  
11
//package project;
11
package edu.ucsb.nceas.metacat;
12 12

  
13 13
import java.sql.*;
14 14
import java.io.IOException;
src/edu/ucsb/nceas/metacat/MetaCatUtil.java
1
/**
2
 *        Name: MetaCatUtil.java
3
 *     Purpose: A Class that implements utility methods for a metadata catalog
4
 *   Copyright: 2000 Regents of the University of California and the
5
 *              National Center for Ecological Analysis and Synthesis
6
 *     Authors: Matt Jones
7
 * 
8
 *     Version: '$Id$'
9
 */
10

  
11
package edu.ucsb.nceas.metacat;
12

  
1 13
import java.sql.Connection;
2 14
import java.sql.DriverManager;
3 15
import java.sql.SQLException;
......
8 20
public class MetaCatUtil {
9 21

  
10 22
  static  String 	user = "jones";
11
  static  String 	password = "your-pw-goes-here";
23
  static  String 	password = "kinkaj0u";
12 24
  static  String 	defaultDB = "jdbc:oracle:thin:@localhost:1521:test";
13 25

  
14 26
  /** 
src/edu/ucsb/nceas/metacat/ReaderElement.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
//package project;
12
package edu.ucsb.nceas.metacat;
13 13

  
14 14
import java.sql.*;
15 15
import java.io.IOException;
src/edu/ucsb/nceas/metacat/DBSAXWriter.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import org.xml.sax.*;
13 15

  
14 16
import java.io.*;
DBReader.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import java.io.*;
13 15
import java.net.URL;
14 16
import java.net.MalformedURLException;
docs/index-all.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:20 AKDT 2000 -->
6 6
<TITLE>
7 7
: Index
8 8
</TITLE>
......
42 42
</TABLE>
43 43
<!-- =========== END OF NAVBAR =========== -->
44 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>
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="#_O_">O</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A HREF="#_W_">W</A> <HR>
46 46
<A NAME="_A_"><!-- --></A><H2>
47 47
<B>A</B></H2>
48 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>
49
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#appendContent(char[], int, int)"><B>appendContent(char[], int, int)</B></A> - 
50
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
51 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>
52
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#appendContent(java.lang.String)"><B>appendContent(String)</B></A> - 
53
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
54 54
<DD>Append to the content of the element
55 55
</DL>
56 56
<HR>
57 57
<A NAME="_B_"><!-- --></A><H2>
58 58
<B>B</B></H2>
59 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>
60
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html"><B>BasicElement</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>.<DD>A Class that represents an XML element and its contents<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#BasicElement()"><B>BasicElement()</B></A> - 
61
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
62 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>
63
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#BasicElement(long, java.lang.String, long)"><B>BasicElement(long, String, long)</B></A> - 
64
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
65 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>
66
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#BasicElement(java.lang.String, long)"><B>BasicElement(String, long)</B></A> - 
67
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
68 68
<DD>Construct a Basic Element
69 69
</DL>
70 70
<HR>
71 71
<A NAME="_C_"><!-- --></A><H2>
72 72
<B>C</B></H2>
73 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>
74
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html#characters(char[], int, int)"><B>characters(char[], int, int)</B></A> - 
75
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html">DBSAXHandler</A>
76 76
<DD>SAX Handler that is called for each XML text node
77 77
</DL>
78 78
<HR>
79 79
<A NAME="_D_"><!-- --></A><H2>
80 80
<B>D</B></H2>
81 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>
82
<DT><A HREF="edu/ucsb/nceas/metacat/DBReader.html"><B>DBReader</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/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="edu/ucsb/nceas/metacat/DBReader.html#DBReader(java.sql.Connection)"><B>DBReader(Connection)</B></A> - 
84
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBReader.html">DBReader</A>
85 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>
86
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html"><B>DBSAXElement</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/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="edu/ucsb/nceas/metacat/DBSAXElement.html#DBSAXElement(java.sql.Connection, java.lang.String, long)"><B>DBSAXElement(Connection, String, long)</B></A> - 
88
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html">DBSAXElement</A>
89 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>
90
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html"><B>DBSAXHandler</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/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="edu/ucsb/nceas/metacat/DBSAXHandler.html#DBSAXHandler(java.sql.Connection)"><B>DBSAXHandler(Connection)</B></A> - 
92
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html">DBSAXHandler</A>
93 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>
94
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html"><B>DBSAXWriter</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/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="edu/ucsb/nceas/metacat/DBSAXWriter.html#DBSAXWriter(java.lang.String, java.sql.Connection)"><B>DBSAXWriter(String, Connection)</B></A> - 
96
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html">DBSAXWriter</A>
97 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.<DT><A HREF="DBSimpleQuery.html#DBSimpleQuery(java.lang.String, java.lang.String, java.lang.String)"><B>DBSimpleQuery(String, String, String)</B></A> - 
100
Constructor for class <A HREF="DBSimpleQuery.html">DBSimpleQuery</A>
98
<DT><A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html"><B>DBSimpleQuery</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/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.<DT><A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html#DBSimpleQuery(java.sql.Connection)"><B>DBSimpleQuery(Connection)</B></A> - 
100
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html">DBSimpleQuery</A>
101 101
<DD>construct an instance of the DBSimpleQuery class 
102 102

  
103
 Generally, one would call the findRootNodes() routine after creating 
104
 an instance to specify the query to search for
105
<DT><A HREF="MetaCatServlet.html#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><B>doGet(HttpServletRequest, HttpServletResponse)</B></A> - 
106
Method in class <A HREF="MetaCatServlet.html">MetaCatServlet</A>
103
 
104
<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><B>doGet(HttpServletRequest, HttpServletResponse)</B></A> - 
105
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html">MetaCatServlet</A>
107 106
<DD>Handle "GET" method requests from HTTP clients
108
<DT><A HREF="MetaCatServlet.html#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><B>doPost(HttpServletRequest, HttpServletResponse)</B></A> - 
109
Method in class <A HREF="MetaCatServlet.html">MetaCatServlet</A>
107
<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><B>doPost(HttpServletRequest, HttpServletResponse)</B></A> - 
108
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html">MetaCatServlet</A>
110 109
<DD>Handle "POST" method requests from HTTP clients
111 110
</DL>
112 111
<HR>
113 112
<A NAME="_E_"><!-- --></A><H2>
114 113
<B>E</B></H2>
115 114
<DL>
116
<DT><A HREF="DBSAXHandler.html#endElement(oracle.xml.parser.v2.NSName)"><B>endElement(NSName)</B></A> - 
117
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
115
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html#endElement(oracle.xml.parser.v2.NSName)"><B>endElement(NSName)</B></A> - 
116
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html">DBSAXHandler</A>
118 117
<DD>SAX Handler that is called at the end of each XML element
119 118
</DL>
120 119
<HR>
121 120
<A NAME="_F_"><!-- --></A><H2>
122 121
<B>F</B></H2>
123 122
<DL>
124
<DT><A HREF="DBSAXWriter.html#fileToURL(java.io.File)"><B>fileToURL(File)</B></A> - 
125
Static method in class <A HREF="DBSAXWriter.html">DBSAXWriter</A>
123
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html#fileToURL(java.io.File)"><B>fileToURL(File)</B></A> - 
124
Static method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html">DBSAXWriter</A>
126 125
<DD>Utility method to convert a file handle into a URL
127
<DT><A HREF="DBSimpleQuery.html#findRootNodes(java.lang.String)"><B>findRootNodes(String)</B></A> - 
128
Method in class <A HREF="DBSimpleQuery.html">DBSimpleQuery</A>
126
<DT><A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html#findRootNodes(java.lang.String)"><B>findRootNodes(String)</B></A> - 
127
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html">DBSimpleQuery</A>
129 128
<DD>routine to search the elements and attributes looking to match query
130 129
</DL>
131 130
<HR>
132 131
<A NAME="_G_"><!-- --></A><H2>
133 132
<B>G</B></H2>
134 133
<DL>
135
<DT><A HREF="BasicElement.html#getAttribute(java.lang.String)"><B>getAttribute(String)</B></A> - 
136
Method in class <A HREF="BasicElement.html">BasicElement</A>
134
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#getAttribute(java.lang.String)"><B>getAttribute(String)</B></A> - 
135
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
137 136
<DD>Get an attribute value by name
138
<DT><A HREF="BasicElement.html#getAttributes()"><B>getAttributes()</B></A> - 
139
Method in class <A HREF="BasicElement.html">BasicElement</A>
137
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#getAttributes()"><B>getAttributes()</B></A> - 
138
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
140 139
<DD>Get the attributes as a string
141
<DT><A HREF="BasicElement.html#getContent()"><B>getContent()</B></A> - 
142
Method in class <A HREF="BasicElement.html">BasicElement</A>
140
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#getContent()"><B>getContent()</B></A> - 
141
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
143 142
<DD>Get the content of the element
144
<DT><A HREF="BasicElement.html#getElementID()"><B>getElementID()</B></A> - 
145
Method in class <A HREF="BasicElement.html">BasicElement</A>
143
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#getElementID()"><B>getElementID()</B></A> - 
144
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
146 145
<DD>Get the id of this element
147
<DT><A HREF="BasicElement.html#getParentID()"><B>getParentID()</B></A> - 
148
Method in class <A HREF="BasicElement.html">BasicElement</A>
146
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#getParentID()"><B>getParentID()</B></A> - 
147
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
149 148
<DD>Get the parent id of this element
150
<DT><A HREF="BasicElement.html#getTagName()"><B>getTagName()</B></A> - 
151
Method in class <A HREF="BasicElement.html">BasicElement</A>
149
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#getTagName()"><B>getTagName()</B></A> - 
150
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
152 151
<DD>Get the name of this element
153 152
</DL>
154 153
<HR>
155 154
<A NAME="_I_"><!-- --></A><H2>
156 155
<B>I</B></H2>
157 156
<DL>
158
<DT><A HREF="DBSAXHandler.html#ignorableWhitespace(char[], int, int)"><B>ignorableWhitespace(char[], int, int)</B></A> - 
159
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
157
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html#ignorableWhitespace(char[], int, int)"><B>ignorableWhitespace(char[], int, int)</B></A> - 
158
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html">DBSAXHandler</A>
160 159
<DD>SAX Handler that is called for each XML text node that is Ignorable
161 160
 white space
162
<DT><A HREF="MetaCatServlet.html#init(javax.servlet.ServletConfig)"><B>init(ServletConfig)</B></A> - 
163
Method in class <A HREF="MetaCatServlet.html">MetaCatServlet</A>
161
<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html#init(javax.servlet.ServletConfig)"><B>init(ServletConfig)</B></A> - 
162
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html">MetaCatServlet</A>
164 163
<DD>Initialize the servlet by creating appropriate database connections
165 164
</DL>
166 165
<HR>
167 166
<A NAME="_M_"><!-- --></A><H2>
168 167
<B>M</B></H2>
169 168
<DL>
170
<DT><A HREF="DBSAXWriter.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
171
Static method in class <A HREF="DBSAXWriter.html">DBSAXWriter</A>
169
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
170
Static method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html">DBSAXWriter</A>
172 171
<DD>the main routine used to test the DBSAXWriter utility.
173
<DT><A HREF="DBReader.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
174
Static method in class <A HREF="DBReader.html">DBReader</A>
172
<DT><A HREF="edu/ucsb/nceas/metacat/DBReader.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
173
Static method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBReader.html">DBReader</A>
175 174
<DD>main routine used for testing.
176
<DT><A HREF="DBSimpleQuery.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
177
Static method in class <A HREF="DBSimpleQuery.html">DBSimpleQuery</A>
175
<DT><A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html#main(java.lang.String[])"><B>main(String[])</B></A> - 
176
Static method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html">DBSimpleQuery</A>
178 177
<DD>the main routine used to test the DBSimpleQuery utility.
179
<DT><A HREF="MetaCatServlet.html"><B>MetaCatServlet</B></A> - class <A HREF="MetaCatServlet.html">MetaCatServlet</A>.<DD>A metadata catalog server implemented as a Java Servlet
178
<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html"><B>MetaCatServlet</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html">MetaCatServlet</A>.<DD>A metadata catalog server implemented as a Java Servlet
180 179

  
181
 <DT><A HREF="MetaCatServlet.html#MetaCatServlet()"><B>MetaCatServlet()</B></A> - 
182
Constructor for class <A HREF="MetaCatServlet.html">MetaCatServlet</A>
180
 <DT><A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html#MetaCatServlet()"><B>MetaCatServlet()</B></A> - 
181
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html">MetaCatServlet</A>
183 182
<DD>&nbsp;
183
<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html"><B>MetaCatUtil</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html">MetaCatUtil</A>.<DD>A suite of utility classes for the metadata catalog server<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html#MetaCatUtil()"><B>MetaCatUtil()</B></A> - 
184
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html">MetaCatUtil</A>
185
<DD>&nbsp;
184 186
</DL>
185 187
<HR>
188
<A NAME="_O_"><!-- --></A><H2>
189
<B>O</B></H2>
190
<DL>
191
<DT><A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html#openDBConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><B>openDBConnection(String, String, String, String)</B></A> - 
192
Static method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html">MetaCatUtil</A>
193
<DD>Utility method to establish a JDBC database connection
194
</DL>
195
<HR>
186 196
<A NAME="_R_"><!-- --></A><H2>
187 197
<B>R</B></H2>
188 198
<DL>
189
<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,
190
 and can build itself from a database connection<DT><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection)"><B>ReaderElement(Connection)</B></A> - 
191
Constructor for class <A HREF="ReaderElement.html">ReaderElement</A>
199
<DT><A HREF="edu/ucsb/nceas/metacat/ReaderElement.html"><B>ReaderElement</B></A> - class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html">ReaderElement</A>.<DD>A Class that represents an XML element and its contents,
200
 and can build itself from a database connection<DT><A HREF="edu/ucsb/nceas/metacat/ReaderElement.html#ReaderElement(java.sql.Connection)"><B>ReaderElement(Connection)</B></A> - 
201
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html">ReaderElement</A>
192 202
<DD>Construct a new ReaderElement instance
193
<DT><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long)"><B>ReaderElement(Connection, long)</B></A> - 
194
Constructor for class <A HREF="ReaderElement.html">ReaderElement</A>
203
<DT><A HREF="edu/ucsb/nceas/metacat/ReaderElement.html#ReaderElement(java.sql.Connection, long)"><B>ReaderElement(Connection, long)</B></A> - 
204
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html">ReaderElement</A>
195 205
<DD>Construct a new ReaderElement instance
196
<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> - 
197
Constructor for class <A HREF="ReaderElement.html">ReaderElement</A>
206
<DT><A HREF="edu/ucsb/nceas/metacat/ReaderElement.html#ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><B>ReaderElement(Connection, long, long, String, String)</B></A> - 
207
Constructor for class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html">ReaderElement</A>
198 208
<DD>Construct a new ReaderElement instance
199
<DT><A HREF="DBReader.html#readXMLDocument(long)"><B>readXMLDocument(long)</B></A> - 
200
Method in class <A HREF="DBReader.html">DBReader</A>
209
<DT><A HREF="edu/ucsb/nceas/metacat/DBReader.html#readXMLDocument(long)"><B>readXMLDocument(long)</B></A> - 
210
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBReader.html">DBReader</A>
201 211
<DD>Create an XML document from the database starting with the element 
202 212
 having element_id nodeid
203 213
</DL>
......
205 215
<A NAME="_S_"><!-- --></A><H2>
206 216
<B>S</B></H2>
207 217
<DL>
208
<DT><A HREF="BasicElement.html#setAttribute(java.lang.String, java.lang.String)"><B>setAttribute(String, String)</B></A> - 
209
Method in class <A HREF="BasicElement.html">BasicElement</A>
218
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#setAttribute(java.lang.String, java.lang.String)"><B>setAttribute(String, String)</B></A> - 
219
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
210 220
<DD>Add a new attribute to this element, or set its value
211
<DT><A HREF="DBSAXElement.html#setAttribute(java.lang.String, java.lang.String)"><B>setAttribute(String, String)</B></A> - 
212
Method in class <A HREF="DBSAXElement.html">DBSAXElement</A>
221
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html#setAttribute(java.lang.String, java.lang.String)"><B>setAttribute(String, String)</B></A> - 
222
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html">DBSAXElement</A>
213 223
<DD>Add a new attribute to this element, or set its value
214
<DT><A HREF="BasicElement.html#setElementID(long)"><B>setElementID(long)</B></A> - 
215
Method in class <A HREF="BasicElement.html">BasicElement</A>
224
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#setElementID(long)"><B>setElementID(long)</B></A> - 
225
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
216 226
<DD>Set the id of this element
217
<DT><A HREF="BasicElement.html#setParentID(long)"><B>setParentID(long)</B></A> - 
218
Method in class <A HREF="BasicElement.html">BasicElement</A>
227
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#setParentID(long)"><B>setParentID(long)</B></A> - 
228
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
219 229
<DD>Set the parent id of this element
220
<DT><A HREF="BasicElement.html#setTagName(java.lang.String)"><B>setTagName(String)</B></A> - 
221
Method in class <A HREF="BasicElement.html">BasicElement</A>
230
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#setTagName(java.lang.String)"><B>setTagName(String)</B></A> - 
231
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
222 232
<DD>Set the tagname of this element
223
<DT><A HREF="DBSAXHandler.html#startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)"><B>startElement(NSName, SAXAttrList)</B></A> - 
224
Method in class <A HREF="DBSAXHandler.html">DBSAXHandler</A>
233
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html#startElement(oracle.xml.parser.v2.NSName, oracle.xml.parser.v2.SAXAttrList)"><B>startElement(NSName, SAXAttrList)</B></A> - 
234
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html">DBSAXHandler</A>
225 235
<DD>SAX Handler that is called at the start of each XML element
226 236
</DL>
227 237
<HR>
228 238
<A NAME="_T_"><!-- --></A><H2>
229 239
<B>T</B></H2>
230 240
<DL>
231
<DT><A HREF="BasicElement.html#toString()"><B>toString()</B></A> - 
232
Method in class <A HREF="BasicElement.html">BasicElement</A>
241
<DT><A HREF="edu/ucsb/nceas/metacat/BasicElement.html#toString()"><B>toString()</B></A> - 
242
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A>
233 243
<DD>convert the element to a string representation for display
234
<DT><A HREF="ReaderElement.html#toString()"><B>toString()</B></A> - 
235
Method in class <A HREF="ReaderElement.html">ReaderElement</A>
244
<DT><A HREF="edu/ucsb/nceas/metacat/ReaderElement.html#toString()"><B>toString()</B></A> - 
245
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html">ReaderElement</A>
236 246
<DD>String representation for display purposes (recursively descends through
237 247
 children to create an XML subtree)
238 248
</DL>
......
240 250
<A NAME="_W_"><!-- --></A><H2>
241 251
<B>W</B></H2>
242 252
<DL>
243
<DT><A HREF="DBSAXElement.html#writeContentToDB()"><B>writeContentToDB()</B></A> - 
244
Method in class <A HREF="DBSAXElement.html">DBSAXElement</A>
253
<DT><A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html#writeContentToDB()"><B>writeContentToDB()</B></A> - 
254
Method in class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html">DBSAXElement</A>
245 255
<DD>Write the element content to the db connection
246 256
</DL>
247 257
<HR>
248
<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> 
258
<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="#_O_">O</A> <A HREF="#_R_">R</A> <A HREF="#_S_">S</A> <A HREF="#_T_">T</A> <A HREF="#_W_">W</A> 
249 259
<!-- ========== START OF NAVBAR ========== -->
250 260
<A NAME="navbar_bottom"><!-- --></A>
251 261
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
docs/allclasses-frame.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:20 AKDT 2000 -->
6 6
<TITLE>
7 7
All Classes
8 8
</TITLE>
......
15 15

  
16 16
<TABLE BORDER="0" WIDTH="100%">
17 17
<TR>
18
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="BasicElement.html" TARGET="classFrame">BasicElement</A>
18
<TD NOWRAP><FONT CLASS="FrameItemFont"><A HREF="edu/ucsb/nceas/metacat/BasicElement.html" TARGET="classFrame">BasicElement</A>
19 19
<BR>
20
<A HREF="DBReader.html" TARGET="classFrame">DBReader</A>
20
<A HREF="edu/ucsb/nceas/metacat/DBReader.html" TARGET="classFrame">DBReader</A>
21 21
<BR>
22
<A HREF="DBSAXElement.html" TARGET="classFrame">DBSAXElement</A>
22
<A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html" TARGET="classFrame">DBSAXElement</A>
23 23
<BR>
24
<A HREF="DBSAXHandler.html" TARGET="classFrame">DBSAXHandler</A>
24
<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html" TARGET="classFrame">DBSAXHandler</A>
25 25
<BR>
26
<A HREF="DBSAXWriter.html" TARGET="classFrame">DBSAXWriter</A>
26
<A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html" TARGET="classFrame">DBSAXWriter</A>
27 27
<BR>
28
<A HREF="DBSimpleQuery.html" TARGET="classFrame">DBSimpleQuery</A>
28
<A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html" TARGET="classFrame">DBSimpleQuery</A>
29 29
<BR>
30
<A HREF="MetaCatServlet.html" TARGET="classFrame">MetaCatServlet</A>
30
<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html" TARGET="classFrame">MetaCatServlet</A>
31 31
<BR>
32
<A HREF="ReaderElement.html" TARGET="classFrame">ReaderElement</A>
32
<A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html" TARGET="classFrame">MetaCatUtil</A>
33 33
<BR>
34
<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html" TARGET="classFrame">ReaderElement</A>
35
<BR>
34 36
</FONT></TD>
35 37
</TR>
36 38
</TABLE>
docs/packages.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:20 AKDT 2000 -->
6 6
<TITLE>
7 7

  
8 8
</TITLE>
......
20 20
<BR>
21 21
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="index.html">Frame version</A>
22 22
<BR>
23
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="BasicElement.html">Non-frame version.</A></CENTER>
23
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="edu/ucsb/nceas/metacat/BasicElement.html">Non-frame version.</A></CENTER>
24 24

  
25 25
</BODY>
26 26
</HTML>
docs/help-doc.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:21 AKDT 2000 -->
6 6
<TITLE>
7 7
: API Help
8 8
</TITLE>
docs/serialized-form.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:21 AKDT 2000 -->
6 6
<TITLE>
7 7
Serialized Form
8 8
</TITLE>
......
47 47
<H1>
48 48
Serialized Form</H1>
49 49
</CENTER>
50
<A NAME="MetaCatServlet"><!-- --></A>
50
<A NAME="edu.ucsb.nceas.metacat.MetaCatServlet"><!-- --></A>
51 51
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
52 52
<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
53 53
<TD COLSPAN=2><FONT SIZE="+2">
54
<B>Class <A HREF="MetaCatServlet.html">MetaCatServlet</A> implements Serializable</B></FONT></TD>
54
<B>Class <A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html">edu.ucsb.nceas.metacat.MetaCatServlet</A> implements Serializable</B></FONT></TD>
55 55
</TR>
56 56
</TABLE>
57 57

  
......
83 83
<H3>
84 84
docreader</H3>
85 85
<PRE>
86
<A HREF="DBReader.html">DBReader</A> <B>docreader</B></PRE>
86
<A HREF="edu/ucsb/nceas/metacat/DBReader.html">DBReader</A> <B>docreader</B></PRE>
87 87
<DL>
88 88
</DL>
89 89
<HR>
......
91 91
<H3>
92 92
queryobj</H3>
93 93
<PRE>
94
<A HREF="DBSimpleQuery.html">DBSimpleQuery</A> <B>queryobj</B></PRE>
94
<A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html">DBSimpleQuery</A> <B>queryobj</B></PRE>
95 95
<DL>
96 96
</DL>
97 97

  
docs/overview-tree.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:14 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:20 AKDT 2000 -->
6 6
<TITLE>
7 7
: Class Hierarchy
8 8
</TITLE>
......
52 52
</H2>
53 53
<UL>
54 54
<LI TYPE="circle">class java.lang.Object<UL>
55
<LI TYPE="circle">class <A HREF="BasicElement.html"><B>BasicElement</B></A><UL>
56
<LI TYPE="circle">class <A HREF="DBSAXElement.html"><B>DBSAXElement</B></A><LI TYPE="circle">class <A HREF="ReaderElement.html"><B>ReaderElement</B></A></UL>
57
<LI TYPE="circle">class <A HREF="DBReader.html"><B>DBReader</B></A><LI TYPE="circle">class <A HREF="DBSAXWriter.html"><B>DBSAXWriter</B></A><LI TYPE="circle">class <A HREF="DBSimpleQuery.html"><B>DBSimpleQuery</B></A><LI TYPE="circle">class javax.servlet.GenericServlet (implements java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig)
55
<LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/BasicElement.html"><B>BasicElement</B></A><UL>
56
<LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXElement.html"><B>DBSAXElement</B></A><LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/ReaderElement.html"><B>ReaderElement</B></A></UL>
57
<LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBReader.html"><B>DBReader</B></A><LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXWriter.html"><B>DBSAXWriter</B></A><LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSimpleQuery.html"><B>DBSimpleQuery</B></A><LI TYPE="circle">class javax.servlet.GenericServlet (implements java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig)
58 58
<UL>
59 59
<LI TYPE="circle">class javax.servlet.http.HttpServlet (implements java.io.Serializable)
60 60
<UL>
61
<LI TYPE="circle">class <A HREF="MetaCatServlet.html"><B>MetaCatServlet</B></A></UL>
61
<LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatServlet.html"><B>MetaCatServlet</B></A></UL>
62 62
</UL>
63 63
<LI TYPE="circle">class org.xml.sax.HandlerBase (implements org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler)
64 64
<UL>
65 65
<LI TYPE="circle">class oracle.xml.parser.v2.DefaultXMLDocumentHandler (implements oracle.xml.parser.v2.XMLDocumentHandler)
66 66
<UL>
67
<LI TYPE="circle">class <A HREF="DBSAXHandler.html"><B>DBSAXHandler</B></A></UL>
67
<LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/DBSAXHandler.html"><B>DBSAXHandler</B></A></UL>
68 68
</UL>
69
<LI TYPE="circle">class edu.ucsb.nceas.metacat.<A HREF="edu/ucsb/nceas/metacat/MetaCatUtil.html"><B>MetaCatUtil</B></A></UL>
69 70
</UL>
70
</UL>
71 71
<HR>
72 72

  
73 73
<!-- ========== START OF NAVBAR ========== -->
docs/index.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000-->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:20 AKDT 2000-->
6 6
<TITLE>
7 7
Generated Documentation (Untitled)
8 8
</TITLE>
9 9
</HEAD>
10 10
<FRAMESET cols="20%,80%">
11 11
<FRAME src="allclasses-frame.html" name="packageFrame">
12
<FRAME src="BasicElement.html" name="classFrame">
12
<FRAME src="edu/ucsb/nceas/metacat/BasicElement.html" name="classFrame">
13 13
</FRAMESET>
14 14
<NOFRAMES>
15 15
<H2>
......
18 18
<P>
19 19
This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client.
20 20
<BR>
21
Link to <A HREF="BasicElement.html">Non-frame version.</A></NOFRAMES>
21
Link to <A HREF="edu/ucsb/nceas/metacat/BasicElement.html">Non-frame version.</A></NOFRAMES>
22 22
</HTML>
docs/deprecated-list.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 15:07:20 AKDT 2000 -->
6 6
<TITLE>
7 7
: Deprecated List
8 8
</TITLE>
DBSAXElement.java
8 8
 *     Version: '$Id$'
9 9
 */
10 10

  
11
//package project;
11
package edu.ucsb.nceas.metacat;
12 12

  
13 13
import java.sql.*;
14 14
import java.io.IOException;
ReaderElement.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
//package project;
12
package edu.ucsb.nceas.metacat;
13 13

  
14 14
import java.sql.*;
15 15
import java.io.IOException;
DBWriter.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
//package edu.ucsb.nceas.dbwriter;
12
package edu.ucsb.nceas.metacat;
13 13

  
14 14
import java.io.File;
15 15
import java.io.FileInputStream;
DBSimpleQuery.java
11 11
 *     Version: '$Id$'
12 12
 */
13 13

  
14
package edu.ucsb.nceas.metacat;
15

  
14 16
import java.io.*;
15 17
import java.net.URL;
16 18
import java.net.MalformedURLException;
lib/style/resultset.xsl
1
<?xml version="1.0"?>
2
<!--
3
  * resultset.xsl
4
  *
5
  *      Authors: Matt Jones
6
  *    Copyright: 2000 Regents of the University of California and the 
7
  *               National Center for Ecological Analysis and Synthesis
8
  *  For Details: http://www.nceas.ucsb.edu/
9
  *      Created: 2000 April 5
10
  *    File Info: '$Id$'
11
  *
12
  * This is an XSLT (http://www.w3.org/TR/xslt) stylesheet designed to
13
  * convert an XML file showing the resultset of a query
14
  * into an HTML format suitable for rendering with modern web browsers.
15
-->
16
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
17

  
18
  <xsl:output method="html"/>
19

  
20
  <xsl:template match="/">
21
    <html>
22
      <head>
23
	<link rel="stylesheet" type="text/css" href="/xmltodb/rowcol.css" />
24
      </head>
25
      <body class="emlbody">
26
	<center>
27
          <h1>Query Results</h1>
28
          <h3>for querystring <xsl:value-of select="resultset/query"/>
29
          </h3>
30
        </center>
31
        
32
        <table width="100%">
33
        <tr class="rowodd">
34
        <th><xsl:text>Document ID</xsl:text></th>
35
        <th><xsl:text>Title</xsl:text></th>
36
        </tr>
37

  
38
        <xsl:for-each select="resultset/nodeid">
39
          <tr valign="top">
40
            <xsl:attribute name="class">
41
              <xsl:choose>
42
                <xsl:when test="position() mod 2 = 1">rowwhite</xsl:when>
43
                <xsl:when test="position() mod 2 = 0">rowlight</xsl:when>
44
              </xsl:choose>
45
            </xsl:attribute>
46

  
47
          <td><a>
48
              <xsl:attribute name="href">
49
              /servlets/MetaCatServlet?action=getdocument&amp;docid=<xsl:value-of select="."/>
50
              </xsl:attribute>
51
              <xsl:text>Document </xsl:text><xsl:value-of select="."/>
52
              </a>
53
          </td>
54
          <td>Fake title</td>
55
          </tr>
56
        </xsl:for-each>
57
        </table>
58

  
59
      </body>
60
    </html>
61
  </xsl:template>
62

  
63
</xsl:stylesheet>
0 64

  
DBSAXWriter.java
9 9
 *     Version: '$Id$'
10 10
 */
11 11

  
12
package edu.ucsb.nceas.metacat;
13

  
12 14
import org.xml.sax.*;
13 15

  
14 16
import java.io.*;

Also available in: Unified diff