Project

General

Profile

« Previous | Next » 

Revision 50

Added by Matt Jones over 24 years ago

changed database connection code, added utility class MetaCatUtil.java

View differences:

DBSimpleQuery.html
2 2
<!--NewPage-->
3 3
<HTML>
4 4
<HEAD>
5
<!-- Generated by javadoc on Tue Apr 11 19:05:41 AKDT 2000 -->
5
<!-- Generated by javadoc on Mon Apr 17 13:49:15 AKDT 2000 -->
6 6
<TITLE>
7 7
: Class  DBSimpleQuery
8 8
</TITLE>
......
34 34
<TR>
35 35
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
36 36
&nbsp;<A HREF="DBSAXWriter.html"><B>PREV CLASS</B></A>&nbsp;
37
&nbsp;<A HREF="ReaderElement.html"><B>NEXT CLASS</B></A></FONT></TD>
37
&nbsp;<A HREF="MetaCatServlet.html"><B>NEXT CLASS</B></A></FONT></TD>
38 38
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
39 39
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
40 40
&nbsp;<A HREF="DBSimpleQuery.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
41 41
</TR>
42 42
<TR>
43 43
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
44
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
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 45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
46
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
47 47
</TR>
48 48
</TABLE>
49 49
<!-- =========== END OF NAVBAR =========== -->
......
77 77

  
78 78
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
79 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>
80 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;
81 99
<!-- ========== METHOD SUMMARY =========== -->
82 100

  
83 101
<A NAME="method_summary"><!-- --></A>
......
130 148

  
131 149
<!-- ========= CONSTRUCTOR DETAIL ======== -->
132 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>
133 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

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

  
136 179
<A NAME="method_detail"><!-- --></A>
......
190 233
<TR>
191 234
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
192 235
&nbsp;<A HREF="DBSAXWriter.html"><B>PREV CLASS</B></A>&nbsp;
193
&nbsp;<A HREF="ReaderElement.html"><B>NEXT CLASS</B></A></FONT></TD>
236
&nbsp;<A HREF="MetaCatServlet.html"><B>NEXT CLASS</B></A></FONT></TD>
194 237
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
195 238
  <A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
196 239
&nbsp;<A HREF="DBSimpleQuery.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
197 240
</TR>
198 241
<TR>
199 242
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
200
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
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>
201 244
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
202
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
245
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
203 246
</TR>
204 247
</TABLE>
205 248
<!-- =========== END OF NAVBAR =========== -->

Also available in: Unified diff