[jdom-interest] org.jdom.contrib.input.ResultSetBuilder
Van Dooren, Damian
VanDoorenD at icfg.com
Thu Mar 1 04:24:27 PST 2001
> I'd just ask that you update the Javadocs to be a bit more verbose on
> what the name and namespace params do. You can borrow from
> the existing
> Javadocs.
Here is the updated javadoc and code:
/**
* <p>
* This sets up a <code>java.sql.ResultSet</code> to be built
* as a <code>Document</code>.
* </p>
*
* @param rs <code>java.sql.ResultSet</code> to build from
* @param rootName <code>String</code> name for the root
<code>Element</code>
* of the <code>Document</code>
* @param rowName <code>String</code> name for the each immediate child
* <code>Element</code> of the root
* @param ns <code>Namespace</code> to use for each <code>Element</code>
*/
public ResultSetBuilder(ResultSet rs, String rootName, String rowName,
Namespace ns) {
this(rs, rootName, rowName);
setNamespace(ns);
}
/**
* <p>
* This sets up a <code>java.sql.ResultSet</code> to be built
* as a <code>Document</code>.
* </p>
*
* @param rs <code>java.sql.ResultSet</code> to build from
* @param rootName <code>String</code> name for the root
<code>Element</code>
* of the <code>Document</code>
* @param rowName <code>String</code> name for the each immediate child
* <code>Element</code> of the root
*/
public ResultSetBuilder(ResultSet rs, String rootName, String rowName) {
this(rs);
setRootName(rootName);
setRowName(rowName);
}
-----
Damian Van Dooren
Information Technology
The Investment Centre
(519) 672-4389 x718
More information about the jdom-interest
mailing list