org.jrdf.query
Class DefaultQueryExecutor

java.lang.Object
  extended byorg.jrdf.query.DefaultQueryExecutor
All Implemented Interfaces:
org.jrdf.query.JrdfQueryExecutor

public final class DefaultQueryExecutor
extends Object
implements org.jrdf.query.JrdfQueryExecutor

Default implementation of a JrdfQueryExecutor.

Version:
$Revision: 1.1 $
Author:
Tom Adams

Constructor Summary
DefaultQueryExecutor(Graph graph, URI securityDomain)
          Creates executor to execute queries.
 
Method Summary
 Answer executeQuery(Query query)
          Executes a query against a graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultQueryExecutor

public DefaultQueryExecutor(Graph graph,
                            URI securityDomain)
Creates executor to execute queries.

Parameters:
graph - The graph to communicate with.
securityDomain - The security domain of the graph.
Method Detail

executeQuery

public Answer executeQuery(Query query)
                    throws JrdfConnectionException
Executes a query against a graph.

Specified by:
executeQuery in interface org.jrdf.query.JrdfQueryExecutor
Parameters:
query - The query to execute.
Returns:
The answer to the query, will never be null.
Throws:
JrdfConnectionException - If an error occurs while executing the query.