org.modeshape.graph.query
Interface Queryable

All Known Implementing Classes:
QueryEngine

public interface Queryable

An interface defining the ability to submit a query and obtain results.


Method Summary
 QueryResults execute(QueryContext context, QueryCommand query)
          Execute the supplied query by planning, optimizing, and then processing it.
 

Method Detail

execute

QueryResults execute(QueryContext context,
                     QueryCommand query)
Execute the supplied query by planning, optimizing, and then processing it.

Parameters:
context - the context in which the query should be executed
query - the query that is to be executed
Returns:
the query results; never null
Throws:
IllegalArgumentException - if the context or query references are null


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.