Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / DBSAXNode.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  DBSAXNode
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/DBSAXNode.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/DBSAXHandler.html"><B>PREV CLASS</B></A>&nbsp;
39
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXWriter.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="DBSAXNode.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  DBSAXNode</H2>
60
<PRE>
61
java.lang.Object
62
  |
63
  +--<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">edu.ucsb.nceas.metacat.BasicNode</A>
64
        |
65
        +--<B>edu.ucsb.nceas.metacat.DBSAXNode</B>
66
</PRE>
67
<HR>
68
<DL>
69
<DT>public class <B>DBSAXNode</B><DT>extends <A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">BasicNode</A></DL>
70

    
71
<P>
72
A Class that represents an XML node and its contents and
73
 can write its own representation to a database connection
74
<P>
75
<HR>
76

    
77
<P>
78
<!-- ======== INNER CLASS SUMMARY ======== -->
79

    
80

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

    
83

    
84
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
85

    
86
<A NAME="constructor_summary"><!-- --></A>
87
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
88
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
89
<TD COLSPAN=2><FONT SIZE="+2">
90
<B>Constructor Summary</B></FONT></TD>
91
</TR>
92
<TR BGCOLOR="white" CLASS="TableRowColor">
93
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html#DBSAXNode(java.sql.Connection, java.lang.String)">DBSAXNode</A></B>(java.sql.Connection&nbsp;conn,
94
          java.lang.String&nbsp;tagname)</CODE>
95

    
96
<BR>
97
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new node instance for DOCUMENT nodes</TD>
98
</TR>
99
<TR BGCOLOR="white" CLASS="TableRowColor">
100
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html#DBSAXNode(java.sql.Connection, java.lang.String, edu.ucsb.nceas.metacat.DBSAXNode)">DBSAXNode</A></B>(java.sql.Connection&nbsp;conn,
101
          java.lang.String&nbsp;tagname,
102
          <A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html">DBSAXNode</A>&nbsp;parentNode)</CODE>
103

    
104
<BR>
105
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new node instance for ELEMENT nodes</TD>
106
</TR>
107
</TABLE>
108
&nbsp;
109
<!-- ========== METHOD SUMMARY =========== -->
110

    
111
<A NAME="method_summary"><!-- --></A>
112
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
113
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
114
<TD COLSPAN=2><FONT SIZE="+2">
115
<B>Method Summary</B></FONT></TD>
116
</TR>
117
<TR BGCOLOR="white" CLASS="TableRowColor">
118
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
119
<CODE>&nbsp;void</CODE></FONT></TD>
120
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A></B>(java.lang.String&nbsp;attName,
121
             java.lang.String&nbsp;attValue)</CODE>
122

    
123
<BR>
124
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a new attribute to this node, or set its value</TD>
125
</TR>
126
<TR BGCOLOR="white" CLASS="TableRowColor">
127
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
128
<CODE>&nbsp;void</CODE></FONT></TD>
129
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html#writeChildNodeToDB(java.lang.String, java.lang.String, java.lang.String)">writeChildNodeToDB</A></B>(java.lang.String&nbsp;nodetype,
130
                   java.lang.String&nbsp;nodename,
131
                   java.lang.String&nbsp;data)</CODE>
132

    
133
<BR>
134
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;creates SQL code and inserts new node into DB connection</TD>
135
</TR>
136
<TR BGCOLOR="white" CLASS="TableRowColor">
137
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138
<CODE>&nbsp;void</CODE></FONT></TD>
139
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html#writeNodename(java.lang.String)">writeNodename</A></B>(java.lang.String&nbsp;nodename)</CODE>
140

    
141
<BR>
142
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;creates SQL code to put nodename for the document node 
143
 into DB connection</TD>
144
</TR>
145
</TABLE>
146
&nbsp;<A NAME="methods_inherited_from_class_edu.ucsb.nceas.metacat.BasicNode"><!-- --></A>
147
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
148
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
149
<TD><B>Methods inherited from class edu.ucsb.nceas.metacat.<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">BasicNode</A></B></TD>
150
</TR>
151
<TR BGCOLOR="white" CLASS="TableRowColor">
152
<TD><CODE><A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#addChildNode(edu.ucsb.nceas.metacat.BasicNode)">addChildNode</A>, 
153
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getAttribute(java.lang.String)">getAttribute</A>, 
154
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getAttributes()">getAttributes</A>, 
155
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getChildren()">getChildren</A>, 
156
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getNodeID()">getNodeID</A>, 
157
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getNodeIndex()">getNodeIndex</A>, 
158
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getNodeType()">getNodeType</A>, 
159
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getParentID()">getParentID</A>, 
160
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getTagName()">getTagName</A>, 
161
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#incChildNum()">incChildNum</A>, 
162
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setNodeID(long)">setNodeID</A>, 
163
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setNodeIndex(int)">setNodeIndex</A>, 
164
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setNodeType(java.lang.String)">setNodeType</A>, 
165
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setParentID(long)">setParentID</A>, 
166
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setTagName(java.lang.String)">setTagName</A></CODE></TD>
167
</TR>
168
</TABLE>
169
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
170
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
171
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
172
<TD><B>Methods inherited from class java.lang.Object</B></TD>
173
</TR>
174
<TR BGCOLOR="white" CLASS="TableRowColor">
175
<TD><CODE>clone, 
176
equals, 
177
finalize, 
178
getClass, 
179
hashCode, 
180
notify, 
181
notifyAll, 
182
toString, 
183
wait, 
184
wait, 
185
wait</CODE></TD>
186
</TR>
187
</TABLE>
188
&nbsp;
189
<P>
190

    
191
<!-- ============ FIELD DETAIL =========== -->
192

    
193

    
194
<!-- ========= CONSTRUCTOR DETAIL ======== -->
195

    
196
<A NAME="constructor_detail"><!-- --></A>
197
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
198
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
199
<TD COLSPAN=1><FONT SIZE="+2">
200
<B>Constructor Detail</B></FONT></TD>
201
</TR>
202
</TABLE>
203

    
204
<A NAME="DBSAXNode(java.sql.Connection, java.lang.String)"><!-- --></A><H3>
205
DBSAXNode</H3>
206
<PRE>
207
public <B>DBSAXNode</B>(java.sql.Connection&nbsp;conn,
208
                 java.lang.String&nbsp;tagname)</PRE>
