Revision 52
Added by Matt Jones over 24 years ago
docs/ReaderElement.html | ||
---|---|---|
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 13:49:15 AKDT 2000 --> |
|
6 |
<TITLE> |
|
7 |
: Class ReaderElement |
|
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="MetaCatServlet.html"><B>PREV CLASS</B></A> |
|
37 |
NEXT CLASS</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="ReaderElement.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 ReaderElement</H2> |
|
55 |
<PRE> |
|
56 |
java.lang.Object |
|
57 |
| |
|
58 |
+--<A HREF="BasicElement.html">BasicElement</A> |
|
59 |
| |
|
60 |
+--<B>ReaderElement</B> |
|
61 |
</PRE> |
|
62 |
<HR> |
|
63 |
<DL> |
|
64 |
<DT>public class <B>ReaderElement</B><DT>extends <A HREF="BasicElement.html">BasicElement</A></DL> |
|
65 |
|
|
66 |
<P> |
|
67 |
A Class that represents an XML element and its contents, |
|
68 |
and can build itself from 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="ReaderElement.html#ReaderElement(java.sql.Connection)">ReaderElement</A></B>(java.sql.Connection conn)</CODE> |
|
89 |
|
|
90 |
<BR> |
|
91 |
Construct a new ReaderElement instance</TD> |
|
92 |
</TR> |
|
93 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
94 |
<TD><CODE><B><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long)">ReaderElement</A></B>(java.sql.Connection conn, |
|
95 |
long nodeid)</CODE> |
|
96 |
|
|
97 |
<BR> |
|
98 |
Construct a new ReaderElement instance</TD> |
|
99 |
</TR> |
|
100 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
101 |
<TD><CODE><B><A HREF="ReaderElement.html#ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)">ReaderElement</A></B>(java.sql.Connection conn, |
|
102 |
long nodeid, |
|
103 |
long parentnodeid, |
|
104 |
java.lang.String nodename, |
|
105 |
java.lang.String nodedata)</CODE> |
|
106 |
|
|
107 |
<BR> |
|
108 |
Construct a new ReaderElement instance</TD> |
|
109 |
</TR> |
|
110 |
</TABLE> |
|
111 |
|
|
112 |
<!-- ========== METHOD SUMMARY =========== --> |
|
113 |
|
|
114 |
<A NAME="method_summary"><!-- --></A> |
|
115 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
116 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
117 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
118 |
<B>Method Summary</B></FONT></TD> |
|
119 |
</TR> |
|
120 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
121 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
122 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
123 |
<TD><CODE><B><A HREF="ReaderElement.html#toString()">toString</A></B>()</CODE> |
|
124 |
|
|
125 |
<BR> |
|
126 |
String representation for display purposes (recursively descends through |
|
127 |
children to create an XML subtree)</TD> |
|
128 |
</TR> |
|
129 |
</TABLE> |
|
130 |
<A NAME="methods_inherited_from_class_BasicElement"><!-- --></A> |
|
131 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
132 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
|
133 |
<TD><B>Methods inherited from class <A HREF="BasicElement.html">BasicElement</A></B></TD> |
|
134 |
</TR> |
|
135 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
136 |
<TD><CODE><A HREF="BasicElement.html#appendContent(char[], int, int)">appendContent</A>, |
|
137 |
<A HREF="BasicElement.html#appendContent(java.lang.String)">appendContent</A>, |
|
138 |
<A HREF="BasicElement.html#getAttribute(java.lang.String)">getAttribute</A>, |
|
139 |
<A HREF="BasicElement.html#getAttributes()">getAttributes</A>, |
|
140 |
<A HREF="BasicElement.html#getContent()">getContent</A>, |
|
141 |
<A HREF="BasicElement.html#getElementID()">getElementID</A>, |
|
142 |
<A HREF="BasicElement.html#getParentID()">getParentID</A>, |
|
143 |
<A HREF="BasicElement.html#getTagName()">getTagName</A>, |
|
144 |
<A HREF="BasicElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A>, |
|
145 |
<A HREF="BasicElement.html#setElementID(long)">setElementID</A>, |
|
146 |
<A HREF="BasicElement.html#setParentID(long)">setParentID</A>, |
|
147 |
<A HREF="BasicElement.html#setTagName(java.lang.String)">setTagName</A></CODE></TD> |
|
148 |
</TR> |
|
149 |
</TABLE> |
|
150 |
<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 |
|
|
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="ReaderElement(java.sql.Connection)"><!-- --></A><H3> |
|
185 |
ReaderElement</H3> |
|
186 |
<PRE> |
|
187 |
public <B>ReaderElement</B>(java.sql.Connection conn)</PRE> |
|
188 |
<DL> |
|
189 |
<DD>Construct a new ReaderElement instance<DD><DL> |
|
190 |
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize</DL> |
|
191 |
</DD> |
|
192 |
</DL> |
|
193 |
<HR> |
|
194 |
|
|
195 |
<A NAME="ReaderElement(java.sql.Connection, long)"><!-- --></A><H3> |
|
196 |
ReaderElement</H3> |
|
197 |
<PRE> |
|
198 |
public <B>ReaderElement</B>(java.sql.Connection conn, |
|
199 |
long nodeid)</PRE> |
|
200 |
<DL> |
|
201 |
<DD>Construct a new ReaderElement instance<DD><DL> |
|
202 |
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize<DD><CODE>nodeid</CODE> - the element_id for the node to be created</DL> |
|
203 |
</DD> |
|
204 |
</DL> |
|
205 |
<HR> |
|
206 |
|
|
207 |
<A NAME="ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><!-- --></A><H3> |
|
208 |
ReaderElement</H3> |
|
209 |
<PRE> |
|
210 |
public <B>ReaderElement</B>(java.sql.Connection conn, |
|
211 |
long nodeid, |
|
212 |
long parentnodeid, |
|
213 |
java.lang.String nodename, |
|
214 |
java.lang.String nodedata)</PRE> |
|
215 |
<DL> |
|
216 |
<DD>Construct a new ReaderElement instance<DD><DL> |
|
217 |
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize<DD><CODE>nodeid</CODE> - the element_id for the node to be created<DD><CODE>parentnodeid</CODE> - the id of the parent node<DD><CODE>nodename</CODE> - the name of the element<DD><CODE>nodedata</CODE> - the text content of the node</DL> |
|
218 |
</DD> |
|
219 |
</DL> |
|
220 |
|
|
221 |
<!-- ============ METHOD DETAIL ========== --> |
|
222 |
|
|
223 |
<A NAME="method_detail"><!-- --></A> |
|
224 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
225 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
226 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
227 |
<B>Method Detail</B></FONT></TD> |
|
228 |
</TR> |
|
229 |
</TABLE> |
|
230 |
|
|
231 |
<A NAME="toString()"><!-- --></A><H3> |
|
232 |
toString</H3> |
|
233 |
<PRE> |
|
234 |
public java.lang.String <B>toString</B>()</PRE> |
|
235 |
<DL> |
|
236 |
<DD>String representation for display purposes (recursively descends through |
|
237 |
children to create an XML subtree)<DD><DL> |
|
238 |
<DT><B>Overrides:</B><DD><A HREF="BasicElement.html#toString()">toString</A> in class <A HREF="BasicElement.html">BasicElement</A></DL> |
|
239 |
</DD> |
|
240 |
</DL> |
|
241 |
<!-- ========= END OF CLASS DATA ========= --> |
|
242 |
<HR> |
|
243 |
|
|
244 |
<!-- ========== START OF NAVBAR ========== --> |
|
245 |
<A NAME="navbar_bottom"><!-- --></A> |
|
246 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
|
247 |
<TR> |
|
248 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
|
249 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
|
250 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
|
251 |
<TR ALIGN="center" VALIGN="top"> |
|
252 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
|
253 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
|
254 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
|
255 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> |
|
256 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> |
|
257 |
</TR> |
|
258 |
</TABLE> |
|
259 |
</TD> |
|
260 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
|
261 |
</EM> |
|
262 |
</TD> |
|
263 |
</TR> |
|
264 |
|
|
265 |
<TR> |
|
266 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
267 |
<A HREF="MetaCatServlet.html"><B>PREV CLASS</B></A> |
|
268 |
NEXT CLASS</FONT></TD> |
|
269 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
270 |
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> |
|
271 |
<A HREF="ReaderElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
|
272 |
</TR> |
|
273 |
<TR> |
|
274 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
275 |
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
|
276 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
277 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
|
278 |
</TR> |
|
279 |
</TABLE> |
|
280 |
<!-- =========== END OF NAVBAR =========== --> |
|
281 |
|
|
282 |
<HR> |
|
283 |
|
|
284 |
</BODY> |
|
285 |
</HTML> |
|
286 | 0 |
docs/DBSAXWriter.html | ||
---|---|---|
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 13:49:15 AKDT 2000 --> |
|
6 |
<TITLE> |
|
7 |
: Class DBSAXWriter |
|
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="DBSAXHandler.html"><B>PREV CLASS</B></A> |
|
37 |
<A HREF="DBSimpleQuery.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="DBSAXWriter.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 DBSAXWriter</H2> |
|
55 |
<PRE> |
|
56 |
java.lang.Object |
|
57 |
| |
|
58 |
+--<B>DBSAXWriter</B> |
|
59 |
</PRE> |
|
60 |
<HR> |
|
61 |
<DL> |
|
62 |
<DT>public class <B>DBSAXWriter</B><DT>extends java.lang.Object</DL> |
|
63 |
|
|
64 |
<P> |
|
65 |
A Class that reads in an XML text document and |
|
66 |
write its contents to a database connection using SAX |
|
67 |
<P> |
|
68 |
<HR> |
|
69 |
|
|
70 |
<P> |
|
71 |
<!-- ======== INNER CLASS SUMMARY ======== --> |
|
72 |
|
|
73 |
|
|
74 |
<!-- =========== FIELD SUMMARY =========== --> |
|
75 |
|
|
76 |
|
|
77 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
|
78 |
|
|
79 |
<A NAME="constructor_summary"><!-- --></A> |
|
80 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
81 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
82 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
83 |
<B>Constructor Summary</B></FONT></TD> |
|
84 |
</TR> |
|
85 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
86 |
<TD><CODE><B><A HREF="DBSAXWriter.html#DBSAXWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String)">DBSAXWriter</A></B>(java.lang.String filename, |
|
87 |
java.lang.String user, |
|
88 |
java.lang.String password, |
|
89 |
java.lang.String dbstring)</CODE> |
|
90 |
|
|
91 |
<BR> |
|
92 |
construct a new instance of the class to write an XML file to the database</TD> |
|
93 |
</TR> |
|
94 |
</TABLE> |
|
95 |
|
|
96 |
<!-- ========== METHOD SUMMARY =========== --> |
|
97 |
|
|
98 |
<A NAME="method_summary"><!-- --></A> |
|
99 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
100 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
101 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
102 |
<B>Method Summary</B></FONT></TD> |
|
103 |
</TR> |
|
104 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
105 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
106 |
<CODE>static java.net.URL</CODE></FONT></TD> |
|
107 |
<TD><CODE><B><A HREF="DBSAXWriter.html#fileToURL(java.io.File)">fileToURL</A></B>(java.io.File file)</CODE> |
|
108 |
|
|
109 |
<BR> |
|
110 |
Utility method to convert a file handle into a URL</TD> |
|
111 |
</TR> |
|
112 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
113 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
114 |
<CODE>static void</CODE></FONT></TD> |
|
115 |
<TD><CODE><B><A HREF="DBSAXWriter.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE> |
|
116 |
|
|
117 |
<BR> |
|
118 |
the main routine used to test the DBSAXWriter utility.</TD> |
|
119 |
</TR> |
|
120 |
</TABLE> |
|
121 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
|
122 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
123 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
|
124 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
|
125 |
</TR> |
|
126 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
127 |
<TD><CODE>clone, |
|
128 |
equals, |
|
129 |
finalize, |
|
130 |
getClass, |
|
131 |
hashCode, |
|
132 |
notify, |
|
133 |
notifyAll, |
|
134 |
toString, |
|
135 |
wait, |
|
136 |
wait, |
|
137 |
wait</CODE></TD> |
|
138 |
</TR> |
|
139 |
</TABLE> |
|
140 |
|
|
141 |
<P> |
|
142 |
|
|
143 |
<!-- ============ FIELD DETAIL =========== --> |
|
144 |
|
|
145 |
|
|
146 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
|
147 |
|
|
148 |
<A NAME="constructor_detail"><!-- --></A> |
|
149 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
150 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
151 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
152 |
<B>Constructor Detail</B></FONT></TD> |
|
153 |
</TR> |
|
154 |
</TABLE> |
|
155 |
|
|
156 |
<A NAME="DBSAXWriter(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
|
157 |
DBSAXWriter</H3> |
|
158 |
<PRE> |
|
159 |
public <B>DBSAXWriter</B>(java.lang.String filename, |
|
160 |
java.lang.String user, |
|
161 |
java.lang.String password, |
|
162 |
java.lang.String dbstring) |
|
163 |
throws java.io.IOException, |
|
164 |
java.sql.SQLException, |
|
165 |
java.lang.ClassNotFoundException</PRE> |
|
166 |
<DL> |
|
167 |
<DD>construct a new instance of the class to write an XML file to the database<DD><DL> |
|
168 |
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to be loaded into the database<DD><CODE>user</CODE> - the username to use for the database connection<DD><CODE>password</CODE> - the password to use for the database connection<DD><CODE>dbstring</CODE> - the connection info to use for the database connection</DL> |
|
169 |
</DD> |
|
170 |
</DL> |
|
171 |
|
|
172 |
<!-- ============ METHOD DETAIL ========== --> |
|
173 |
|
|
174 |
<A NAME="method_detail"><!-- --></A> |
|
175 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
176 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
177 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
178 |
<B>Method Detail</B></FONT></TD> |
|
179 |
</TR> |
|
180 |
</TABLE> |
|
181 |
|
|
182 |
<A NAME="main(java.lang.String[])"><!-- --></A><H3> |
|
183 |
main</H3> |
|
184 |
<PRE> |
|
185 |
public static void <B>main</B>(java.lang.String[] args)</PRE> |
|
186 |
<DL> |
|
187 |
<DD>the main routine used to test the DBSAXWriter utility. |
|
188 |
|
|
189 |
Usage: java DBSAXWriter <filename> <user> <password> [dbstring]<DD><DL> |
|
190 |
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - the filename to be loaded into the database<DD><CODE>user</CODE> - the username to use for the database connection<DD><CODE>password</CODE> - the password to use for the database connection<DD><CODE>dbstring</CODE> - the connection info to use for the database connection</DL> |
|
191 |
</DD> |
|
192 |
</DL> |
|
193 |
<HR> |
|
194 |
|
|
195 |
<A NAME="fileToURL(java.io.File)"><!-- --></A><H3> |
|
196 |
fileToURL</H3> |
|
197 |
<PRE> |
|
198 |
public static java.net.URL <B>fileToURL</B>(java.io.File file)</PRE> |
|
199 |
<DL> |
|
200 |
<DD>Utility method to convert a file handle into a URL</DL> |
|
201 |
<!-- ========= END OF CLASS DATA ========= --> |
|
202 |
<HR> |
|
203 |
|
|
204 |
<!-- ========== START OF NAVBAR ========== --> |
|
205 |
<A NAME="navbar_bottom"><!-- --></A> |
|
206 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
|
207 |
<TR> |
|
208 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
|
209 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
|
210 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
|
211 |
<TR ALIGN="center" VALIGN="top"> |
|
212 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
|
213 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
|
214 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
|
215 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> |
|
216 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> |
|
217 |
</TR> |
|
218 |
</TABLE> |
|
219 |
</TD> |
|
220 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
|
221 |
</EM> |
|
222 |
</TD> |
|
223 |
</TR> |
|
224 |
|
|
225 |
<TR> |
|
226 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
227 |
<A HREF="DBSAXHandler.html"><B>PREV CLASS</B></A> |
|
228 |
<A HREF="DBSimpleQuery.html"><B>NEXT CLASS</B></A></FONT></TD> |
|
229 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
230 |
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> |
|
231 |
<A HREF="DBSAXWriter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
|
232 |
</TR> |
|
233 |
<TR> |
|
234 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
235 |
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
|
236 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
237 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
|
238 |
</TR> |
|
239 |
</TABLE> |
|
240 |
<!-- =========== END OF NAVBAR =========== --> |
|
241 |
|
|
242 |
<HR> |
|
243 |
|
|
244 |
</BODY> |
|
245 |
</HTML> |
|
246 | 0 |
docs/BasicElement.html | ||
---|---|---|
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 13:49:15 AKDT 2000 --> |
|
6 |
<TITLE> |
|
7 |
: Class BasicElement |
|
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 |
PREV CLASS |
|
37 |
<A HREF="DBReader.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="BasicElement.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 BasicElement</H2> |
|
55 |
<PRE> |
|
56 |
java.lang.Object |
|
57 |
| |
|
58 |
+--<B>BasicElement</B> |
|
59 |
</PRE> |
|
60 |
<DL> |
|
61 |
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="DBSAXElement.html">DBSAXElement</A>, <A HREF="ReaderElement.html">ReaderElement</A></DD> |
|
62 |
</DL> |
|
63 |
<HR> |
|
64 |
<DL> |
|
65 |
<DT>public class <B>BasicElement</B><DT>extends java.lang.Object</DL> |
|
66 |
|
|
67 |
<P> |
|
68 |
A Class that represents an XML element and its contents |
|
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="BasicElement.html#BasicElement()">BasicElement</A></B>()</CODE> |
|
89 |
|
|
90 |
<BR> |
|
91 |
Construct a Basic Element</TD> |
|
92 |
</TR> |
|
93 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
94 |
<TD><CODE><B><A HREF="BasicElement.html#BasicElement(long, java.lang.String, long)">BasicElement</A></B>(long element_id, |
|
95 |
java.lang.String tagname, |
|
96 |
long parent_id)</CODE> |
|
97 |
|
|
98 |
<BR> |
|
99 |
Construct a Basic Element</TD> |
|
100 |
</TR> |
|
101 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
102 |
<TD><CODE><B><A HREF="BasicElement.html#BasicElement(java.lang.String, long)">BasicElement</A></B>(java.lang.String tagname, |
|
103 |
long parent_id)</CODE> |
|
104 |
|
|
105 |
<BR> |
|
106 |
Construct a Basic Element</TD> |
|
107 |
</TR> |
|
108 |
</TABLE> |
|
109 |
|
|
110 |
<!-- ========== METHOD SUMMARY =========== --> |
|
111 |
|
|
112 |
<A NAME="method_summary"><!-- --></A> |
|
113 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
114 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
115 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
116 |
<B>Method Summary</B></FONT></TD> |
|
117 |
</TR> |
|
118 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
119 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
120 |
<CODE> void</CODE></FONT></TD> |
|
121 |
<TD><CODE><B><A HREF="BasicElement.html#appendContent(char[], int, int)">appendContent</A></B>(char[] cbuf, |
|
122 |
int start, |
|
123 |
int len)</CODE> |
|
124 |
|
|
125 |
<BR> |
|
126 |
Append to the content of the element</TD> |
|
127 |
</TR> |
|
128 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
129 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
130 |
<CODE> void</CODE></FONT></TD> |
|
131 |
<TD><CODE><B><A HREF="BasicElement.html#appendContent(java.lang.String)">appendContent</A></B>(java.lang.String new_content)</CODE> |
|
132 |
|
|
133 |
<BR> |
|
134 |
Append to the content of the element</TD> |
|
135 |
</TR> |
|
136 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
137 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
138 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
139 |
<TD><CODE><B><A HREF="BasicElement.html#getAttribute(java.lang.String)">getAttribute</A></B>(java.lang.String attName)</CODE> |
|
140 |
|
|
141 |
<BR> |
|
142 |
Get an attribute value by name</TD> |
|
143 |
</TR> |
|
144 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
145 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
146 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
147 |
<TD><CODE><B><A HREF="BasicElement.html#getAttributes()">getAttributes</A></B>()</CODE> |
|
148 |
|
|
149 |
<BR> |
|
150 |
Get the attributes as a string</TD> |
|
151 |
</TR> |
|
152 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
153 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
154 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
155 |
<TD><CODE><B><A HREF="BasicElement.html#getContent()">getContent</A></B>()</CODE> |
|
156 |
|
|
157 |
<BR> |
|
158 |
Get the content of the element</TD> |
|
159 |
</TR> |
|
160 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
161 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
162 |
<CODE> long</CODE></FONT></TD> |
|
163 |
<TD><CODE><B><A HREF="BasicElement.html#getElementID()">getElementID</A></B>()</CODE> |
|
164 |
|
|
165 |
<BR> |
|
166 |
Get the id of this element</TD> |
|
167 |
</TR> |
|
168 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
169 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
170 |
<CODE> long</CODE></FONT></TD> |
|
171 |
<TD><CODE><B><A HREF="BasicElement.html#getParentID()">getParentID</A></B>()</CODE> |
|
172 |
|
|
173 |
<BR> |
|
174 |
Get the parent id of this element</TD> |
|
175 |
</TR> |
|
176 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
177 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
178 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
179 |
<TD><CODE><B><A HREF="BasicElement.html#getTagName()">getTagName</A></B>()</CODE> |
|
180 |
|
|
181 |
<BR> |
|
182 |
Get the name of this element</TD> |
|
183 |
</TR> |
|
184 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
185 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
186 |
<CODE> void</CODE></FONT></TD> |
|
187 |
<TD><CODE><B><A HREF="BasicElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A></B>(java.lang.String attName, |
|
188 |
java.lang.String attValue)</CODE> |
|
189 |
|
|
190 |
<BR> |
|
191 |
Add a new attribute to this element, or set its value</TD> |
|
192 |
</TR> |
|
193 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
194 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
195 |
<CODE> void</CODE></FONT></TD> |
|
196 |
<TD><CODE><B><A HREF="BasicElement.html#setElementID(long)">setElementID</A></B>(long element_id)</CODE> |
|
197 |
|
|
198 |
<BR> |
|
199 |
Set the id of this element</TD> |
|
200 |
</TR> |
|
201 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
202 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
203 |
<CODE> void</CODE></FONT></TD> |
|
204 |
<TD><CODE><B><A HREF="BasicElement.html#setParentID(long)">setParentID</A></B>(long parent_id)</CODE> |
|
205 |
|
|
206 |
<BR> |
|
207 |
Set the parent id of this element</TD> |
|
208 |
</TR> |
|
209 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
210 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
211 |
<CODE> void</CODE></FONT></TD> |
|
212 |
<TD><CODE><B><A HREF="BasicElement.html#setTagName(java.lang.String)">setTagName</A></B>(java.lang.String tagname)</CODE> |
|
213 |
|
|
214 |
<BR> |
|
215 |
Set the tagname of this element</TD> |
|
216 |
</TR> |
|
217 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
218 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
219 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
220 |
<TD><CODE><B><A HREF="BasicElement.html#toString()">toString</A></B>()</CODE> |
|
221 |
|
|
222 |
<BR> |
|
223 |
convert the element to a string representation for display</TD> |
|
224 |
</TR> |
|
225 |
</TABLE> |
|
226 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
|
227 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
228 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
|
229 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
|
230 |
</TR> |
|
231 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
232 |
<TD><CODE>clone, |
|
233 |
equals, |
|
234 |
finalize, |
|
235 |
getClass, |
|
236 |
hashCode, |
|
237 |
notify, |
|
238 |
notifyAll, |
|
239 |
wait, |
|
240 |
wait, |
|
241 |
wait</CODE></TD> |
|
242 |
</TR> |
|
243 |
</TABLE> |
|
244 |
|
|
245 |
<P> |
|
246 |
|
|
247 |
<!-- ============ FIELD DETAIL =========== --> |
|
248 |
|
|
249 |
|
|
250 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
|
251 |
|
|
252 |
<A NAME="constructor_detail"><!-- --></A> |
|
253 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
254 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
255 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
256 |
<B>Constructor Detail</B></FONT></TD> |
|
257 |
</TR> |
|
258 |
</TABLE> |
|
259 |
|
|
260 |
<A NAME="BasicElement()"><!-- --></A><H3> |
|
261 |
BasicElement</H3> |
|
262 |
<PRE> |
|
263 |
public <B>BasicElement</B>()</PRE> |
|
264 |
<DL> |
|
265 |
<DD>Construct a Basic Element</DL> |
|
266 |
<HR> |
|
267 |
|
|
268 |
<A NAME="BasicElement(java.lang.String, long)"><!-- --></A><H3> |
|
269 |
BasicElement</H3> |
|
270 |
<PRE> |
|
271 |
public <B>BasicElement</B>(java.lang.String tagname, |
|
272 |
long parent_id)</PRE> |
|
273 |
<DL> |
|
274 |
<DD>Construct a Basic Element<DD><DL> |
|
275 |
<DT><B>Parameters:</B><DD><CODE>tagname</CODE> - the name of the element<DD><CODE>parent_id</CODE> - the id number of the parent element</DL> |
|
276 |
</DD> |
|
277 |
</DL> |
|
278 |
<HR> |
|
279 |
|
|
280 |
<A NAME="BasicElement(long, java.lang.String, long)"><!-- --></A><H3> |
|
281 |
BasicElement</H3> |
|
282 |
<PRE> |
|
283 |
public <B>BasicElement</B>(long element_id, |
|
284 |
java.lang.String tagname, |
|
285 |
long parent_id)</PRE> |
|
286 |
<DL> |
|
287 |
<DD>Construct a Basic Element<DD><DL> |
|
288 |
<DT><B>Parameters:</B><DD><CODE>element_id</CODE> - the id number of the element<DD><CODE>tagname</CODE> - the name of the element<DD><CODE>parent_id</CODE> - the id number of the parent element</DL> |
|
289 |
</DD> |
|
290 |
</DL> |
|
291 |
|
|
292 |
<!-- ============ METHOD DETAIL ========== --> |
|
293 |
|
|
294 |
<A NAME="method_detail"><!-- --></A> |
|
295 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
296 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
297 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
298 |
<B>Method Detail</B></FONT></TD> |
|
299 |
</TR> |
|
300 |
</TABLE> |
|
301 |
|
|
302 |
<A NAME="toString()"><!-- --></A><H3> |
|
303 |
toString</H3> |
|
304 |
<PRE> |
|
305 |
public java.lang.String <B>toString</B>()</PRE> |
|
306 |
<DL> |
|
307 |
<DD>convert the element to a string representation for display<DD><DL> |
|
308 |
<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL> |
|
309 |
</DD> |
|
310 |
</DL> |
|
311 |
<HR> |
|
312 |
|
|
313 |
<A NAME="getElementID()"><!-- --></A><H3> |
|
314 |
getElementID</H3> |
|
315 |
<PRE> |
|
316 |
public long <B>getElementID</B>()</PRE> |
|
317 |
<DL> |
|
318 |
<DD>Get the id of this element</DL> |
|
319 |
<HR> |
|
320 |
|
|
321 |
<A NAME="setElementID(long)"><!-- --></A><H3> |
|
322 |
setElementID</H3> |
|
323 |
<PRE> |
|
324 |
public void <B>setElementID</B>(long element_id)</PRE> |
|
325 |
<DL> |
|
326 |
<DD>Set the id of this element</DL> |
|
327 |
<HR> |
|
328 |
|
|
329 |
<A NAME="getParentID()"><!-- --></A><H3> |
|
330 |
getParentID</H3> |
|
331 |
<PRE> |
|
332 |
public long <B>getParentID</B>()</PRE> |
|
333 |
<DL> |
|
334 |
<DD>Get the parent id of this element</DL> |
|
335 |
<HR> |
|
336 |
|
|
337 |
<A NAME="setParentID(long)"><!-- --></A><H3> |
|
338 |
setParentID</H3> |
|
339 |
<PRE> |
|
340 |
public void <B>setParentID</B>(long parent_id)</PRE> |
|
341 |
<DL> |
|
342 |
<DD>Set the parent id of this element</DL> |
|
343 |
<HR> |
|
344 |
|
|
345 |
<A NAME="getTagName()"><!-- --></A><H3> |
|
346 |
getTagName</H3> |
|
347 |
<PRE> |
|
348 |
public java.lang.String <B>getTagName</B>()</PRE> |
|
349 |
<DL> |
|
350 |
<DD>Get the name of this element</DL> |
|
351 |
<HR> |
|
352 |
|
|
353 |
<A NAME="setTagName(java.lang.String)"><!-- --></A><H3> |
|
354 |
setTagName</H3> |
|
355 |
<PRE> |
|
356 |
public void <B>setTagName</B>(java.lang.String tagname)</PRE> |
|
357 |
<DL> |
|
358 |
<DD>Set the tagname of this element</DL> |
|
359 |
<HR> |
|
360 |
|
|
361 |
<A NAME="getAttributes()"><!-- --></A><H3> |
|
362 |
getAttributes</H3> |
|
363 |
<PRE> |
|
364 |
public java.lang.String <B>getAttributes</B>()</PRE> |
|
365 |
<DL> |
|
366 |
<DD>Get the attributes as a string</DL> |
|
367 |
<HR> |
|
368 |
|
|
369 |
<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3> |
|
370 |
setAttribute</H3> |
|
371 |
<PRE> |
|
372 |
public void <B>setAttribute</B>(java.lang.String attName, |
|
373 |
java.lang.String attValue)</PRE> |
|
374 |
<DL> |
|
375 |
<DD>Add a new attribute to this element, or set its value</DL> |
|
376 |
<HR> |
|
377 |
|
|
378 |
<A NAME="getAttribute(java.lang.String)"><!-- --></A><H3> |
|
379 |
getAttribute</H3> |
|
380 |
<PRE> |
|
381 |
public java.lang.String <B>getAttribute</B>(java.lang.String attName)</PRE> |
|
382 |
<DL> |
|
383 |
<DD>Get an attribute value by name</DL> |
|
384 |
<HR> |
|
385 |
|
|
386 |
<A NAME="appendContent(char[], int, int)"><!-- --></A><H3> |
|
387 |
appendContent</H3> |
|
388 |
<PRE> |
|
389 |
public void <B>appendContent</B>(char[] cbuf, |
|
390 |
int start, |
|
391 |
int len)</PRE> |
|
392 |
<DL> |
|
393 |
<DD>Append to the content of the element</DL> |
|
394 |
<HR> |
|
395 |
|
|
396 |
<A NAME="appendContent(java.lang.String)"><!-- --></A><H3> |
|
397 |
appendContent</H3> |
|
398 |
<PRE> |
|
399 |
public void <B>appendContent</B>(java.lang.String new_content)</PRE> |
|
400 |
<DL> |
|
401 |
<DD>Append to the content of the element</DL> |
|
402 |
<HR> |
|
403 |
|
|
404 |
<A NAME="getContent()"><!-- --></A><H3> |
|
405 |
getContent</H3> |
|
406 |
<PRE> |
|
407 |
public java.lang.String <B>getContent</B>()</PRE> |
|
408 |
<DL> |
|
409 |
<DD>Get the content of the element</DL> |
|
410 |
<!-- ========= END OF CLASS DATA ========= --> |
|
411 |
<HR> |
|
412 |
|
|
413 |
<!-- ========== START OF NAVBAR ========== --> |
|
414 |
<A NAME="navbar_bottom"><!-- --></A> |
|
415 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
|
416 |
<TR> |
|
417 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
|
418 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
|
419 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
|
420 |
<TR ALIGN="center" VALIGN="top"> |
|
421 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
|
422 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
|
423 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
|
424 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> |
|
425 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> |
|
426 |
</TR> |
|
427 |
</TABLE> |
|
428 |
</TD> |
|
429 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
|
430 |
</EM> |
|
431 |
</TD> |
|
432 |
</TR> |
|
433 |
|
|
434 |
<TR> |
|
435 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
436 |
PREV CLASS |
|
437 |
<A HREF="DBReader.html"><B>NEXT CLASS</B></A></FONT></TD> |
|
438 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
|
439 |
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> |
|
440 |
<A HREF="BasicElement.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD> |
|
441 |
</TR> |
|
442 |
<TR> |
|
443 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
444 |
SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
|
445 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
|
446 |
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
|
447 |
</TR> |
|
448 |
</TABLE> |
|
449 |
<!-- =========== END OF NAVBAR =========== --> |
|
450 |
|
|
451 |
<HR> |
|
452 |
|
|
453 |
</BODY> |
|
454 |
</HTML> |
|
455 | 0 |
docs/DBSAXElement.html | ||
---|---|---|
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 13:49:15 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> |
|
262 | 0 |
docs/DBReader.html | ||
---|---|---|
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 13:49:15 AKDT 2000 --> |
|
6 |
<TITLE> |
|
7 |
: Class DBReader |
|
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="BasicElement.html"><B>PREV CLASS</B></A> |
|
37 |
<A HREF="DBSAXElement.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="DBReader.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 DBReader</H2> |
|
55 |
<PRE> |
|
56 |
java.lang.Object |
|
57 |
| |
|
58 |
+--<B>DBReader</B> |
|
59 |
</PRE> |
|
60 |
<HR> |
|
61 |
<DL> |
|
62 |
<DT>public class <B>DBReader</B><DT>extends java.lang.Object</DL> |
|
63 |
|
|
64 |
<P> |
|
65 |
A Class that creates an XML text document |
|
66 |
from a query to a relational DB containing a DOM representation |
|
67 |
<P> |
|
68 |
<HR> |
|
69 |
|
|
70 |
<P> |
|
71 |
<!-- ======== INNER CLASS SUMMARY ======== --> |
|
72 |
|
|
73 |
|
|
74 |
<!-- =========== FIELD SUMMARY =========== --> |
|
75 |
|
|
76 |
|
|
77 |
<!-- ======== CONSTRUCTOR SUMMARY ======== --> |
|
78 |
|
|
79 |
<A NAME="constructor_summary"><!-- --></A> |
|
80 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
81 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
82 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
83 |
<B>Constructor Summary</B></FONT></TD> |
|
84 |
</TR> |
|
85 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
86 |
<TD><CODE><B><A HREF="DBReader.html#DBReader(java.lang.String, java.lang.String, java.lang.String)">DBReader</A></B>(java.lang.String user, |
|
87 |
java.lang.String password, |
|
88 |
java.lang.String dbstring)</CODE> |
|
89 |
|
|
90 |
<BR> |
|
91 |
construct a DBReader instance.</TD> |
|
92 |
</TR> |
|
93 |
</TABLE> |
|
94 |
|
|
95 |
<!-- ========== METHOD SUMMARY =========== --> |
|
96 |
|
|
97 |
<A NAME="method_summary"><!-- --></A> |
|
98 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
99 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
100 |
<TD COLSPAN=2><FONT SIZE="+2"> |
|
101 |
<B>Method Summary</B></FONT></TD> |
|
102 |
</TR> |
|
103 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
104 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
105 |
<CODE>static void</CODE></FONT></TD> |
|
106 |
<TD><CODE><B><A HREF="DBReader.html#main(java.lang.String[])">main</A></B>(java.lang.String[] args)</CODE> |
|
107 |
|
|
108 |
<BR> |
|
109 |
main routine used for testing.</TD> |
|
110 |
</TR> |
|
111 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
112 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
|
113 |
<CODE> java.lang.String</CODE></FONT></TD> |
|
114 |
<TD><CODE><B><A HREF="DBReader.html#readXMLDocument(long)">readXMLDocument</A></B>(long nodeid)</CODE> |
|
115 |
|
|
116 |
<BR> |
|
117 |
Create an XML document from the database starting with the element |
|
118 |
having element_id nodeid</TD> |
|
119 |
</TR> |
|
120 |
</TABLE> |
|
121 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
|
122 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
123 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
|
124 |
<TD><B>Methods inherited from class java.lang.Object</B></TD> |
|
125 |
</TR> |
|
126 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
|
127 |
<TD><CODE>clone, |
|
128 |
equals, |
|
129 |
finalize, |
|
130 |
getClass, |
|
131 |
hashCode, |
|
132 |
notify, |
|
133 |
notifyAll, |
|
134 |
toString, |
|
135 |
wait, |
|
136 |
wait, |
|
137 |
wait</CODE></TD> |
|
138 |
</TR> |
|
139 |
</TABLE> |
|
140 |
|
|
141 |
<P> |
|
142 |
|
|
143 |
<!-- ============ FIELD DETAIL =========== --> |
|
144 |
|
|
145 |
|
|
146 |
<!-- ========= CONSTRUCTOR DETAIL ======== --> |
|
147 |
|
|
148 |
<A NAME="constructor_detail"><!-- --></A> |
|
149 |
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
|
150 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
|
151 |
<TD COLSPAN=1><FONT SIZE="+2"> |
|
152 |
<B>Constructor Detail</B></FONT></TD> |
|
153 |
</TR> |
|
154 |
</TABLE> |
|
155 |
|
|
156 |
<A NAME="DBReader(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
|
157 |
DBReader</H3> |
|
158 |
<PRE> |
|
159 |
public <B>DBReader</B>(java.lang.String user, |
|
160 |
java.lang.String password, |
|
161 |
java.lang.String dbstring) |
|
162 |
throws java.io.IOException, |
|
163 |
java.sql.SQLException, |
|
164 |
java.lang.ClassNotFoundException</PRE> |
|
165 |
<DL> |
|
166 |
<DD>construct a DBReader instance. |
|
167 |
|
|
168 |
Generally, one calls readXMLDocument() after constructing the instance<DD><DL> |
|
169 |
<DT><B>Parameters:</B><DD><CODE>user</CODE> - the username to use for the database connection<DD><CODE>password</CODE> - the password to use for the database connection<DD><CODE>dbstring</CODE> - the connection info to use for the database connection</DL> |
|
170 |
</DD> |
|
171 |
</DL> |
Also available in: Unified diff
updated documentation