public class SimpleQueryResult extends Object implements javax.jcr.query.QueryResult
| Modifier | Constructor and Description |
|---|---|
protected |
SimpleQueryResult(String[] columnNames,
String[] selectorNames,
javax.jcr.query.RowIterator rowIterator)
Creates a query result with the given column and selector names and
row iterator.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getColumnNames()
Returns the column names of this query.
|
javax.jcr.NodeIterator |
getNodes()
Returns the nodes that match this query.
|
javax.jcr.query.RowIterator |
getRows()
Returns the query result rows.
|
String[] |
getSelectorNames()
Returns the selector names of this query.
|
protected SimpleQueryResult(String[] columnNames, String[] selectorNames, javax.jcr.query.RowIterator rowIterator)
columnNames - column namesselectorNames - selector namesrowIterator - iterator over matching rowspublic String[] getColumnNames()
getColumnNames in interface javax.jcr.query.QueryResultpublic String[] getSelectorNames()
getSelectorNames in interface javax.jcr.query.QueryResultpublic javax.jcr.query.RowIterator getRows()
throws javax.jcr.RepositoryException
getRows in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryException - if the query results have already
been iterated throughpublic javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryException - if this query has more than one selector,
or if the query results have already been
iterated throughCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.