org.openanzo.glitter.query
Class QueryResults

java.lang.Object
  extended by org.openanzo.glitter.query.QueryResults

public class QueryResults
extends java.lang.Object

QueryResults bundles together the result object (as given by QueryResultForm.serializeResults(SolutionSet) with the QueryController that represents the parsed and prepared query.

Author:
lee

Constructor Summary
QueryResults(java.lang.Object results, QueryController controller)
          Constructor.
 
Method Summary
 boolean getAskResults()
          Get the query results cast to a boolean.
 java.util.Collection<org.openrdf.model.Statement> getConstructResults()
          Get the query results cast to a collection of triples (a graph).
 java.util.Collection<org.openrdf.model.Statement> getDescribeResults()
          Get the query results cast to a collection of triples (a graph).
 QueryController getQueryController()
          Get the parsed and prepared query.
 java.lang.Object getResults()
          Get the raw results object
 SolutionSet getSelectResults()
          Get the query results cast to a SolutionSet.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResults

public QueryResults(java.lang.Object results,
                    QueryController controller)
Constructor.

Parameters:
results -
controller -
Method Detail

getSelectResults

public SolutionSet getSelectResults()
Get the query results cast to a SolutionSet.

Returns:
The query results cast to a SolutionSet.

getAskResults

public boolean getAskResults()
Get the query results cast to a boolean.

Returns:
The query results cast to a boolean.

getConstructResults

public java.util.Collection<org.openrdf.model.Statement> getConstructResults()
Get the query results cast to a collection of triples (a graph).

Returns:
The query results cast to a collection of triples (a graph).

getDescribeResults

public java.util.Collection<org.openrdf.model.Statement> getDescribeResults()
Get the query results cast to a collection of triples (a graph).

Returns:
The query results cast to a collection of triples (a graph).

getResults

public java.lang.Object getResults()
Get the raw results object

Returns:
The raw results object.

getQueryController

public QueryController getQueryController()
Get the parsed and prepared query.

Returns:
The parsed and prepared query.


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.