org.enableit.db
Class XMLProxy

java.lang.Object
  |
  +--org.enableit.db.XMLProxy

public class XMLProxy
extends java.lang.Object

Simple utilities for constructing XML.


Field Summary
static java.lang.String ABOUT
          CVS info about this class and its current version
static java.lang.String EL_COL
          Column element's name.
static java.lang.String EL_COL_NAME
          Name of attribute holding column's name.
static java.lang.String EL_COL_TYPE
          Name of attribute holding column's value.
static java.lang.String EL_COL_VALUE
          Name of attribute holding column's value.
static java.lang.String EL_ROW
          Row element name.
static java.lang.String EL_ROWSET
          Row set element name.
 
Method Summary
static org.w3c.dom.Document getDocument(java.util.List list)
           
static org.w3c.dom.Document getDocument(java.sql.ResultSet rs)
          Convert a SQL result set into an XML representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EL_ROWSET

public static final java.lang.String EL_ROWSET
Row set element name.

See Also:
Constant Field Values

EL_ROW

public static final java.lang.String EL_ROW
Row element name.

See Also:
Constant Field Values

EL_COL

public static final java.lang.String EL_COL
Column element's name.

See Also:
Constant Field Values

EL_COL_NAME

public static final java.lang.String EL_COL_NAME
Name of attribute holding column's name.

See Also:
Constant Field Values

EL_COL_VALUE

public static final java.lang.String EL_COL_VALUE
Name of attribute holding column's value.

See Also:
Constant Field Values

EL_COL_TYPE

public static final java.lang.String EL_COL_TYPE
Name of attribute holding column's value.

See Also:
Constant Field Values

ABOUT

public static final java.lang.String ABOUT
CVS info about this class and its current version

See Also:
Constant Field Values
Method Detail

getDocument

public static org.w3c.dom.Document getDocument(java.util.List list)
                                        throws DBException
Returns:
a Document object built from the List data
DBException

getDocument

public static org.w3c.dom.Document getDocument(java.sql.ResultSet rs)
                                        throws DBException
Convert a SQL result set into an XML representation.

Parameters:
rs - The java.sql.ResultSet to convert.
DBException


Copyright © 1999-2004 enableIT.org. All Rights Reserved.