Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.query.core
Class EmptyPageProvider<T extends Serializable>

java.lang.Object
  extended by org.nuxeo.ecm.platform.query.api.AbstractPageProvider<T>
      extended by org.nuxeo.ecm.platform.query.core.EmptyPageProvider<T>
All Implemented Interfaces:
Serializable, PageProvider<T>

public class EmptyPageProvider<T extends Serializable>
extends AbstractPageProvider<T>

Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.platform.query.api.PageProvider
DEFAULT_MAX_PAGE_SIZE, UNKNOWN_SIZE, UNKNOWN_SIZE_AFTER_QUERY
 
Constructor Summary
EmptyPageProvider()
           
 
Method Summary
 List<T> getCurrentPage()
          Returns the current page of results.
 
Methods inherited from class org.nuxeo.ecm.platform.query.api.AbstractPageProvider
addSortInfo, firstPage, getCurrentEntry, getCurrentHigherNonEmptyPageIndex, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefinition, getError, getErrorMessage, getMaxNumberOfEmptyPages, getMaxPageSize, getMinMaxPageSize, getName, getNumberOfPages, getPageSize, getParameters, getProperties, getResultsCount, getSearchDocumentModel, getSortInfo, getSortInfoIndex, getSortInfos, hasError, isLastPageAvailable, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, isSortable, last, lastPage, next, nextEntry, nextPage, previous, previousEntry, previousPage, refresh, rewind, setCurrentEntry, setCurrentEntryIndex, setCurrentHigherNonEmptyPageIndex, setCurrentPage, setCurrentPageOffset, setDefinition, setMaxPageSize, setName, setPageSize, setParameters, setProperties, setResultsCount, setSearchDocumentModel, setSelectedEntries, setSortable, setSortInfo, setSortInfo, setSortInfos
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyPageProvider

public EmptyPageProvider()
Method Detail

getCurrentPage

public List<T> getCurrentPage()
Description copied from interface: PageProvider
Returns the current page of results.

This method is designed to be called from higher levels. It therefore ensures cheapness of repeated calls, rather than data consistency. There is a refresh() method for that.

Specified by:
getCurrentPage in interface PageProvider<T extends Serializable>
Specified by:
getCurrentPage in class AbstractPageProvider<T extends Serializable>
Returns:
the current page

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.