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 Tue Apr 11 19:05: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="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
22
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
23
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
24
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
25
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
26
|
</TR>
|
27
|
</TABLE>
|
28
|
</TD>
|
29
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
30
|
</EM>
|
31
|
</TD>
|
32
|
</TR>
|
33
|
|
34
|
<TR>
|
35
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
36
|
<A HREF="DBReader.html"><B>PREV CLASS</B></A>
|
37
|
<A HREF="DBSAXHandler.html"><B>NEXT CLASS</B></A></FONT></TD>
|
38
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
39
|
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
|
40
|
<A HREF="DBSAXElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
41
|
</TR>
|
42
|
<TR>
|
43
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
44
|
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
45
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
46
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
47
|
</TR>
|
48
|
</TABLE>
|
49
|
<!-- =========== END OF NAVBAR =========== -->
|
50
|
|
51
|
<HR>
|
52
|
<!-- ======== START OF CLASS DATA ======== -->
|
53
|
<H2>
|
54
|
Class DBSAXElement</H2>
|
55
|
<PRE>
|
56
|
java.lang.Object
|
57
|
|
|
58
|
+--<A HREF="BasicElement.html">BasicElement</A>
|
59
|
|
|
60
|
+--<B>DBSAXElement</B>
|
61
|
</PRE>
|
62
|
<HR>
|
63
|
<DL>
|
64
|
<DT>public class <B>DBSAXElement</B><DT>extends <A HREF="BasicElement.html">BasicElement</A></DL>
|
65
|
|
66
|
<P>
|
67
|
A Class that represents an XML element and its contents and
|
68
|
can write its own representation to a database connection
|
69
|
<P>
|
70
|
<HR>
|
71
|
|
72
|
<P>
|
73
|
<!-- ======== INNER CLASS SUMMARY ======== -->
|
74
|
|
75
|
|
76
|
<!-- =========== FIELD SUMMARY =========== -->
|
77
|
|
78
|
|
79
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
80
|
|
81
|
<A NAME="constructor_summary"><!-- --></A>
|
82
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
83
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
84
|
<TD COLSPAN=2><FONT SIZE="+2">
|
85
|
<B>Constructor Summary</B></FONT></TD>
|
86
|
</TR>
|
87
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
88
|
<TD><CODE><B><A HREF="DBSAXElement.html#DBSAXElement(java.sql.Connection, java.lang.String, long)">DBSAXElement</A></B>(java.sql.Connection conn,
|
89
|
java.lang.String tagname,
|
90
|
long parent_id)</CODE>
|
91
|
|
92
|
<BR>
|
93
|
Construct a new element instance</TD>
|
94
|
</TR>
|
95
|
</TABLE>
|
96
|
|
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> void</CODE></FONT></TD>
|
108
|
<TD><CODE><B><A HREF="DBSAXElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A></B>(java.lang.String attName,
|
109
|
java.lang.String attValue)</CODE>
|
110
|
|
111
|
<BR>
|
112
|
Add a new attribute to this element, or set its value</TD>
|
113
|
</TR>
|
114
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
115
|
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
116
|
<CODE> void</CODE></FONT></TD>
|
117
|
<TD><CODE><B><A HREF="DBSAXElement.html#writeContentToDB()">writeContentToDB</A></B>()</CODE>
|
118
|
|
119
|
<BR>
|
120
|
Write the element content to the db connection</TD>
|
121
|
</TR>
|
122
|
</TABLE>
|
123
|
<A NAME="methods_inherited_from_class_BasicElement"><!-- --></A>
|
124
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
125
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
126
|
<TD><B>Methods inherited from class <A HREF="BasicElement.html">BasicElement</A></B></TD>
|
127
|
</TR>
|
128
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
129
|
<TD><CODE><A HREF="BasicElement.html#appendContent(char[], int, int)">appendContent</A>,
|
130
|
<A HREF="BasicElement.html#appendContent(java.lang.String)">appendContent</A>,
|
131
|
<A HREF="BasicElement.html#getAttribute(java.lang.String)">getAttribute</A>,
|
132
|
<A HREF="BasicElement.html#getAttributes()">getAttributes</A>,
|
133
|
<A HREF="BasicElement.html#getContent()">getContent</A>,
|
134
|
<A HREF="BasicElement.html#getElementID()">getElementID</A>,
|
135
|
<A HREF="BasicElement.html#getParentID()">getParentID</A>,
|
136
|
<A HREF="BasicElement.html#getTagName()">getTagName</A>,
|
137
|
<A HREF="BasicElement.html#setElementID(long)">setElementID</A>,
|
138
|
<A HREF="BasicElement.html#setParentID(long)">setParentID</A>,
|
139
|
<A HREF="BasicElement.html#setTagName(java.lang.String)">setTagName</A>,
|
140
|
<A HREF="BasicElement.html#toString()">toString</A></CODE></TD>
|
141
|
</TR>
|
142
|
</TABLE>
|
143
|
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
144
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
145
|
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
146
|
<TD><B>Methods inherited from class java.lang.Object</B></TD>
|
147
|
</TR>
|
148
|
<TR BGCOLOR="white" CLASS="TableRowColor">
|
149
|
<TD><CODE>clone,
|
150
|
equals,
|
151
|
finalize,
|
152
|
getClass,
|
153
|
hashCode,
|
154
|
notify,
|
155
|
notifyAll,
|
156
|
wait,
|
157
|
wait,
|
158
|
wait</CODE></TD>
|
159
|
</TR>
|
160
|
</TABLE>
|
161
|
|
162
|
<P>
|
163
|
|
164
|
<!-- ============ FIELD DETAIL =========== -->
|
165
|
|
166
|
|
167
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
168
|
|
169
|
<A NAME="constructor_detail"><!-- --></A>
|
170
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
171
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
172
|
<TD COLSPAN=1><FONT SIZE="+2">
|
173
|
<B>Constructor Detail</B></FONT></TD>
|
174
|
</TR>
|
175
|
</TABLE>
|
176
|
|
177
|
<A NAME="DBSAXElement(java.sql.Connection, java.lang.String, long)"><!-- --></A><H3>
|
178
|
DBSAXElement</H3>
|
179
|
<PRE>
|
180
|
public <B>DBSAXElement</B>(java.sql.Connection conn,
|
181
|
java.lang.String tagname,
|
182
|
long parent_id)</PRE>
|
183
|
<DL>
|
184
|
<DD>Construct a new element instance<DD><DL>
|
185
|
<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>
|
186
|
</DD>
|
187
|
</DL>
|
188
|
|
189
|
<!-- ============ METHOD DETAIL ========== -->
|
190
|
|
191
|
<A NAME="method_detail"><!-- --></A>
|
192
|
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
|
193
|
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
194
|
<TD COLSPAN=1><FONT SIZE="+2">
|
195
|
<B>Method Detail</B></FONT></TD>
|
196
|
</TR>
|
197
|
</TABLE>
|
198
|
|
199
|
<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>
|
200
|
setAttribute</H3>
|
201
|
<PRE>
|
202
|
public void <B>setAttribute</B>(java.lang.String attName,
|
203
|
java.lang.String attValue)</PRE>
|
204
|
<DL>
|
205
|
<DD>Add a new attribute to this element, or set its value<DD><DL>
|
206
|
<DT><B>Overrides:</B><DD><A HREF="BasicElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A> in class <A HREF="BasicElement.html">BasicElement</A></DL>
|
207
|
</DD>
|
208
|
</DL>
|
209
|
<HR>
|
210
|
|
211
|
<A NAME="writeContentToDB()"><!-- --></A><H3>
|
212
|
writeContentToDB</H3>
|
213
|
<PRE>
|
214
|
public void <B>writeContentToDB</B>()</PRE>
|
215
|
<DL>
|
216
|
<DD>Write the element content to the db connection</DL>
|
217
|
<!-- ========= END OF CLASS DATA ========= -->
|
218
|
<HR>
|
219
|
|
220
|
<!-- ========== START OF NAVBAR ========== -->
|
221
|
<A NAME="navbar_bottom"><!-- --></A>
|
222
|
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
|
223
|
<TR>
|
224
|
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
225
|
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
226
|
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
|
227
|
<TR ALIGN="center" VALIGN="top">
|
228
|
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
229
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
230
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
231
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
232
|
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
233
|
</TR>
|
234
|
</TABLE>
|
235
|
</TD>
|
236
|
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
237
|
</EM>
|
238
|
</TD>
|
239
|
</TR>
|
240
|
|
241
|
<TR>
|
242
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
243
|
<A HREF="DBReader.html"><B>PREV CLASS</B></A>
|
244
|
<A HREF="DBSAXHandler.html"><B>NEXT CLASS</B></A></FONT></TD>
|
245
|
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
246
|
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A>
|
247
|
<A HREF="DBSAXElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
|
248
|
</TR>
|
249
|
<TR>
|
250
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
251
|
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
252
|
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
253
|
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
254
|
</TR>
|
255
|
</TABLE>
|
256
|
<!-- =========== END OF NAVBAR =========== -->
|
257
|
|
258
|
<HR>
|
259
|
|
260
|
</BODY>
|
261
|
</HTML>
|