Class TransferResultSet

java.lang.Object
   |
   +----TransferResultSet

public class TransferResultSet
extends Object
This application accepts a table name or a SELECT statement, a map document name, and an XML document name. It transfers data from the data or SELECT statement to the XML document according to the map.

The command line syntax for this application is:

    java TransferResultSet {-t <table-name> | -s <SELECT-statement>} <map-file> <xml-file>
 

If a SELECT statement is used, it must be enclosed in quotes.

For this application to work, there must be an ODBC data source named "xmldbms" and the tables used to store data must have already been created in the data source. This application uses the Sun JDBC-ODBC Bridge, but includes commented-out code for using the Easysoft JDBC-ODBC Bridge. If you are using a different JDBC driver, you will need to modify the code to use your driver.

This application is also hard-coded to use the Oracle version 2 XML parser and DOM implementation. However, it also includes commented-out code to use the Xerces and Sun XML parsers and DOM implementation. To modify TransferResultSet for your XML parser and DOM implementation, comment/uncomment the appropriate import statements, code in and toXML(), versions of getSAXParser() and writeDocument(). If you are using a parser or DOM implementation other than Oracle version 2, Xerces, or Sun, you will need to modify the code accordingly.


Constructor Index

 o TransferResultSet()

Method Index

 o main(String[])

Constructors

 o TransferResultSet
 public TransferResultSet()

Methods

 o main
 public static void main(String argv[])