umich.cac.queryengine
Interface QueryEngine

All Known Implementing Classes:
XIndiceQueryEngine

public interface QueryEngine

A engine to query XML databases.

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/doc/javadoc/umich/cac/queryengine/QueryEngine.html,v 1.3 2003/12/18 17:16:08 rodmach Exp $
Author:
rmach@umich.edu

Method Summary
 boolean connect()
          Connect to the database.
 void dispose()
          Close any resources (like database connections) that were acquired)
 java.util.Vector query(java.lang.String xpath)
          Perform an XPATH query using XML:DB against the current collection and return a vector of Node results from the query.
 

Method Detail

connect

public boolean connect()
Connect to the database.

Returns:
true if connected, false otherwise

dispose

public void dispose()
Close any resources (like database connections) that were acquired)


query

public java.util.Vector query(java.lang.String xpath)
Perform an XPATH query using XML:DB against the current collection and return a vector of Node results from the query.

Parameters:
xpath - The XPATH query to perform
Returns:
List of org.w3c.Node results from the XPATH query, or empty Vector if no results