78,80c78,79
< ResultSet rs;
< ResultSetMetaData rsmd;
< SQLException exception = null;
---
> /** The ResultSet that becomes a Document
*/
> private ResultSet rs;
82,83c81,82
< Map names = new HashMap(); // Maps original names to display names
< Map attribs = new HashMap(); // Maps original names to attrib or not
---
> /** The meta data from the ResultSet */
> private ResultSetMetaData rsmd;
85c84,100
< Namespace ns = Namespace.NO_NAMESPACE; // default to none
---
> /** Allows for throwing an exception whenever needed if caught early on */
> private SQLException exception;
>
> /** Map of original column names to display names */
> private Map names = new HashMap();
>
> /**
> * Maps column data to be located either as an Attribute
of
> * the row (if in the Map) or a child Element
of the row
> * (if not in the Map)
> */
> private Map attribs = new HashMap();
>
> /** The Namespace
to use for each Element
*/
> private Namespace ns = Namespace.NO_NAMESPACE;
>
> /** The maximum rows to return from the result set */
87,88d101
< String rootName = "result";
< String rowName = "entry";
89a103,104
> /** Name for the root Element
of the Document
*/
> private String rootName = "result";
90a106,117
> /** Name for the each immediate child Element
of the root */
> private String rowName = "entry";
>
>
> /**
> *
> * This sets up a java.sql.ResultSet
to be built
> * as a Document
.
> *
java.sql.ResultSet
to build
> */
101a129,139
> /**
> *
> * This builds a Document
from the
> * java.sql.ResultSet
.
> *
Document
- resultant Document object.
> * @throws JDOMException
when there is a problem
> * with the build.
> *
> */
180a219,227
> /**
> *
> * Set the name to use as the root element in
> * the Document
> *
String
the new name.
> *
> */
184a232,240
> /**
> *
> * Set the name to use as the row element in
> * the Document
> *
String
the new name.
> *
> */
188a245,253
> /**
> *
> * Set the Namespace
to use for
> * each Element
in the Document
.
> *
String
the namespace to use.
> *
> */
192a258,266
> /**
> *
> * Set the maximum number of rows to add to your
> * Document
.
> *
int
> *
> */
196a271,280
> /**
> *
> * Set a column as an Attribute
of a row using the
> * original column name. The attribute will appear as the original
> * column name.
> *
String
the original column name
> *
> */
200a285,294
> /**
> *
> * Set a column as an Attribute
of a row using the
> * column name. The attribute will appear as the new name provided.
> *
String
original column name
> * @param attribName String
new name to use for the attribute
> *
> */
205a300,309
> /**
> *
> * Set a column as an Attribute
of a row using the
> * column number. The attribute will appear as the original column
> * name.
> *
int
> *
> */
215a320,329
> /**
> *
> * Set a column as an Attribute
of a row using the
> * column number. The attribute will appear as new name provided.
> *
int
> * @param attribName String
new name to use for the attribute
> *
> */
226a341,350
> /**
> *
> * Set a column as an Element
of a row using the
> * column name. The element name will appear as the new name provided.
> *
String
original column name
> * @param elemName String
new name to use for the element
> *
> */
232a357,366
> /**
> *
> * Set a column as an Element
of a row using the
> * column number. The element name will appear as new name provided.
> *
int
> * @param elemName String
new name to use for the element
> *
> */