public class EmptyCannedQueryResults<R> extends EmptyPagingResults<R> implements CannedQueryResults<R>
CannedQueryResults
, used when you know
you can short circuit a query when no results are found.Constructor and Description |
---|
EmptyCannedQueryResults(CannedQuery<R> query) |
Modifier and Type | Method and Description |
---|---|
CannedQuery<R> |
getOriginatingQuery()
Get the instance of the query that generated these results.
|
int |
getPageCount()
Get the number of pages available
|
int |
getPagedResultCount()
Get the total number of results available within the pages of this result.
|
List<List<R>> |
getPages()
Get the paged results
|
R |
getSingleResult()
Get a single result if there is only one result expected.
|
getPage, getQueryExecutionId, getTotalResultCount, hasMoreItems
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPage, getQueryExecutionId, getTotalResultCount, hasMoreItems
public EmptyCannedQueryResults(CannedQuery<R> query)
public CannedQuery<R> getOriginatingQuery()
CannedQueryResults
getOriginatingQuery
in interface CannedQueryResults<R>
public int getPageCount()
CannedQueryResults
getPageCount
in interface CannedQueryResults<R>
public int getPagedResultCount()
CannedQueryResults
getPagedResultCount
in interface CannedQueryResults<R>
public List<List<R>> getPages()
CannedQueryResults
getPages
in interface CannedQueryResults<R>
public R getSingleResult()
CannedQueryResults
getSingleResult
in interface CannedQueryResults<R>
Copyright © 2005–2018 Alfresco Software. All rights reserved.