Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / MetaCatUtil.html @ 138

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 Wed Jun 07 16:35:58 AKDT 2000 -->
6
<TITLE>
7
MetaCat API: Class  MetaCatUtil
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="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
22
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MetaCatUtil.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
28
  </TR>
29
</TABLE>
30
</TD>
31
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
32
</EM>
33
</TD>
34
</TR>
35

    
36
<TR>
37
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
38
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html"><B>PREV CLASS</B></A>&nbsp;
39
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/TextNode.html"><B>NEXT CLASS</B></A></FONT></TD>
40
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
41
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
42
&nbsp;<A HREF="MetaCatUtil.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
43
</TR>
44
<TR>
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
47
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
48
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
49
</TR>
50
</TABLE>
51
<!-- =========== END OF NAVBAR =========== -->
52

    
53
<HR>
54
<!-- ======== START OF CLASS DATA ======== -->
55
<H2>
56
<FONT SIZE="-1">
57
edu.ucsb.nceas.metacat</FONT>
58
<BR>
59
Class  MetaCatUtil</H2>
60
<PRE>
61
java.lang.Object
62
  |
63
  +--<B>edu.ucsb.nceas.metacat.MetaCatUtil</B>
64
</PRE>
65
<HR>
66
<DL>
67
<DT>public class <B>MetaCatUtil</B><DT>extends java.lang.Object</DL>
68

    
69
<P>
70
A suite of utility classes for the metadata catalog server
71
<P>
72
<HR>
73

    
74
<P>
75
<!-- ======== INNER CLASS SUMMARY ======== -->
76

    
77

    
78
<!-- =========== FIELD SUMMARY =========== -->
79

    
80

    
81
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
82

    
83
<A NAME="constructor_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>Constructor Summary</B></FONT></TD>
88
</TR>
89
<TR BGCOLOR="white" CLASS="TableRowColor">
90
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatUtil.html#MetaCatUtil()">MetaCatUtil</A></B>()</CODE>
91

    
92
<BR>
93
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
94
</TR>
95
</TABLE>
96
&nbsp;
97
<!-- ========== METHOD SUMMARY =========== -->
98

    
99
<A NAME="method_summary"><!-- --></A>
100
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
101
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
102
<TD COLSPAN=2><FONT SIZE="+2">
103
<B>Method Summary</B></FONT></TD>
104
</TR>
105
<TR BGCOLOR="white" CLASS="TableRowColor">
106
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
107
<CODE>static&nbsp;java.sql.Connection</CODE></FONT></TD>
108
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatUtil.html#openDBConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">openDBConnection</A></B>(java.lang.String&nbsp;dbDriver,
109
                 java.lang.String&nbsp;connection,
110
                 java.lang.String&nbsp;user,
111
                 java.lang.String&nbsp;password)</CODE>
112

    
113
<BR>
114
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Utility method to establish a JDBC database connection</TD>
115
</TR>
116
</TABLE>
117
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
118
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
119
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
120
<TD><B>Methods inherited from class java.lang.Object</B></TD>
121
</TR>
122
<TR BGCOLOR="white" CLASS="TableRowColor">
123
<TD><CODE>clone, 
124
equals, 
125
finalize, 
126
getClass, 
127
hashCode, 
128
notify, 
129
notifyAll, 
130
toString, 
131
wait, 
132
wait, 
133
wait</CODE></TD>
134
</TR>
135
</TABLE>
136
&nbsp;
137
<P>
138

    
139
<!-- ============ FIELD DETAIL =========== -->
140

    
141

    
142
<!-- ========= CONSTRUCTOR DETAIL ======== -->
143

    
144
<A NAME="constructor_detail"><!-- --></A>
145
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
146
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
147
<TD COLSPAN=1><FONT SIZE="+2">
148
<B>Constructor Detail</B></FONT></TD>
149
</TR>
150
</TABLE>
151

    
152
<A NAME="MetaCatUtil()"><!-- --></A><H3>
153
MetaCatUtil</H3>
154
<PRE>
155
public <B>MetaCatUtil</B>()</PRE>
156
<DL>
157
</DL>
158

    
159
<!-- ============ METHOD DETAIL ========== -->
160

    
161
<A NAME="method_detail"><!-- --></A>
162
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
163
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
164
<TD COLSPAN=1><FONT SIZE="+2">
165
<B>Method Detail</B></FONT></TD>
166
</TR>
167
</TABLE>
168

    
169
<A NAME="openDBConnection(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
170
openDBConnection</H3>
171
<PRE>
172
public static java.sql.Connection <B>openDBConnection</B>(java.lang.String&nbsp;dbDriver,
173
                                                   java.lang.String&nbsp;connection,
174
                                                   java.lang.String&nbsp;user,
175
                                                   java.lang.String&nbsp;password)
176
                                            throws java.sql.SQLException,
177
                                                   java.lang.ClassNotFoundException</PRE>
178
<DL>
179
<DD>Utility method to establish a JDBC database connection<DD><DL>
180
<DT><B>Parameters:</B><DD><CODE>dbDriver</CODE> - the string representing the database driver<DD><CODE>connection</CODE> - the string representing the database connectin parameters<DD><CODE>user</CODE> - name of the user to use for database connection<DD><CODE>password</CODE> - password for the user to use for database connection</DL>
181
</DD>
182
</DL>
183
<!-- ========= END OF CLASS DATA ========= -->
184
<HR>
185

    
186
<!-- ========== START OF NAVBAR ========== -->
187
<A NAME="navbar_bottom"><!-- --></A>
188
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
189
<TR>
190
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
191
<A NAME="navbar_bottom_firstrow"><!-- --></A>
192
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
193
  <TR ALIGN="center" VALIGN="top">
194
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
195
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
196
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/MetaCatUtil.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
197
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
198
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
199
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
200
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
201
  </TR>
202
</TABLE>
203
</TD>
204
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
205
</EM>
206
</TD>
207
</TR>
208

    
209
<TR>
210
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
211
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/MetaCatServlet.html"><B>PREV CLASS</B></A>&nbsp;
212
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/TextNode.html"><B>NEXT CLASS</B></A></FONT></TD>
213
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
214
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
215
&nbsp;<A HREF="MetaCatUtil.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
216
</TR>
217
<TR>
218
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
219
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
220
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
221
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
222
</TR>
223
</TABLE>
224
<!-- =========== END OF NAVBAR =========== -->
225

    
226
<HR>
227
<i>Copyright ? 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>
228
</BODY>
229
</HTML>