209
<DL>
210
<DD>Construct a new node instance for DOCUMENT nodes<DD><DL>
211
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the JDBC Connection to which all information is written<DD><CODE>tagname</CODE> - the name of the node</DL>
212
</DD>
213
</DL>
214
<HR>
215

    
216
<A NAME="DBSAXNode(java.sql.Connection, java.lang.String, edu.ucsb.nceas.metacat.DBSAXNode)"><!-- --></A><H3>
217
DBSAXNode</H3>
218
<PRE>
219
public <B>DBSAXNode</B>(java.sql.Connection&nbsp;conn,
220
                 java.lang.String&nbsp;tagname,
221
                 <A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXNode.html">DBSAXNode</A>&nbsp;parentNode)</PRE>
222
<DL>
223
<DD>Construct a new node instance for ELEMENT nodes<DD><DL>
224
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the JDBC Connection to which all information is written<DD><CODE>tagname</CODE> - the name of the node<DD><CODE>parentNode</CODE> - the parent node for this node being created</DL>
225
</DD>
226
</DL>
227

    
228
<!-- ============ METHOD DETAIL ========== -->
229

    
230
<A NAME="method_detail"><!-- --></A>
231
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
232
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
233
<TD COLSPAN=1><FONT SIZE="+2">
234
<B>Method Detail</B></FONT></TD>
235
</TR>
236
</TABLE>
237

    
238
<A NAME="writeChildNodeToDB(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
239
writeChildNodeToDB</H3>
240
<PRE>
241
public void <B>writeChildNodeToDB</B>(java.lang.String&nbsp;nodetype,
242
                               java.lang.String&nbsp;nodename,
243
                               java.lang.String&nbsp;data)</PRE>
244
<DL>
245
<DD>creates SQL code and inserts new node into DB connection</DL>
246
<HR>
247

    
248
<A NAME="writeNodename(java.lang.String)"><!-- --></A><H3>
249
writeNodename</H3>
250
<PRE>
251
public void <B>writeNodename</B>(java.lang.String&nbsp;nodename)</PRE>
252
<DL>
253
<DD>creates SQL code to put nodename for the document node 
254
 into DB connection</DL>
255
<HR>
256

    
257
<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
258
setAttribute</H3>
259
<PRE>
260
public void <B>setAttribute</B>(java.lang.String&nbsp;attName,
261
                         java.lang.String&nbsp;attValue)</PRE>
262
<DL>
263
<DD>Add a new attribute to this node, or set its value<DD><DL>
264
<DT><B>Overrides:</B><DD><A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A> in class <A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">BasicNode</A></DL>
265
</DD>
266
</DL>
267
<!-- ========= END OF CLASS DATA ========= -->
268
<HR>
269

    
270
<!-- ========== START OF NAVBAR ========== -->
271
<A NAME="navbar_bottom"><!-- --></A>
272
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
273
<TR>
274
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
275
<A NAME="navbar_bottom_firstrow"><!-- --></A>
276
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
277
  <TR ALIGN="center" VALIGN="top">
278
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
279
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
280
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DBSAXNode.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
281
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
282
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
283
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
284
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
285
  </TR>
286
</TABLE>
287
</TD>
288
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
289
</EM>
290
</TD>
291
</TR>
292

    
293
<TR>
294
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
295
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html"><B>PREV CLASS</B></A>&nbsp;
296
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXWriter.html"><B>NEXT CLASS</B></A></FONT></TD>
297
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
298
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
299
&nbsp;<A HREF="DBSAXNode.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
300
</TR>
301
<TR>
302
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
303
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
304
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
305
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
306
</TR>
307
</TABLE>
308
<!-- =========== END OF NAVBAR =========== -->
309

    
310
<HR>
311
<i>Copyright ? 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>
312
</BODY>
313
</HTML>