edu.ucsb.adl.bucket99
Interface QueryTranslator

All Known Implementing Classes:
PythonQueryTranslator

public interface QueryTranslator

The interface between the Bucket99 query driver and the query translator employed by the driver. The Bucket99 query driver creates the translator by dynamically loading the translator class and calling the following class method:

public static QueryTranslator createTranslator (
    ExtendedProperties propertyList)
Translator startup parameters can be obtained from propertyList. It is recommended that the names of translator startup parameters be prefixed with "translator.".

Version:
$Header: /export/home/gjanee/bucket99/edu/ucsb/adl/bucket99/RCS/QueryTranslator.java,v 1.2 2004/09/23 17:10:21 gjanee Exp $

$Log: QueryTranslator.java,v $ Revision 1.2 2004/09/23 17:10:21 gjanee
Minor documentation change.

Revision 1.1 2000/10/12 17:18:09 gjanee
Initial revision

Author:
Greg Janée
Alexandria Digital Library

Method Summary
 void destroy()
          Frees any resources held by the translator.
 java.lang.String translate(edu.ucsb.adl.middleware.Query query)
          Translates a query to SQL.
 

Method Detail

translate

public java.lang.String translate(edu.ucsb.adl.middleware.Query query)
                           throws MiddlewareException
Translates a query to SQL. This method need not be multithread-safe.

Parameters:
query - The query.
Returns:
An SQL query.
Throws:
UnsupportedException - If the query is not supported.
InternalErrorException - If any other error occurs.
MiddlewareException

destroy

public void destroy()
Frees any resources held by the translator.