Revision 45
Added by Matt Jones almost 25 years ago
DBSimpleQuery.java | ||
---|---|---|
93 | 93 |
* Generally, one would call the findRootNodes() routine after creating |
94 | 94 |
* an instance to specify the query to search for |
95 | 95 |
* |
96 |
* @param query the text to search for in the element and attribute content |
|
97 | 96 |
* @param user the username to use for the database connection |
98 | 97 |
* @param password the password to use for the database connection |
99 | 98 |
* @param dbstring the connection info to use for the database connection |
100 | 99 |
*/ |
101 |
private DBSimpleQuery( String user, String password, String dbstring)
|
|
100 |
public DBSimpleQuery( String user, String password, String dbstring)
|
|
102 | 101 |
throws IOException, |
103 | 102 |
SQLException, |
104 | 103 |
ClassNotFoundException |
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). |
|
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).
|
|
5 | 5 |
|
6 | 6 |
USER=jones |
7 | 7 |
|
... | ... | |
9 | 9 |
|
10 | 10 |
default: all |
11 | 11 |
|
12 |
all: orasax reader query |
|
12 |
all: orasax reader query servlet
|
|
13 | 13 |
|
14 | 14 |
orasax: |
15 | 15 |
javac -classpath "$(CPATH)" \ |
... | ... | |
33 | 33 |
javac -classpath "$(CPATH)" \ |
34 | 34 |
DBSimpleQuery.java |
35 | 35 |
|
36 |
servlet: |
|
37 |
javac -classpath "$(CPATH)" \ |
|
38 |
MetaCatServlet.java \ |
|
39 |
DBSimpleQuery.java |
|
40 |
cp MetaCatServlet.class DBSimpleQuery.class /home/httpd/servlets/ |
|
41 |
|
|
36 | 42 |
test: |
37 | 43 |
java -cp $(CPATH) DBSAXWriter test.xml $(USER) $(PW) |
38 | 44 |
|
Also available in: Unified diff
started servlet to do XML query and return result set