Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / DBSAXElement.html @ 107

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 Sat May 20 14:25:41 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/DBSAXDocument.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, int)">DBSAXElement</A></B>(java.sql.Connection&nbsp;conn,
93
             java.lang.String&nbsp;tagname,
94
             long&nbsp;parent_id,
95
             int&nbsp;nodeIndex)</CODE>
96

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

    
104
<A NAME="method_summary"><!-- --></A>
105
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
106
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
107
<TD COLSPAN=2><FONT SIZE="+2">
108
<B>Method Summary</B></FONT></TD>
109
</TR>
110
<TR BGCOLOR="white" CLASS="TableRowColor">
111
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
112
<CODE>&nbsp;void</CODE></FONT></TD>
113
<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,
114
             java.lang.String&nbsp;attValue)</CODE>
115

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

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

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

    
173

    
174
<!-- ========= CONSTRUCTOR DETAIL ======== -->
175

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

    
184
<A NAME="DBSAXElement(java.sql.Connection, java.lang.String, long, int)"><!-- --></A><H3>
185
DBSAXElement</H3>
186
<PRE>
187
public <B>DBSAXElement</B>(java.sql.Connection&nbsp;conn,
188
                    java.lang.String&nbsp;tagname,
189
                    long&nbsp;parent_id,
190
                    int&nbsp;nodeIndex)</PRE>
191
<DL>
192
<DD>Construct a new element instance<DD><DL>
193
<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>
194
</DD>
195
</DL>
196

    
197
<!-- ============ METHOD DETAIL ========== -->
198

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

    
207
<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
208
setAttribute</H3>
209
<PRE>
210
public void <B>setAttribute</B>(java.lang.String&nbsp;attName,
211
                         java.lang.String&nbsp;attValue)</PRE>
212
<DL>
213
<DD>Add a new attribute to this element, or set its value<DD><DL>
214
<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>
215
</DD>
216
</DL>
217
<HR>
218

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

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

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

    
267
<HR>
268

    
269
</BODY>
270
</HTML>