org.openanzo.model.impl
Class ContainerQueryResult

java.lang.Object
  extended by org.openanzo.model.impl.query.QueryResult
      extended by org.openanzo.model.impl.ContainerQueryResult

public class ContainerQueryResult
extends QueryResult

QueryResult implementation that uses Glitter2BasicResultSetAdaptor to convert results

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
ContainerQueryResult(java.lang.Boolean result)
          Create new ContainerQueryResult based on result of ASK query
ContainerQueryResult(java.util.Collection<org.openrdf.model.Statement> result, boolean isConstruct)
          Create new ContainerQueryResult for either a CONSTRUCT or DESCRIBE query
ContainerQueryResult(QueryResults results)
          Create new ContainerQueryResult based on contents within QueryResults object
ContainerQueryResult(org.openrdf.query.TupleQueryResult result)
          Create new ContainerQueryResult based on contents within TupleQueryResult object
 
Method Summary
 java.lang.Object createSelectResults(QueryResults results)
           
 
Methods inherited from class org.openanzo.model.impl.query.QueryResult
getAskResult, getConstructResult, getDescribeResult, getQueryType, getSelectResult, isAskResult, isConstructResult, isDescribeResult, isSelectResult
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerQueryResult

public ContainerQueryResult(java.util.Collection<org.openrdf.model.Statement> result,
                            boolean isConstruct)
Create new ContainerQueryResult for either a CONSTRUCT or DESCRIBE query

Parameters:
result - Set of statements for result
isConstruct - true if CONSTRUCT, false for DESCRIBE

ContainerQueryResult

public ContainerQueryResult(QueryResults results)
Create new ContainerQueryResult based on contents within QueryResults object

Parameters:
results - containing data for these results

ContainerQueryResult

public ContainerQueryResult(org.openrdf.query.TupleQueryResult result)
Create new ContainerQueryResult based on contents within TupleQueryResult object

Parameters:
result - containing data for these results

ContainerQueryResult

public ContainerQueryResult(java.lang.Boolean result)
Create new ContainerQueryResult based on result of ASK query

Parameters:
result - containing boolean answer to ASK query
Method Detail

createSelectResults

public java.lang.Object createSelectResults(QueryResults results)


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