Class bdd.search.query.DBQuery
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class bdd.search.query.DBQuery

java.lang.Object
   |
   +----bdd.search.query.DBQuery

public class DBQuery
extends Object
Written by Tim Macinta 1997
Distributed under the GNU Public License (a copy of which is enclosed with the source).

This class searches the database for the given query.

Constructor Index

 o DBQuery(String, EnginePrefs)

Method Index

 o dumpResults(OutputStream)
 o main(String[])
This is the method that is called when this class is invoked from the command line.

Constructors

 o DBQuery
  public DBQuery(String query,
                 EnginePrefs prefs)

Methods

 o dumpResults
  public void dumpResults(OutputStream stream) throws IOException
 o main
  public static void main(String arg[])
This is the method that is called when this class is invoked from the command line. If this method is called, the first argument (arg[0]) is used as a new query and the results are piped to standard output. This could be used as a means for providing a cgi interface to the search database, although it isn't as efficient as running the custom web server that was built for this since running this via cgi requires starting a new copy of the Java Virtual Machine each time it is run.

All Packages  Class Hierarchy  This Package  Previous  Next  Index