Project

General

Profile

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 Mon Apr 17 13:49:15 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"> &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="DBSAXWriter.html"><B>PREV CLASS</B></A>&nbsp;
37
&nbsp;<A HREF="MetaCatServlet.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>  &nbsp;
40
&nbsp;<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: &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  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
<A NAME="constructor_summary"><!-- --></A>
81
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
82
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
83
<TD COLSPAN=2><FONT SIZE="+2">
84
<B>Constructor Summary</B></FONT></TD>
85
</TR>
86
<TR BGCOLOR="white" CLASS="TableRowColor">
87
<TD><CODE><B><A HREF="DBSimpleQuery.html#DBSimpleQuery(java.lang.String, java.lang.String, java.lang.String)">DBSimpleQuery</A></B>(java.lang.String&nbsp;user,
88
              java.lang.String&nbsp;password,
89
              java.lang.String&nbsp;dbstring)</CODE>
90

    
91
<BR>
92
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;construct an instance of the DBSimpleQuery class 
93

    
94
 Generally, one would call the findRootNodes() routine after creating 
95
 an instance to specify the query to search for</TD>
96
</TR>
97
</TABLE>
98
&nbsp;
99
<!-- ========== METHOD SUMMARY =========== -->
100

    
101
<A NAME="method_summary"><!-- --></A>
102
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
103
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
104
<TD COLSPAN=2><FONT SIZE="+2">
105
<B>Method Summary</B></FONT></TD>
106
</TR>
107
<TR BGCOLOR="white" CLASS="TableRowColor">
108
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
109
<CODE>&nbsp;java.util.Hashtable</CODE></FONT></TD>
110
<TD><CODE><B><A HREF="DBSimpleQuery.html#findRootNodes(java.lang.String)">findRootNodes</A></B>(java.lang.String&nbsp;query)</CODE>
111

    
112
<BR>
113
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;routine to search the elements and attributes looking to match query</TD>
114
</TR>
115
<TR BGCOLOR="white" CLASS="TableRowColor">
116
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
117
<CODE>static&nbsp;void</CODE></FONT></TD>
118
<TD><CODE><B><A HREF="DBSimpleQuery.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE>
119

    
120
<BR>
121
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the main routine used to test the DBSimpleQuery utility.</TD>
122
</TR>
123
</TABLE>
124
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
125
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
126
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
127
<TD><B>Methods inherited from class java.lang.Object</B></TD>
128
</TR>
129
<TR BGCOLOR="white" CLASS="TableRowColor">
130
<TD><CODE>clone, 
131
equals, 
132
finalize, 
133
getClass, 
134
hashCode, 
135
notify, 
136
notifyAll, 
137
toString, 
138
wait, 
139
wait, 
140
wait</CODE></TD>
141
</TR>
142
</TABLE>
143
&nbsp;
144
<P>
145

    
146
<!-- ============ FIELD DETAIL =========== -->
147

    
148

    
149
<!-- ========= CONSTRUCTOR DETAIL ======== -->
150

    
151
<A NAME="constructor_detail"><!-- --></A>
152
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
153
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
154
<TD COLSPAN=1><FONT SIZE="+2">
155
<B>Constructor Detail</B></FONT></TD>
156
</TR>
157
</TABLE>
158

    
159
<A NAME="DBSimpleQuery(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
160
DBSimpleQuery</H3>
161
<PRE>
162
public <B>DBSimpleQuery</B>(java.lang.String&nbsp;user,
163
                     java.lang.String&nbsp;password,
164
                     java.lang.String&nbsp;dbstring)
165
              throws java.io.IOException,
166
                     java.sql.SQLException,
167
                     java.lang.ClassNotFoundException</PRE>
168
<DL>
169
<DD>construct an instance of the DBSimpleQuery class 
170

    
171
 Generally, one would call the findRootNodes() routine after creating 
172
 an instance to specify the query to search for<DD><DL>
173
<DT><B>Parameters:</B><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>
174
</DD>
175
</DL>
176

    
177
<!-- ============ METHOD DETAIL ========== -->
178

    
179
<A NAME="method_detail"><!-- --></A>
180
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
181
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
182
<TD COLSPAN=1><FONT SIZE="+2">
183
<B>Method Detail</B></FONT></TD>
184
</TR>
185
</TABLE>
186

    
187
<A NAME="main(java.lang.String[])"><!-- --></A><H3>
188
main</H3>
189
<PRE>
190
public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE>
191
<DL>
192
<DD>the main routine used to test the DBSimpleQuery utility.
193

    
194
 Usage: java DBSimpleQuery <query> <user> <password> [dbstring]<DD><DL>
195
<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>
196
</DD>
197
</DL>
198
<HR>
199

    
200
<A NAME="findRootNodes(java.lang.String)"><!-- --></A><H3>
201
findRootNodes</H3>
202
<PRE>
203
public java.util.Hashtable <B>findRootNodes</B>(java.lang.String&nbsp;query)</PRE>
204
<DL>
205
<DD>routine to search the elements and attributes looking to match query<DD><DL>
206
<DT><B>Parameters:</B><DD><CODE>query</CODE> - the text to search for</DL>
207
</DD>
208
</DL>
209
<!-- ========= END OF CLASS DATA ========= -->
210
<HR>
211

    
212
<!-- ========== START OF NAVBAR ========== -->
213
<A NAME="navbar_bottom"><!-- --></A>
214
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
215
<TR>
216
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
217
<A NAME="navbar_bottom_firstrow"><!-- --></A>
218
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
219
  <TR ALIGN="center" VALIGN="top">
220
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
221
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
222
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
223
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
224
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
225
  </TR>
226
</TABLE>
227
</TD>
228
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
229
</EM>
230
</TD>
231
</TR>
232

    
233
<TR>
234
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
235
&nbsp;<A HREF="DBSAXWriter.html"><B>PREV CLASS</B></A>&nbsp;
236
&nbsp;<A HREF="MetaCatServlet.html"><B>NEXT CLASS</B></A></FONT></TD>
237
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
238
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
239
&nbsp;<A HREF="DBSimpleQuery.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
240
</TR>
241
<TR>
242
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
243
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
244
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
245
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
246
</TR>
247
</TABLE>
248
<!-- =========== END OF NAVBAR =========== -->
249

    
250
<HR>
251

    
252
</BODY>
253
</HTML>
(6-6/16)