public abstract class LazyDataModel<T> extends javax.faces.model.DataModel<T> implements SelectableDataModel<T>, Serializable
| Constructor and Description |
|---|
LazyDataModel() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPageSize() |
int |
getRowCount() |
T |
getRowData() |
T |
getRowData(String rowKey) |
int |
getRowIndex() |
Object |
getRowKey(T object) |
List<T> |
getWrappedData() |
boolean |
isRowAvailable() |
Iterator<T> |
iterator() |
Iterator<T> |
iterator(Map<String,SortMeta> sortBy,
Map<String,FilterMeta> filterBy) |
Iterator<T> |
iterator(String sortField,
SortOrder sortOrder,
Map<String,FilterMeta> filterBy)
Deprecated.
|
List<T> |
load(int first,
int pageSize,
Map<String,SortMeta> sortBy,
Map<String,FilterMeta> filterBy)
Loads the data for the given parameters.
|
List<T> |
load(int first,
int pageSize,
String sortField,
SortOrder sortOrder,
Map<String,FilterMeta> filterBy) |
void |
setPageSize(int pageSize) |
void |
setRowCount(int rowCount) |
void |
setRowIndex(int rowIndex) |
void |
setWrappedData(Object list) |
addDataModelListener, getDataModelListeners, removeDataModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic boolean isRowAvailable()
isRowAvailable in class javax.faces.model.DataModel<T>public int getRowCount()
getRowCount in class javax.faces.model.DataModel<T>public int getRowIndex()
getRowIndex in class javax.faces.model.DataModel<T>public void setRowIndex(int rowIndex)
setRowIndex in class javax.faces.model.DataModel<T>public List<T> getWrappedData()
getWrappedData in class javax.faces.model.DataModel<T>public void setWrappedData(Object list)
setWrappedData in class javax.faces.model.DataModel<T>public int getPageSize()
public void setPageSize(int pageSize)
public void setRowCount(int rowCount)
public List<T> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String,FilterMeta> filterBy)
public List<T> load(int first, int pageSize, Map<String,SortMeta> sortBy, Map<String,FilterMeta> filterBy)
first - the first entrypageSize - the page sizesortBy - a list with all sort informationsfilterBy - a map with all filter informationspublic T getRowData(String rowKey)
getRowData in interface SelectableDataModel<T>public Object getRowKey(T object)
getRowKey in interface SelectableDataModel<T>@Deprecated public Iterator<T> iterator(String sortField, SortOrder sortOrder, Map<String,FilterMeta> filterBy)
Copyright © 2020. All rights reserved.