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) |
Object |
getWrappedData() |
boolean |
isRowAvailable() |
List<T> |
load(int first,
int pageSize,
List<SortMeta> multiSortMeta,
Map<String,Object> filters) |
List<T> |
load(int first,
int pageSize,
String sortField,
SortOrder sortOrder,
Map<String,Object> filters) |
void |
setPageSize(int pageSize) |
void |
setRowCount(int rowCount) |
void |
setRowIndex(int rowIndex) |
void |
setWrappedData(Object list) |
addDataModelListener, getDataModelListeners, iterator, removeDataModelListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public 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 Object 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,Object> filters)
public List<T> load(int first, int pageSize, List<SortMeta> multiSortMeta, Map<String,Object> filters)
public T getRowData(String rowKey)
getRowData
in interface SelectableDataModel<T>
public Object getRowKey(T object)
getRowKey
in interface SelectableDataModel<T>
Copyright © 2017. All rights reserved.