@ProviderType
public final class MockQueryResult
extends java.lang.Object
implements javax.jcr.query.QueryResult
QueryResult.
Allows to manually set the expected result, optional with column names
(which are interpreted as property names of the nodes of the result list).| Constructor and Description |
|---|
MockQueryResult(java.util.List<javax.jcr.Node> nodes) |
MockQueryResult(java.util.List<javax.jcr.Node> nodes,
java.util.List<java.lang.String> columnNames) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getColumnNames() |
javax.jcr.NodeIterator |
getNodes() |
javax.jcr.query.RowIterator |
getRows() |
java.lang.String[] |
getSelectorNames() |
public MockQueryResult(java.util.List<javax.jcr.Node> nodes)
public MockQueryResult(java.util.List<javax.jcr.Node> nodes,
java.util.List<java.lang.String> columnNames)
public java.lang.String[] getColumnNames()
throws javax.jcr.RepositoryException
getColumnNames in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionpublic javax.jcr.query.RowIterator getRows()
throws javax.jcr.RepositoryException
getRows in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionpublic javax.jcr.NodeIterator getNodes()
throws javax.jcr.RepositoryException
getNodes in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionpublic java.lang.String[] getSelectorNames()
throws javax.jcr.RepositoryException
getSelectorNames in interface javax.jcr.query.QueryResultjavax.jcr.RepositoryExceptionCopyright © 2014–2021 wcm.io. All rights reserved.