org.jrdf.query
Class DefaultQueryExecutor
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.