Constructor and Description |
---|
OnDemandDataModel() |
Modifier and Type | Method and Description |
---|---|
abstract int |
countRows()
Returns the total number of rows.
|
abstract Collection<E> |
findRows(int startRow,
int finishRow,
List<SortCriterion> sortCritieria)
Returns a list of rows that is a subset of the entire list of rows.
|
int |
getFinishRowIndex()
Returns the index of the finishing row associated with the underlying wrapped data.
|
int |
getRowCount() |
E |
getRowData() |
int |
getRowIndex() |
int |
getRowsPerPage()
Returns the number of rows-per-page associated with the pagination.
|
List<SortCriterion> |
getSortCriteria() |
int |
getStartRowIndex()
Returns the index of the starting row associated with the underlying wrapped data.
|
List<E> |
getWrappedData() |
boolean |
isRowAvailable() |
void |
reset()
Resets (clears) the underlying wrapped data.
|
void |
setFinishRowIndex(int finishRowIndex)
Sets the finishing row associated with the underlying wrapped data.
|
void |
setRowCount(int rowCount)
Sets the rowCount to the specified value.
|
void |
setRowIndex(int rowIndex) |
void |
setRowsPerPage(int rowsPerPage)
Sets the number of rows-per-page associated with the pagination.
|
void |
setSortCriteria(List<SortCriterion> sortCriteria) |
void |
setStartRowIndex(int startRowIndex)
Sets the starting row associated with the underlying wrapped data.
|
void |
setWrappedData(Object wrappedData) |
addDataModelListener, getDataModelListeners, iterator, removeDataModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public abstract int countRows()
public abstract Collection<E> findRows(int startRow, int finishRow, List<SortCriterion> sortCritieria)
startRow
- The starting row index.finishRow
- The finishing row index.sortCritieria
- The sort criteria that is to be applied to the order of the results.public int getFinishRowIndex()
public int getRowCount()
getRowCount
in class javax.faces.model.DataModel<E>
DataModel.getRowCount()
public E getRowData()
getRowData
in class javax.faces.model.DataModel<E>
DataModel.getRowData()
public int getRowIndex()
getRowIndex
in class javax.faces.model.DataModel<E>
DataModel.getRowIndex()
public int getRowsPerPage()
Paginated
getRowsPerPage
in interface Paginated
Paginated.getRowsPerPage()
public List<SortCriterion> getSortCriteria()
getSortCriteria
in interface Sortable
Sortable.getSortCriteria()
public int getStartRowIndex()
public List<E> getWrappedData()
getWrappedData
in class javax.faces.model.DataModel<E>
DataModel.getWrappedData()
public boolean isRowAvailable()
isRowAvailable
in class javax.faces.model.DataModel<E>
DataModel.isRowAvailable()
public void reset()
public void setFinishRowIndex(int finishRowIndex)
public void setRowCount(int rowCount)
public void setRowIndex(int rowIndex)
setRowIndex
in class javax.faces.model.DataModel<E>
DataModel.setRowIndex(int)
public void setRowsPerPage(int rowsPerPage)
Paginated
setRowsPerPage
in interface Paginated
Paginated.setRowsPerPage(int)
public void setSortCriteria(List<SortCriterion> sortCriteria)
setSortCriteria
in interface Sortable
Sortable.setSortCriteria(java.util.List)
public void setStartRowIndex(int startRowIndex)
Copyright © 2018 Liferay, Inc.. All rights reserved.