Package javax.jcr.query
Interface QueryResult
- 
- All Known Subinterfaces:
 JackrabbitQueryResult
public interface QueryResultAQueryResultobject. Returned byQuery.execute(). 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String[]getColumnNames()Returns an array of all the column names in the table view of this result set.NodeIteratorgetNodes()Returns an iterator over all nodes that match the query.RowIteratorgetRows()Returns an iterator over theRows of the result table.java.lang.String[]getSelectorNames()Returns an array of all the selector names that were used in the query that created this result. 
 - 
 
- 
- 
Method Detail
- 
getColumnNames
java.lang.String[] getColumnNames() throws RepositoryExceptionReturns an array of all the column names in the table view of this result set.- Returns:
 - a 
Stringarray holding the column names. - Throws:
 RepositoryException- if an error occurs.
 
- 
getRows
RowIterator getRows() throws RepositoryException
Returns an iterator over theRows of the result table. The rows are returned according to the ordering specified in the query.- Returns:
 - a 
RowIterator - Throws:
 RepositoryException- if this call is the second time eithergetRowsor getNodes has been called on the sameQueryResultobject or if another error occurs.
 
- 
getNodes
NodeIterator getNodes() throws RepositoryException
Returns an iterator over all nodes that match the query. The nodes are returned according to the ordering specified in the query.- Returns:
 - a 
NodeIterator - Throws:
 RepositoryException- if the query contains more than one selector, if this call is the second time eithergetRowsor getNodes has been called on the sameQueryResultobject or if another error occurs.
 
- 
getSelectorNames
java.lang.String[] getSelectorNames() throws RepositoryExceptionReturns an array of all the selector names that were used in the query that created this result. If the query did not have a selector name then an empty array is returned.- Returns:
 - a 
Stringarray holding the selector names. - Throws:
 RepositoryException- if an error occurs.
 
 - 
 
 -