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 15:35:35 AKDT 2000 -->
6
<TITLE>
7
: Class  DBSAXElement
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="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
27
  </TR>
28
</TABLE>
29
</TD>
30
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
31
</EM>
32
</TD>
33
</TR>
34

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

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

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

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

    
79

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

    
82

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

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

    
96
<BR>
97
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new element instance</TD>
98
</TR>
99
</TABLE>
100
&nbsp;
101
<!-- ========== METHOD SUMMARY =========== -->
102

    
103
<A NAME="method_summary"><!-- --></A>
104
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
105
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
106
<TD COLSPAN=2><FONT SIZE="+2">
107
<B>Method Summary</B></FONT></TD>
108
</TR>
109
<TR BGCOLOR="white" CLASS="TableRowColor">
110
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
111
<CODE>&nbsp;void</CODE></FONT></TD>
112
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A></B>(java.lang.String&nbsp;attName,
113
             java.lang.String&nbsp;attValue)</CODE>
114

    
115
<BR>
116
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add a new attribute to this element, or set its value</TD>
117
</TR>
118
<TR BGCOLOR="white" CLASS="TableRowColor">
119
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
120
<CODE>&nbsp;void</CODE></FONT></TD>
121
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXElement.html#writeContentToDB()">writeContentToDB</A></B>()</CODE>
122

    
123
<BR>
124
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write the element content to the db connection</TD>
125
</TR>
126
</TABLE>
127
&nbsp;<A NAME="methods_inherited_from_class_edu.ucsb.nceas.metacat.BasicElement"><!-- --></A>
128
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
129
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
130
<TD><B>Methods inherited from class edu.ucsb.nceas.metacat.<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A></B></TD>
131
</TR>
132
<TR BGCOLOR="white" CLASS="TableRowColor">
133
<TD><CODE><A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#appendContent(char[], int, int)">appendContent</A>, 
134
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#appendContent(java.lang.String)">appendContent</A>, 
135
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#getAttribute(java.lang.String)">getAttribute</A>, 
136
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#getAttributes()">getAttributes</A>, 
137
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#getContent()">getContent</A>, 
138
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#getElementID()">getElementID</A>, 
139
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#getParentID()">getParentID</A>, 
140
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#getTagName()">getTagName</A>, 
141
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#setElementID(long)">setElementID</A>, 
142
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#setParentID(long)">setParentID</A>, 
143
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#setTagName(java.lang.String)">setTagName</A>, 
144
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#toString()">toString</A></CODE></TD>
145
</TR>
146
</TABLE>
147
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
148
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
149
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
150
<TD><B>Methods inherited from class java.lang.Object</B></TD>
151
</TR>
152
<TR BGCOLOR="white" CLASS="TableRowColor">
153
<TD><CODE>clone, 
154
equals, 
155
finalize, 
156
getClass, 
157
hashCode, 
158
notify, 
159
notifyAll, 
160
wait, 
161
wait, 
162
wait</CODE></TD>
163
</TR>
164
</TABLE>
165
&nbsp;
166
<P>
167

    
168
<!-- ============ FIELD DETAIL =========== -->
169

    
170

    
171
<!-- ========= CONSTRUCTOR DETAIL ======== -->
172

    
173
<A NAME="constructor_detail"><!-- --></A>
174
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
175
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
176
<TD COLSPAN=1><FONT SIZE="+2">
177
<B>Constructor Detail</B></FONT></TD>
178
</TR>
179
</TABLE>
180

    
181
<A NAME="DBSAXElement(java.sql.Connection, java.lang.String, long)"><!-- --></A><H3>
182
DBSAXElement</H3>
183
<PRE>
184
public <B>DBSAXElement</B>(java.sql.Connection&nbsp;conn,
185
                    java.lang.String&nbsp;tagname,
186
                    long&nbsp;parent_id)</PRE>
187
<DL>
188
<DD>Construct a new element instance<DD><DL>
189
<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 element<DD><CODE>parent_id</CODE> - the parent id number for this element</DL>
190
</DD>
191
</DL>
192

    
193
<!-- ============ METHOD DETAIL ========== -->
194

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

    
203
<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
204
setAttribute</H3>
205
<PRE>
206
public void <B>setAttribute</B>(java.lang.String&nbsp;attName,
207
                         java.lang.String&nbsp;attValue)</PRE>
208
<DL>
209
<DD>Add a new attribute to this element, or set its value<DD><DL>
210
<DT><B>Overrides:</B><DD><A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A> in class <A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A></DL>
211
</DD>
212
</DL>
213
<HR>
214

    
215
<A NAME="writeContentToDB()"><!-- --></A><H3>
216
writeContentToDB</H3>
217
<PRE>
218
public void <B>writeContentToDB</B>()</PRE>
219
<DL>
220
<DD>Write the element content to the db connection</DL>
221
<!-- ========= END OF CLASS DATA ========= -->
222
<HR>
223

    
224
<!-- ========== START OF NAVBAR ========== -->
225
<A NAME="navbar_bottom"><!-- --></A>
226
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
227
<TR>
228
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
229
<A NAME="navbar_bottom_firstrow"><!-- --></A>
230
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
231
  <TR ALIGN="center" VALIGN="top">
232
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
233
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
234
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
235
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
236
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
237
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
238
  </TR>
239
</TABLE>
240
</TD>
241
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
242
</EM>
243
</TD>
244
</TR>
245

    
246
<TR>
247
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
248
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBReader.html"><B>PREV CLASS</B></A>&nbsp;
249
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBSAXHandler.html"><B>NEXT CLASS</B></A></FONT></TD>
250
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
251
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
252
&nbsp;<A HREF="DBSAXElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
253
</TR>
254
<TR>
255
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
256
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
257
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
258
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
259
</TR>
260
</TABLE>
261
<!-- =========== END OF NAVBAR =========== -->
262

    
263
<HR>
264

    
265
</BODY>
266
</HTML>
(3-3/12)