public class EmptyCannedQueryResults extends EmptyPagingResults implements CannedQueryResults
CannedQueryResults, used when you know
you can short circuit a query when no results are found.| Constructor and Description |
|---|
EmptyCannedQueryResults(CannedQuery query) |
| Modifier and Type | Method and Description |
|---|---|
CannedQuery |
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.
|
java.util.List |
getPages()
Get the paged results
|
java.lang.Object |
getSingleResult()
Get a single result if there is only one result expected.
|
getPage, getQueryExecutionId, getTotalResultCount, hasMoreItemsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPage, getQueryExecutionId, getTotalResultCount, hasMoreItemspublic EmptyCannedQueryResults(CannedQuery query)
public CannedQuery getOriginatingQuery()
CannedQueryResultsgetOriginatingQuery in interface CannedQueryResultspublic int getPageCount()
CannedQueryResultsgetPageCount in interface CannedQueryResultspublic int getPagedResultCount()
CannedQueryResultsgetPagedResultCount in interface CannedQueryResultspublic java.util.List getPages()
CannedQueryResultsgetPages in interface CannedQueryResultspublic java.lang.Object getSingleResult()
CannedQueryResultsgetSingleResult in interface CannedQueryResultsCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.