Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.query.core
Class EmptyPageProvider<T extends java.io.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:
java.io.Serializable, PageProvider<T>

public class EmptyPageProvider<T extends java.io.Serializable>
extends AbstractPageProvider<T>

Author:
Anahide Tchertchian
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.nuxeo.ecm.platform.query.api.PageProvider
UNKNOWN_SIZE
 
Constructor Summary
EmptyPageProvider()
           
 
Method Summary
 java.util.List<T> getCurrentPage()
          Returns the current page of results.
 
Methods inherited from class org.nuxeo.ecm.platform.query.api.AbstractPageProvider
addSortInfo, firstPage, getCurrentEntry, getCurrentPageIndex, getCurrentPageOffset, getCurrentPageSize, getCurrentPageStatus, getCurrentSelectPage, getDefinition, getError, getErrorMessage, getName, getNumberOfPages, getPageSize, getParameters, getProperties, getResultsCount, getSearchDocumentModel, getSortInfo, getSortInfoIndex, getSortInfos, hasError, isNextEntryAvailable, isNextPageAvailable, isPreviousEntryAvailable, isPreviousPageAvailable, isSortable, last, lastPage, next, nextEntry, nextPage, previous, previousEntry, previousPage, refresh, rewind, setCurrentEntry, setCurrentEntryIndex, setCurrentPage, setDefinition, 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 java.util.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 java.io.Serializable>
Specified by:
getCurrentPage in class AbstractPageProvider<T extends java.io.Serializable>
Returns:
the current page

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.