1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|
2 | <!--NewPage-->
|
---|
3 | <HTML>
|
---|
4 | <HEAD>
|
---|
5 | <!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:20 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | JDBCTask (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.JDBCTask class">
|
---|
11 |
|
---|
12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
---|
13 |
|
---|
14 | <SCRIPT type="text/javascript">
|
---|
15 | function windowTitle()
|
---|
16 | {
|
---|
17 | parent.document.title="JDBCTask (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Javadoc.TagArgument.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Jikes.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="JDBCTask.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.taskdefs</FONT>
|
---|
85 | <BR>
|
---|
86 | Class JDBCTask</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
90 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
|
---|
91 | <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.JDBCTask</B>
|
---|
92 | </PRE>
|
---|
93 | <DL>
|
---|
94 | <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/apache/tools/ant/taskdefs/SQLExec.html" title="class in org.apache.tools.ant.taskdefs">SQLExec</A></DD>
|
---|
95 | </DL>
|
---|
96 | <HR>
|
---|
97 | <DL>
|
---|
98 | <DT>public abstract class <B>JDBCTask</B><DT>extends <A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></DL>
|
---|
99 |
|
---|
100 | <P>
|
---|
101 | Handles JDBC configuration needed by SQL type tasks.
|
---|
102 | <p>
|
---|
103 | The following example class prints the contents of the first column of each row in TableName.
|
---|
104 | </p>
|
---|
105 | <code><pre>
|
---|
106 | package examples;
|
---|
107 | import java.sql.Connection;
|
---|
108 | import java.sql.ResultSet;
|
---|
109 | import java.sql.SQLException;
|
---|
110 | import java.sql.Statement;
|
---|
111 |
|
---|
112 | import org.apache.tools.ant.BuildException;
|
---|
113 | import org.apache.tools.ant.taskdefs.JDBCTask;
|
---|
114 |
|
---|
115 | public class SQLExampleTask extends JDBCTask {
|
---|
116 |
|
---|
117 | private String tableName;
|
---|
118 |
|
---|
119 | public void execute() throws BuildException {
|
---|
120 | Connection conn = getConnection();
|
---|
121 | Statement stmt=null;
|
---|
122 | try {
|
---|
123 | if (tableName == null) {
|
---|
124 | throw new BuildException("TableName must be specified",location);
|
---|
125 | }
|
---|
126 | String sql = "SELECT * FROM "+tableName;
|
---|
127 | stmt= conn.createStatement();
|
---|
128 | ResultSet rs = stmt.executeQuery(sql);
|
---|
129 | while (rs.next()) {
|
---|
130 | log(rs.getObject(1).toString());
|
---|
131 | }
|
---|
132 | } catch (SQLException e) {
|
---|
133 |
|
---|
134 | } finally {
|
---|
135 | if (stmt != null) {
|
---|
136 | try {stmt.close();}catch (SQLException ingore) {}
|
---|
137 | }
|
---|
138 | if (conn != null) {
|
---|
139 | try {conn.close();}catch (SQLException ingore) {}
|
---|
140 | }
|
---|
141 | }
|
---|
142 | }
|
---|
143 | public void setTableName(String tableName) {
|
---|
144 | this.tableName = tableName;
|
---|
145 | }
|
---|
146 |
|
---|
147 | }
|
---|
148 |
|
---|
149 |
|
---|
150 | </pre></code>
|
---|
151 | <P>
|
---|
152 |
|
---|
153 | <P>
|
---|
154 | <DL>
|
---|
155 | <DT><B>Since:</B></DT>
|
---|
156 | <DD>Ant 1.5</DD>
|
---|
157 | </DL>
|
---|
158 | <HR>
|
---|
159 |
|
---|
160 | <P>
|
---|
161 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
162 |
|
---|
163 |
|
---|
164 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
165 |
|
---|
166 | <A NAME="field_summary"><!-- --></A>
|
---|
167 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
168 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
169 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
170 | <B>Field Summary</B></FONT></TD>
|
---|
171 | </TR>
|
---|
172 | </TABLE>
|
---|
173 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
174 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
175 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
176 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
177 | </TR>
|
---|
178 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
179 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#target">target</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
|
---|
180 | </TR>
|
---|
181 | </TABLE>
|
---|
182 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
183 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
184 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
185 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
186 | </TR>
|
---|
187 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
188 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
189 | </TR>
|
---|
190 | </TABLE>
|
---|
191 |
|
---|
192 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
193 |
|
---|
194 | <A NAME="constructor_summary"><!-- --></A>
|
---|
195 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
196 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
197 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
198 | <B>Constructor Summary</B></FONT></TD>
|
---|
199 | </TR>
|
---|
200 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
201 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#JDBCTask()">JDBCTask</A></B>()</CODE>
|
---|
202 |
|
---|
203 | <BR>
|
---|
204 | </TD>
|
---|
205 | </TR>
|
---|
206 | </TABLE>
|
---|
207 |
|
---|
208 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
209 |
|
---|
210 | <A NAME="method_summary"><!-- --></A>
|
---|
211 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
212 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
213 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
214 | <B>Method Summary</B></FONT></TD>
|
---|
215 | </TR>
|
---|
216 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
217 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
218 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
219 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#createClasspath()">createClasspath</A></B>()</CODE>
|
---|
220 |
|
---|
221 | <BR>
|
---|
222 | Add a path to the classpath for loading the driver.</TD>
|
---|
223 | </TR>
|
---|
224 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
225 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
226 | <CODE> <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
227 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getClasspath()">getClasspath</A></B>()</CODE>
|
---|
228 |
|
---|
229 | <BR>
|
---|
230 | Gets the classpath.</TD>
|
---|
231 | </TR>
|
---|
232 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
233 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
234 | <CODE>protected java.sql.Connection</CODE></FONT></TD>
|
---|
235 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getConnection()">getConnection</A></B>()</CODE>
|
---|
236 |
|
---|
237 | <BR>
|
---|
238 | Creates a new Connection as using the driver, url, userid and password
|
---|
239 | specified.</TD>
|
---|
240 | </TR>
|
---|
241 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
242 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
243 | <CODE>protected <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">AntClassLoader</A></CODE></FONT></TD>
|
---|
244 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getLoader()">getLoader</A></B>()</CODE>
|
---|
245 |
|
---|
246 | <BR>
|
---|
247 | </TD>
|
---|
248 | </TR>
|
---|
249 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
250 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
251 | <CODE>protected static java.util.Hashtable</CODE></FONT></TD>
|
---|
252 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getLoaderMap()">getLoaderMap</A></B>()</CODE>
|
---|
253 |
|
---|
254 | <BR>
|
---|
255 | </TD>
|
---|
256 | </TR>
|
---|
257 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
258 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
259 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
260 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getPassword()">getPassword</A></B>()</CODE>
|
---|
261 |
|
---|
262 | <BR>
|
---|
263 | Gets the password.</TD>
|
---|
264 | </TR>
|
---|
265 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
266 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
267 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
268 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getRdbms()">getRdbms</A></B>()</CODE>
|
---|
269 |
|
---|
270 | <BR>
|
---|
271 | Gets the rdbms.</TD>
|
---|
272 | </TR>
|
---|
273 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
274 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
275 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
276 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getUrl()">getUrl</A></B>()</CODE>
|
---|
277 |
|
---|
278 | <BR>
|
---|
279 | Gets the url.</TD>
|
---|
280 | </TR>
|
---|
281 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
283 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
284 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getUserId()">getUserId</A></B>()</CODE>
|
---|
285 |
|
---|
286 | <BR>
|
---|
287 | Gets the userId.</TD>
|
---|
288 | </TR>
|
---|
289 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
290 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
291 | <CODE> java.lang.String</CODE></FONT></TD>
|
---|
292 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#getVersion()">getVersion</A></B>()</CODE>
|
---|
293 |
|
---|
294 | <BR>
|
---|
295 | Gets the version.</TD>
|
---|
296 | </TR>
|
---|
297 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
298 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
299 | <CODE> boolean</CODE></FONT></TD>
|
---|
300 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#isAutocommit()">isAutocommit</A></B>()</CODE>
|
---|
301 |
|
---|
302 | <BR>
|
---|
303 | Gets the autocommit.</TD>
|
---|
304 | </TR>
|
---|
305 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
307 | <CODE> void</CODE></FONT></TD>
|
---|
308 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#isCaching(boolean)">isCaching</A></B>(boolean value)</CODE>
|
---|
309 |
|
---|
310 | <BR>
|
---|
311 | </TD>
|
---|
312 | </TR>
|
---|
313 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
315 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
316 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#isValidRdbms(java.sql.Connection)">isValidRdbms</A></B>(java.sql.Connection conn)</CODE>
|
---|
317 |
|
---|
318 | <BR>
|
---|
319 | Verify we are connected to the correct RDBMS</TD>
|
---|
320 | </TR>
|
---|
321 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
322 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
323 | <CODE> void</CODE></FONT></TD>
|
---|
324 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setAutocommit(boolean)">setAutocommit</A></B>(boolean autocommit)</CODE>
|
---|
325 |
|
---|
326 | <BR>
|
---|
327 | Auto commit flag for database connection;
|
---|
328 | optional, default false.</TD>
|
---|
329 | </TR>
|
---|
330 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
331 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
332 | <CODE> void</CODE></FONT></TD>
|
---|
333 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setCaching(boolean)">setCaching</A></B>(boolean enable)</CODE>
|
---|
334 |
|
---|
335 | <BR>
|
---|
336 | Caching loaders / driver.</TD>
|
---|
337 | </TR>
|
---|
338 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
339 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
340 | <CODE> void</CODE></FONT></TD>
|
---|
341 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setClasspath(org.apache.tools.ant.types.Path)">setClasspath</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</CODE>
|
---|
342 |
|
---|
343 | <BR>
|
---|
344 | Sets the classpath for loading the driver.</TD>
|
---|
345 | </TR>
|
---|
346 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
347 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
348 | <CODE> void</CODE></FONT></TD>
|
---|
349 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setClasspathRef(org.apache.tools.ant.types.Reference)">setClasspathRef</A></B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</CODE>
|
---|
350 |
|
---|
351 | <BR>
|
---|
352 | Set the classpath for loading the driver
|
---|
353 | using the classpath reference.</TD>
|
---|
354 | </TR>
|
---|
355 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
356 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
357 | <CODE> void</CODE></FONT></TD>
|
---|
358 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setDriver(java.lang.String)">setDriver</A></B>(java.lang.String driver)</CODE>
|
---|
359 |
|
---|
360 | <BR>
|
---|
361 | Class name of the JDBC driver; required.</TD>
|
---|
362 | </TR>
|
---|
363 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
364 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
365 | <CODE> void</CODE></FONT></TD>
|
---|
366 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setPassword(java.lang.String)">setPassword</A></B>(java.lang.String password)</CODE>
|
---|
367 |
|
---|
368 | <BR>
|
---|
369 | Sets the password; required.</TD>
|
---|
370 | </TR>
|
---|
371 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
372 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
373 | <CODE> void</CODE></FONT></TD>
|
---|
374 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setRdbms(java.lang.String)">setRdbms</A></B>(java.lang.String rdbms)</CODE>
|
---|
375 |
|
---|
376 | <BR>
|
---|
377 | Execute task only if the lower case product name
|
---|
378 | of the DB matches this</TD>
|
---|
379 | </TR>
|
---|
380 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
381 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
382 | <CODE> void</CODE></FONT></TD>
|
---|
383 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setUrl(java.lang.String)">setUrl</A></B>(java.lang.String url)</CODE>
|
---|
384 |
|
---|
385 | <BR>
|
---|
386 | Sets the database connection URL; required.</TD>
|
---|
387 | </TR>
|
---|
388 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
389 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
390 | <CODE> void</CODE></FONT></TD>
|
---|
391 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setUserid(java.lang.String)">setUserid</A></B>(java.lang.String userId)</CODE>
|
---|
392 |
|
---|
393 | <BR>
|
---|
394 | Set the user name for the connection; required.</TD>
|
---|
395 | </TR>
|
---|
396 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
397 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
398 | <CODE> void</CODE></FONT></TD>
|
---|
399 | <TD><CODE><B><A HREF="../../../../../org/apache/tools/ant/taskdefs/JDBCTask.html#setVersion(java.lang.String)">setVersion</A></B>(java.lang.String version)</CODE>
|
---|
400 |
|
---|
401 | <BR>
|
---|
402 | Sets the version string, execute task only if
|
---|
403 | rdbms version match; optional.</TD>
|
---|
404 | </TR>
|
---|
405 | </TABLE>
|
---|
406 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
407 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
408 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
409 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
410 | </TR>
|
---|
411 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
412 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/Task.html#execute()">execute</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#init()">init</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
|
---|
413 | </TR>
|
---|
414 | </TABLE>
|
---|
415 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
416 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
417 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
418 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
419 | </TR>
|
---|
420 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
421 | <TD><CODE><A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
422 | </TR>
|
---|
423 | </TABLE>
|
---|
424 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
425 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
426 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
427 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
428 | </TR>
|
---|
429 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
430 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
431 | </TR>
|
---|
432 | </TABLE>
|
---|
433 |
|
---|
434 | <P>
|
---|
435 |
|
---|
436 | <!-- ============ FIELD DETAIL =========== -->
|
---|
437 |
|
---|
438 |
|
---|
439 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
440 |
|
---|
441 | <A NAME="constructor_detail"><!-- --></A>
|
---|
442 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
443 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
444 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
445 | <B>Constructor Detail</B></FONT></TD>
|
---|
446 | </TR>
|
---|
447 | </TABLE>
|
---|
448 |
|
---|
449 | <A NAME="JDBCTask()"><!-- --></A><H3>
|
---|
450 | JDBCTask</H3>
|
---|
451 | <PRE>
|
---|
452 | public <B>JDBCTask</B>()</PRE>
|
---|
453 | <DL>
|
---|
454 | </DL>
|
---|
455 |
|
---|
456 | <!-- ============ METHOD DETAIL ========== -->
|
---|
457 |
|
---|
458 | <A NAME="method_detail"><!-- --></A>
|
---|
459 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
460 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
461 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
462 | <B>Method Detail</B></FONT></TD>
|
---|
463 | </TR>
|
---|
464 | </TABLE>
|
---|
465 |
|
---|
466 | <A NAME="setClasspath(org.apache.tools.ant.types.Path)"><!-- --></A><H3>
|
---|
467 | setClasspath</H3>
|
---|
468 | <PRE>
|
---|
469 | public void <B>setClasspath</B>(<A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</PRE>
|
---|
470 | <DL>
|
---|
471 | <DD>Sets the classpath for loading the driver.
|
---|
472 | <P>
|
---|
473 | <DD><DL>
|
---|
474 | <DT><B>Parameters:</B><DD><CODE>classpath</CODE> - The classpath to set</DL>
|
---|
475 | </DD>
|
---|
476 | </DL>
|
---|
477 | <HR>
|
---|
478 |
|
---|
479 | <A NAME="setCaching(boolean)"><!-- --></A><H3>
|
---|
480 | setCaching</H3>
|
---|
481 | <PRE>
|
---|
482 | public void <B>setCaching</B>(boolean enable)</PRE>
|
---|
483 | <DL>
|
---|
484 | <DD>Caching loaders / driver. This is to avoid
|
---|
485 | getting an OutOfMemoryError when calling this task
|
---|
486 | multiple times in a row; default: true
|
---|
487 | <P>
|
---|
488 | <DD><DL>
|
---|
489 | <DT><B>Parameters:</B><DD><CODE>enable</CODE> - </DL>
|
---|
490 | </DD>
|
---|
491 | </DL>
|
---|
492 | <HR>
|
---|
493 |
|
---|
494 | <A NAME="createClasspath()"><!-- --></A><H3>
|
---|
495 | createClasspath</H3>
|
---|
496 | <PRE>
|
---|
497 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createClasspath</B>()</PRE>
|
---|
498 | <DL>
|
---|
499 | <DD>Add a path to the classpath for loading the driver.
|
---|
500 | <P>
|
---|
501 | <DD><DL>
|
---|
502 | </DL>
|
---|
503 | </DD>
|
---|
504 | </DL>
|
---|
505 | <HR>
|
---|
506 |
|
---|
507 | <A NAME="setClasspathRef(org.apache.tools.ant.types.Reference)"><!-- --></A><H3>
|
---|
508 | setClasspathRef</H3>
|
---|
509 | <PRE>
|
---|
510 | public void <B>setClasspathRef</B>(<A HREF="../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</PRE>
|
---|
511 | <DL>
|
---|
512 | <DD>Set the classpath for loading the driver
|
---|
513 | using the classpath reference.
|
---|
514 | <P>
|
---|
515 | <DD><DL>
|
---|
516 | </DL>
|
---|
517 | </DD>
|
---|
518 | </DL>
|
---|
519 | <HR>
|
---|
520 |
|
---|
521 | <A NAME="setDriver(java.lang.String)"><!-- --></A><H3>
|
---|
522 | setDriver</H3>
|
---|
523 | <PRE>
|
---|
524 | public void <B>setDriver</B>(java.lang.String driver)</PRE>
|
---|
525 | <DL>
|
---|
526 | <DD>Class name of the JDBC driver; required.
|
---|
527 | <P>
|
---|
528 | <DD><DL>
|
---|
529 | <DT><B>Parameters:</B><DD><CODE>driver</CODE> - The driver to set</DL>
|
---|
530 | </DD>
|
---|
531 | </DL>
|
---|
532 | <HR>
|
---|
533 |
|
---|
534 | <A NAME="setUrl(java.lang.String)"><!-- --></A><H3>
|
---|
535 | setUrl</H3>
|
---|
536 | <PRE>
|
---|
537 | public void <B>setUrl</B>(java.lang.String url)</PRE>
|
---|
538 | <DL>
|
---|
539 | <DD>Sets the database connection URL; required.
|
---|
540 | <P>
|
---|
541 | <DD><DL>
|
---|
542 | <DT><B>Parameters:</B><DD><CODE>url</CODE> - The url to set</DL>
|
---|
543 | </DD>
|
---|
544 | </DL>
|
---|
545 | <HR>
|
---|
546 |
|
---|
547 | <A NAME="setPassword(java.lang.String)"><!-- --></A><H3>
|
---|
548 | setPassword</H3>
|
---|
549 | <PRE>
|
---|
550 | public void <B>setPassword</B>(java.lang.String password)</PRE>
|
---|
551 | <DL>
|
---|
552 | <DD>Sets the password; required.
|
---|
553 | <P>
|
---|
554 | <DD><DL>
|
---|
555 | <DT><B>Parameters:</B><DD><CODE>password</CODE> - The password to set</DL>
|
---|
556 | </DD>
|
---|
557 | </DL>
|
---|
558 | <HR>
|
---|
559 |
|
---|
560 | <A NAME="setAutocommit(boolean)"><!-- --></A><H3>
|
---|
561 | setAutocommit</H3>
|
---|
562 | <PRE>
|
---|
563 | public void <B>setAutocommit</B>(boolean autocommit)</PRE>
|
---|
564 | <DL>
|
---|
565 | <DD>Auto commit flag for database connection;
|
---|
566 | optional, default false.
|
---|
567 | <P>
|
---|
568 | <DD><DL>
|
---|
569 | <DT><B>Parameters:</B><DD><CODE>autocommit</CODE> - The autocommit to set</DL>
|
---|
570 | </DD>
|
---|
571 | </DL>
|
---|
572 | <HR>
|
---|
573 |
|
---|
574 | <A NAME="setRdbms(java.lang.String)"><!-- --></A><H3>
|
---|
575 | setRdbms</H3>
|
---|
576 | <PRE>
|
---|
577 | public void <B>setRdbms</B>(java.lang.String rdbms)</PRE>
|
---|
578 | <DL>
|
---|
579 | <DD>Execute task only if the lower case product name
|
---|
580 | of the DB matches this
|
---|
581 | <P>
|
---|
582 | <DD><DL>
|
---|
583 | <DT><B>Parameters:</B><DD><CODE>rdbms</CODE> - The rdbms to set</DL>
|
---|
584 | </DD>
|
---|
585 | </DL>
|
---|
586 | <HR>
|
---|
587 |
|
---|
588 | <A NAME="setVersion(java.lang.String)"><!-- --></A><H3>
|
---|
589 | setVersion</H3>
|
---|
590 | <PRE>
|
---|
591 | public void <B>setVersion</B>(java.lang.String version)</PRE>
|
---|
592 | <DL>
|
---|
593 | <DD>Sets the version string, execute task only if
|
---|
594 | rdbms version match; optional.
|
---|
595 | <P>
|
---|
596 | <DD><DL>
|
---|
597 | <DT><B>Parameters:</B><DD><CODE>version</CODE> - The version to set</DL>
|
---|
598 | </DD>
|
---|
599 | </DL>
|
---|
600 | <HR>
|
---|
601 |
|
---|
602 | <A NAME="isValidRdbms(java.sql.Connection)"><!-- --></A><H3>
|
---|
603 | isValidRdbms</H3>
|
---|
604 | <PRE>
|
---|
605 | protected boolean <B>isValidRdbms</B>(java.sql.Connection conn)</PRE>
|
---|
606 | <DL>
|
---|
607 | <DD>Verify we are connected to the correct RDBMS
|
---|
608 | <P>
|
---|
609 | <DD><DL>
|
---|
610 | </DL>
|
---|
611 | </DD>
|
---|
612 | </DL>
|
---|
613 | <HR>
|
---|
614 |
|
---|
615 | <A NAME="getLoaderMap()"><!-- --></A><H3>
|
---|
616 | getLoaderMap</H3>
|
---|
617 | <PRE>
|
---|
618 | protected static java.util.Hashtable <B>getLoaderMap</B>()</PRE>
|
---|
619 | <DL>
|
---|
620 | <DD><DL>
|
---|
621 | </DL>
|
---|
622 | </DD>
|
---|
623 | </DL>
|
---|
624 | <HR>
|
---|
625 |
|
---|
626 | <A NAME="getLoader()"><!-- --></A><H3>
|
---|
627 | getLoader</H3>
|
---|
628 | <PRE>
|
---|
629 | protected <A HREF="../../../../../org/apache/tools/ant/AntClassLoader.html" title="class in org.apache.tools.ant">AntClassLoader</A> <B>getLoader</B>()</PRE>
|
---|
630 | <DL>
|
---|
631 | <DD><DL>
|
---|
632 | </DL>
|
---|
633 | </DD>
|
---|
634 | </DL>
|
---|
635 | <HR>
|
---|
636 |
|
---|
637 | <A NAME="getConnection()"><!-- --></A><H3>
|
---|
638 | getConnection</H3>
|
---|
639 | <PRE>
|
---|
640 | protected java.sql.Connection <B>getConnection</B>()
|
---|
641 | throws <A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
642 | <DL>
|
---|
643 | <DD>Creates a new Connection as using the driver, url, userid and password
|
---|
644 | specified.
|
---|
645 |
|
---|
646 | The calling method is responsible for closing the connection.
|
---|
647 | <P>
|
---|
648 | <DD><DL>
|
---|
649 |
|
---|
650 | <DT><B>Returns:</B><DD>Connection the newly created connection.
|
---|
651 | <DT><B>Throws:</B>
|
---|
652 | <DD><CODE><A HREF="../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if the UserId/Password/Url is not set or there
|
---|
653 | is no suitable driver or the driver fails to load.</DL>
|
---|
654 | </DD>
|
---|
655 | </DL>
|
---|
656 | <HR>
|
---|
657 |
|
---|
658 | <A NAME="isCaching(boolean)"><!-- --></A><H3>
|
---|
659 | isCaching</H3>
|
---|
660 | <PRE>
|
---|
661 | public void <B>isCaching</B>(boolean value)</PRE>
|
---|
662 | <DL>
|
---|
663 | <DD><DL>
|
---|
664 | </DL>
|
---|
665 | </DD>
|
---|
666 | </DL>
|
---|
667 | <HR>
|
---|
668 |
|
---|
669 | <A NAME="getClasspath()"><!-- --></A><H3>
|
---|
670 | getClasspath</H3>
|
---|
671 | <PRE>
|
---|
672 | public <A HREF="../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>getClasspath</B>()</PRE>
|
---|
673 | <DL>
|
---|
674 | <DD>Gets the classpath.
|
---|
675 | <P>
|
---|
676 | <DD><DL>
|
---|
677 |
|
---|
678 | <DT><B>Returns:</B><DD>Returns a Path</DL>
|
---|
679 | </DD>
|
---|
680 | </DL>
|
---|
681 | <HR>
|
---|
682 |
|
---|
683 | <A NAME="isAutocommit()"><!-- --></A><H3>
|
---|
684 | isAutocommit</H3>
|
---|
685 | <PRE>
|
---|
686 | public boolean <B>isAutocommit</B>()</PRE>
|
---|
687 | <DL>
|
---|
688 | <DD>Gets the autocommit.
|
---|
689 | <P>
|
---|
690 | <DD><DL>
|
---|
691 |
|
---|
692 | <DT><B>Returns:</B><DD>Returns a boolean</DL>
|
---|
693 | </DD>
|
---|
694 | </DL>
|
---|
695 | <HR>
|
---|
696 |
|
---|
697 | <A NAME="getUrl()"><!-- --></A><H3>
|
---|
698 | getUrl</H3>
|
---|
699 | <PRE>
|
---|
700 | public java.lang.String <B>getUrl</B>()</PRE>
|
---|
701 | <DL>
|
---|
702 | <DD>Gets the url.
|
---|
703 | <P>
|
---|
704 | <DD><DL>
|
---|
705 |
|
---|
706 | <DT><B>Returns:</B><DD>Returns a String</DL>
|
---|
707 | </DD>
|
---|
708 | </DL>
|
---|
709 | <HR>
|
---|
710 |
|
---|
711 | <A NAME="getUserId()"><!-- --></A><H3>
|
---|
712 | getUserId</H3>
|
---|
713 | <PRE>
|
---|
714 | public java.lang.String <B>getUserId</B>()</PRE>
|
---|
715 | <DL>
|
---|
716 | <DD>Gets the userId.
|
---|
717 | <P>
|
---|
718 | <DD><DL>
|
---|
719 |
|
---|
720 | <DT><B>Returns:</B><DD>Returns a String</DL>
|
---|
721 | </DD>
|
---|
722 | </DL>
|
---|
723 | <HR>
|
---|
724 |
|
---|
725 | <A NAME="setUserid(java.lang.String)"><!-- --></A><H3>
|
---|
726 | setUserid</H3>
|
---|
727 | <PRE>
|
---|
728 | public void <B>setUserid</B>(java.lang.String userId)</PRE>
|
---|
729 | <DL>
|
---|
730 | <DD>Set the user name for the connection; required.
|
---|
731 | <P>
|
---|
732 | <DD><DL>
|
---|
733 | <DT><B>Parameters:</B><DD><CODE>userId</CODE> - The userId to set</DL>
|
---|
734 | </DD>
|
---|
735 | </DL>
|
---|
736 | <HR>
|
---|
737 |
|
---|
738 | <A NAME="getPassword()"><!-- --></A><H3>
|
---|
739 | getPassword</H3>
|
---|
740 | <PRE>
|
---|
741 | public java.lang.String <B>getPassword</B>()</PRE>
|
---|
742 | <DL>
|
---|
743 | <DD>Gets the password.
|
---|
744 | <P>
|
---|
745 | <DD><DL>
|
---|
746 |
|
---|
747 | <DT><B>Returns:</B><DD>Returns a String</DL>
|
---|
748 | </DD>
|
---|
749 | </DL>
|
---|
750 | <HR>
|
---|
751 |
|
---|
752 | <A NAME="getRdbms()"><!-- --></A><H3>
|
---|
753 | getRdbms</H3>
|
---|
754 | <PRE>
|
---|
755 | public java.lang.String <B>getRdbms</B>()</PRE>
|
---|
756 | <DL>
|
---|
757 | <DD>Gets the rdbms.
|
---|
758 | <P>
|
---|
759 | <DD><DL>
|
---|
760 |
|
---|
761 | <DT><B>Returns:</B><DD>Returns a String</DL>
|
---|
762 | </DD>
|
---|
763 | </DL>
|
---|
764 | <HR>
|
---|
765 |
|
---|
766 | <A NAME="getVersion()"><!-- --></A><H3>
|
---|
767 | getVersion</H3>
|
---|
768 | <PRE>
|
---|
769 | public java.lang.String <B>getVersion</B>()</PRE>
|
---|
770 | <DL>
|
---|
771 | <DD>Gets the version.
|
---|
772 | <P>
|
---|
773 | <DD><DL>
|
---|
774 |
|
---|
775 | <DT><B>Returns:</B><DD>Returns a String</DL>
|
---|
776 | </DD>
|
---|
777 | </DL>
|
---|
778 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
779 | <HR>
|
---|
780 |
|
---|
781 |
|
---|
782 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
783 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
784 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
785 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
786 | <TR>
|
---|
787 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
788 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
789 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
790 | <TR ALIGN="center" VALIGN="top">
|
---|
791 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
792 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
793 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
794 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
795 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
796 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
797 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
798 | </TR>
|
---|
799 | </TABLE>
|
---|
800 | </TD>
|
---|
801 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
802 | </EM>
|
---|
803 | </TD>
|
---|
804 | </TR>
|
---|
805 |
|
---|
806 | <TR>
|
---|
807 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
808 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Javadoc.TagArgument.html" title="class in org.apache.tools.ant.taskdefs"><B>PREV CLASS</B></A>
|
---|
809 | <A HREF="../../../../../org/apache/tools/ant/taskdefs/Jikes.html" title="class in org.apache.tools.ant.taskdefs"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
810 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
811 | <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
812 | <A HREF="JDBCTask.html" target="_top"><B>NO FRAMES</B></A>
|
---|
813 | <SCRIPT type="text/javascript">
|
---|
814 | <!--
|
---|
815 | if(window==top) {
|
---|
816 | document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
817 | }
|
---|
818 | //-->
|
---|
819 | </SCRIPT>
|
---|
820 | <NOSCRIPT>
|
---|
821 | <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
822 | </NOSCRIPT>
|
---|
823 |
|
---|
824 | </FONT></TD>
|
---|
825 | </TR>
|
---|
826 | <TR>
|
---|
827 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
828 | SUMMARY: NESTED | <A HREF="#fields_inherited_from_class_org.apache.tools.ant.Task">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
829 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
830 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
831 | </TR>
|
---|
832 | </TABLE>
|
---|
833 | <A NAME="skip-navbar_bottom"></A>
|
---|
834 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
835 |
|
---|
836 | <HR>
|
---|
837 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
838 | </BODY>
|
---|
839 | </HTML>
|
---|