Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.query
Interface PagingResults<R>

@org.alfresco.api.AlfrescoPublicApi
public interface PagingResults<R>
Marker interface for single page of results
Since:
4.0
Author:
janv

Method Summary
getPage()
          Get the page of results.
getQueryExecutionId()
          Get a unique ID associated with these query results.
getTotalResultCount()
          Get the total result count assuming no paging applied.
boolean
hasMoreItems()
          True if more items on next page.
Method Detail
getPage
List<RgetPage()
Get the page of results.
Returns:
the results - possibly empty but never null

hasMoreItems
boolean hasMoreItems()
True if more items on next page.

Note: could also return true if page was cutoff/trimmed for some reason (eg. due to permission checks of large page of requested max items)

Returns:
true if more items (eg. on next page)
- true => at least one more page (or incomplete page - if cutoff)
- false => last page (or incomplete page - if cutoff)

getTotalResultCount
Pair<IntegergetTotalResultCount()
Get the total result count assuming no paging applied. This value will only be available if the query supports it and the client requested it. By default, it is not requested.

Returns result as an approx "range" pair

  • null (or lower is null): unknown total count (or not requested by the client).
  • lower = upper : total count should be accurate
  • lower < upper : total count is an approximation ("about") - somewhere in the given range (inclusive)
  • upper is null : total count is "more than" lower (upper is unknown)
Returns:
Returns the total results as a range (all results, including the paged results returned)

getQueryExecutionId
String getQueryExecutionId()
Get a unique ID associated with these query results. This must be available before and after execution i.e. it must depend on the type of query and the query parameters rather than the execution results. Client has the option to pass this back as a hint when paging.
Returns:
a unique ID associated with the query execution results

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2018 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.