dbxml.xqlint
Class JDBCXQLProcessor

java.lang.Object
  |
  +--dbxml.xqlint.JDBCXQLProcessor

public class JDBCXQLProcessor
extends java.lang.Object

A XQL shell for demonstrating integration of JDBCDOMParser with XQL processor. It uses the XQL parser from GMD-IPSI.

Author:
Ramnivas Laddad

Constructor Summary
JDBCXQLProcessor()
           
 
Method Summary
static void main(java.lang.String[] argv)
          The main method that creates a DOM document for information in its argument and starts a XQL shell with it.
static void processQueries(org.w3c.dom.Document document)
          Create a XQL shell for given DOM document object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCXQLProcessor

public JDBCXQLProcessor()
Method Detail

processQueries

public static void processQueries(org.w3c.dom.Document document)
Create a XQL shell for given DOM document object. Creats shell that prompt user for a query and then prints the result of that query. The shell exits when user types "quit". This method works with any DOM document -- not just that created by the JDBCDOMParser
Parameters:
document - a DOM document object

main

public static void main(java.lang.String[] argv)
The main method that creates a DOM document for information in its argument and starts a XQL shell with it.
Parameters:
argv - argument to the program. The valid argument is name of property file describing the JDBC input source.