yoavs 2003/11/10 08:47:30
Modified: dbutils/xdocs index.xml
Log:
Removed basic example and added link to examples.
Revision Changes Path
1.3 +1 -40 jakarta-commons/dbutils/xdocs/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/jakarta-commons/dbutils/xdocs/index.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- index.xml 5 Nov 2003 04:52:42 -0000 1.2
+++ index.xml 10 Nov 2003 16:47:30 -0000 1.3
@@ -86,47 +86,8 @@
<section name="Example Usage">
<p>
-The core classes/interfaces in DbUtils are
-<code><a
href="apidocs/org/apache/commons/dbutils/QueryRunner.html">QueryRunner</a></code>
-and
-<code><a
href="apidocs/org/apache/commons/dbutils/ResultSetHandler.html">ResultSetHandler</a></code>.
-The following example demonstrates how these classes are used together.
+Please see <a href="examples.html">Examples Page</a>.
</p>
-
-<pre>
-DataSource ds = // somehow get DataSource;
-
-// Step 1.
-QueryRunner run = new QueryRunner(ds);
-
-// Step 2.
-ResultSetHandler h = new BeanHandler(Person.class);
-
-// Step 3.
-Person p = (Person) run.query("SELECT * FROM Person WHERE name=?", "John Doe", h);
-
-</pre>
-
-<p>Explanation</p>
-<ol>
- <li>
- Configure QueryRunner with the DataSource.
- Note that QueryRunner has methods that take a
- java.sql.Connection so you are not required to
- use DataSources.
- </li>
- <li>
- Implement the ResultSetHandler interface or use
- one of the provided implementations. This one converts a
- ResultSet row into a bean.
- </li>
- <li>
- Execute the SQL statement with one replacement parameter and
- return the results in a new Person object (generated by the handler
- in step 2).
- </li>
-</ol>
-
</section>
<section name="Interaction With Other Packages">
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]