Class DBSimpleQuery

java.lang.Object
  |
  +--DBSimpleQuery

public class DBSimpleQuery
extends java.lang.Object

A Class that searches a relational DB for elements and attributes that have free text matches to the query string. It returns a result set consisting of the root nodeid for each document that satisfies the query


Constructor Summary
DBSimpleQuery(java.lang.String user, java.lang.String password, java.lang.String dbstring)
          construct an instance of the DBSimpleQuery class Generally, one would call the findRootNodes() routine after creating an instance to specify the query to search for
 
Method Summary
 java.util.Hashtable findRootNodes(java.lang.String query)
          routine to search the elements and attributes looking to match query
static void main(java.lang.String[] args)
          the main routine used to test the DBSimpleQuery utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBSimpleQuery

public DBSimpleQuery(java.lang.String user,
                     java.lang.String password,
                     java.lang.String dbstring)
              throws java.io.IOException,
                     java.sql.SQLException,
                     java.lang.ClassNotFoundException
construct an instance of the DBSimpleQuery class Generally, one would call the findRootNodes() routine after creating an instance to specify the query to search for
Parameters:
user - the username to use for the database connection
password - the password to use for the database connection
dbstring - the connection info to use for the database connection
Method Detail

main

public static void main(java.lang.String[] args)
the main routine used to test the DBSimpleQuery utility. Usage: java DBSimpleQuery [dbstring]
Parameters:
query - the text to search for in the element and attribute content
user - the username to use for the database connection
password - the password to use for the database connection
dbstring - the connection info to use for the database connection

findRootNodes

public java.util.Hashtable findRootNodes(java.lang.String query)
routine to search the elements and attributes looking to match query
Parameters:
query - the text to search for