org.activemath.content.query
Class QueryEngine

java.lang.Object
  extended by org.activemath.content.query.QueryEngine

public class QueryEngine
extends Object


Constructor Summary
QueryEngine()
           
 
Method Summary
 List execQuery(String query)
          Constructs a Query object.
 void registerDB(String id, DBCaller db_call)
          Register a DBCaller for a specific DB with an ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryEngine

public QueryEngine()
Method Detail

execQuery

public List execQuery(String query)
               throws QueryEngineException
Constructs a Query object. query may be one of two types for queries: queries which expect a boolean value returned and queries which expect a list of item IDs returned.

Returns:
So in the case a boolean value is expected, an empty List represents false and anything else represents true
Throws:
QueryEngineException

registerDB

public void registerDB(String id,
                       DBCaller db_call)
Register a DBCaller for a specific DB with an ID.