1 |
31
|
jones
|
<!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 DBSimpleQuery
|
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"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
22 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
23 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
24 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
25 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </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 |
|
|
<A HREF="DBSAXWriter.html"><B>PREV CLASS</B></A>
|
37 |
|
|
<A HREF="ReaderElement.html"><B>NEXT CLASS</B></A></FONT></TD>
|
38 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
39 |
|
|
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
|
40 |
|
|
<A HREF="DBSimpleQuery.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: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
45 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
46 |
|
|
DETAIL: FIELD | CONSTR | <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 DBSimpleQuery</H2>
|
55 |
|
|
<PRE>
|
56 |
|
|
java.lang.Object
|
57 |
|
|
|
|
58 |
|
|
+--<B>DBSimpleQuery</B>
|
59 |
|
|
</PRE>
|
60 |
|
|
<HR>
|
61 |
|
|
<DL>
|
62 |
|
|
<DT>public class <B>DBSimpleQuery</B><DT>extends java.lang.Object</DL>
|
63 |
|
|
|
64 |
|
|
<P>
|
65 |
|
|
A Class that searches a relational DB for elements and attributes that
|
66 |
|
|
have free text matches to the query string. It returns a result set
|
67 |
|
|
consisting of the root nodeid for each document that satisfies the query
|
68 |
|
|
<P>
|
69 |
|
|
<HR>
|
70 |
|
|
|
71 |
|
|
<P>
|
72 |
|
|
<!-- ======== INNER CLASS SUMMARY ======== -->
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
79 |
|
|
|
80 |
|
|
|
81 |
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
82 |
|
|
|
83 |
|
|
<A NAME="method_summary"><!-- --></A>
|
84 |
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
85 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
86 |
|
|
<TD COLSPAN=2><FONT SIZE="+2">
|
87 |
|
|
<B>Method Summary</B></FONT></TD>
|
88 |
|
|
</TR>
|
89 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
90 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
91 |
|
|
<CODE> java.util.Hashtable</CODE></FONT></TD>
|
92 |
|
|
<TD><CODE><B><A HREF="DBSimpleQuery.html#findRootNodes(java.lang.String)">findRootNodes</A></B>(java.lang.String query)</CODE>
|
93 |
|
|
|
94 |
|
|
<BR>
|
95 |
|
|
routine to search the elements and attributes looking to match query</TD>
|
96 |
|
|
</TR>
|
97 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
98 |
|
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
99 |
|
|
<CODE>static void</CODE></FONT></TD>
|
100 |
|
|
<TD><CODE><B><A HREF="DBSimpleQuery.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE>
|
101 |
|
|
|
102 |
|
|
<BR>
|
103 |
|
|
the main routine used to test the DBSimpleQuery utility.</TD>
|
104 |
|
|
</TR>
|
105 |
|
|
</TABLE>
|
106 |
|
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
107 |
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
108 |
|
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
109 |
|
|
<TD><B>Methods inherited from class java.lang.Object</B></TD>
|
110 |
|
|
</TR>
|
111 |
|
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
112 |
|
|
<TD><CODE>clone,
|
113 |
|
|
equals,
|
114 |
|
|
finalize,
|
115 |
|
|
getClass,
|
116 |
|
|
hashCode,
|
117 |
|
|
notify,
|
118 |
|
|
notifyAll,
|
119 |
|
|
toString,
|
120 |
|
|
wait,
|
121 |
|
|
wait,
|
122 |
|
|
wait</CODE></TD>
|
123 |
|
|
</TR>
|
124 |
|
|
</TABLE>
|
125 |
|
|
|
126 |
|
|
<P>
|
127 |
|
|
|
128 |
|
|
<!-- ============ FIELD DETAIL =========== -->
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
<!-- ============ METHOD DETAIL ========== -->
|
135 |
|
|
|
136 |
|
|
<A NAME="method_detail"><!-- --></A>
|
137 |
|
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
138 |
|
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
139 |
|
|
<TD COLSPAN=1><FONT SIZE="+2">
|
140 |
|
|
<B>Method Detail</B></FONT></TD>
|
141 |
|
|
</TR>
|
142 |
|
|
</TABLE>
|
143 |
|
|
|
144 |
|
|
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
|
145 |
|
|
main</H3>
|
146 |
|
|
<PRE>
|
147 |
|
|
public static void <B>main</B>(java.lang.String[] args)</PRE>
|
148 |
|
|
<DL>
|
149 |
|
|
<DD>the main routine used to test the DBSimpleQuery utility.
|
150 |
|
|
|
151 |
|
|
Usage: java DBSimpleQuery <query> <user> <password> [dbstring]<DD><DL>
|
152 |
|
|
<DT><B>Parameters:</B><DD><CODE>query</CODE> - the text to search for in the element and attribute content<DD><CODE>user</CODE> - the username to use for the database connection<DD><CODE>password</CODE> - the password to use for the database connection<DD><CODE>dbstring</CODE> - the connection info to use for the database connection</DL>
|
153 |
|
|
</DD>
|
154 |
|
|
</DL>
|
155 |
|
|
<HR>
|
156 |
|
|
|
157 |
|
|
<A NAME="findRootNodes(java.lang.String)"><!-- --></A><H3>
|
158 |
|
|
findRootNodes</H3>
|
159 |
|
|
<PRE>
|
160 |
|
|
public java.util.Hashtable <B>findRootNodes</B>(java.lang.String query)</PRE>
|
161 |
|
|
<DL>
|
162 |
|
|
<DD>routine to search the elements and attributes looking to match query<DD><DL>
|
163 |
|
|
<DT><B>Parameters:</B><DD><CODE>query</CODE> - the text to search for</DL>
|
164 |
|
|
</DD>
|
165 |
|
|
</DL>
|
166 |
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
167 |
|
|
<HR>
|
168 |
|
|
|
169 |
|
|
<!-- ========== START OF NAVBAR ========== -->
|
170 |
|
|
<A NAME="navbar_bottom"><!-- --></A>
|
171 |
|
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
172 |
|
|
<TR>
|
173 |
|
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
174 |
|
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
175 |
|
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
176 |
|
|
<TR ALIGN="center" VALIGN="top">
|
177 |
|
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
178 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
179 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
180 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
181 |
|
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
182 |
|
|
</TR>
|
183 |
|
|
</TABLE>
|
184 |
|
|
</TD>
|
185 |
|
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
186 |
|
|
</EM>
|
187 |
|
|
</TD>
|
188 |
|
|
</TR>
|
189 |
|
|
|
190 |
|
|
<TR>
|
191 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
192 |
|
|
<A HREF="DBSAXWriter.html"><B>PREV CLASS</B></A>
|
193 |
|
|
<A HREF="ReaderElement.html"><B>NEXT CLASS</B></A></FONT></TD>
|
194 |
|
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
195 |
|
|
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
|
196 |
|
|
<A HREF="DBSimpleQuery.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
197 |
|
|
</TR>
|
198 |
|
|
<TR>
|
199 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
200 |
|
|
SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
201 |
|
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
202 |
|
|
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
203 |
|
|
</TR>
|
204 |
|
|
</TABLE>
|
205 |
|
|
<!-- =========== END OF NAVBAR =========== -->
|
206 |
|
|
|
207 |
|
|
<HR>
|
208 |
|
|
|
209 |
|
|
</BODY>
|
210 |
|
|
</HTML>
|