Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.relations.api.impl
Class QueryResultImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.relations.api.impl.QueryResultImpl
All Implemented Interfaces:
Serializable, QueryResult

public class QueryResultImpl
extends Object
implements QueryResult

Query results.

Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
QueryResultImpl(Integer count, List<String> variableNames, List<Map<String,Node>> results)
          Constructor for query result.
 
Method Summary
 Integer getCount()
           
 List<Map<String,Node>> getResults()
           
 List<String> getVariableNames()
           
 void setCount(Integer count)
           
 void setResults(List<Map<String,Node>> results)
           
 void setVariableNames(List<String> variableNames)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultImpl

public QueryResultImpl(Integer count,
                       List<String> variableNames,
                       List<Map<String,Node>> results)
Constructor for query result.

Parameters:
count - integer number of results
variableNames - list of variable names as requested in query
results - list of variable names/nodes found mapping
Method Detail

getCount

public Integer getCount()
Specified by:
getCount in interface QueryResult

setCount

public void setCount(Integer count)
Specified by:
setCount in interface QueryResult

getResults

public List<Map<String,Node>> getResults()
Specified by:
getResults in interface QueryResult

setResults

public void setResults(List<Map<String,Node>> results)
Specified by:
setResults in interface QueryResult

getVariableNames

public List<String> getVariableNames()
Specified by:
getVariableNames in interface QueryResult

setVariableNames

public void setVariableNames(List<String> variableNames)
Specified by:
setVariableNames in interface QueryResult

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.