public abstract class ScrollableList<E> extends Object implements Scrollable<E>
| Constructor and Description |
|---|
ScrollableList() |
| Modifier and Type | Method and Description |
|---|---|
void |
first() |
protected abstract List<E> |
getData(E currentMarker) |
long |
getMaxResultsPerPage()
The max number of results per page; ie the page size.
|
List<E> |
getResultList()
Returns the results for the current "page"
|
boolean |
isNextAvailable() |
boolean |
isPreviousAvailable() |
void |
markForUpdate() |
void |
next() |
void |
previous() |
void |
setMaxResultsPerPage(int maxResults) |
protected void |
update() |
public long getMaxResultsPerPage()
ScrollablegetMaxResultsPerPage in interface Scrollable<E>public void markForUpdate()
public void setMaxResultsPerPage(int maxResults)
setMaxResultsPerPage in interface Scrollable<E>public void next()
public void first()
first in interface Scrollable<E>public void previous()
previous in interface Scrollable<E>public boolean isPreviousAvailable()
isPreviousAvailable in interface Scrollable<E>public boolean isNextAvailable()
public List<E> getResultList()
ScrollablegetResultList in interface Scrollable<E>protected final void update()
throws DataRetrievalException
DataRetrievalExceptionprotected abstract List<E> getData(E currentMarker) throws DataRetrievalException
DataRetrievalExceptionCopyright © 2009–2016 DuraSpace. All rights reserved.