* @package phpcr
* @subpackage query
*/
interface QueryResult
{
/**
* Returns an array of all the property names (column names) in this result set.
*
* @return array of strings
* @throws RepositoryException if an error occurs.
*/
public function getColumnNames();
/**
* Returns an iterator over the Row
s of the query result table.
* If an ORDER BY
clause was specified in the query, then the
* order of the returned properties in the iterator will reflect the order
* specified in that clause. If no items match, an empty iterator is returned.
*
* @return a RowIterator
* @throws RepositoryException if an error occurs.
*/
public function getRows();
/**
* Returns an iterator over all nodes that match the query. If an ORDER BY
* clause was specified in the query, then the order of the returned nodes in the iterator
* will reflect the order specified in that clause. If no nodes match, an empty iterator
* is returned.
*
* @return a NodeIterator
* @throws RepositoryException if an error occurs.
*/
public function getNodes();
}
?>