Class LazyCustomerDataModel
- java.lang.Object
-
- jakarta.faces.model.DataModel<T>
-
- org.primefaces.model.LazyDataModel<Customer>
-
- org.primefaces.showcase.view.data.datatable.LazyCustomerDataModel
-
- All Implemented Interfaces:
Serializable,Iterable<Customer>,org.primefaces.model.SelectableDataModel<Customer>
public class LazyCustomerDataModel extends org.primefaces.model.LazyDataModel<Customer>
Dummy implementation of LazyDataModel that uses a list to mimic a real datasource like a database.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LazyCustomerDataModel(List<Customer> datasource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcount(Map<String,org.primefaces.model.FilterMeta> filterBy)CustomergetRowData(String rowKey)StringgetRowKey(Customer customer)List<Customer>load(int offset, int pageSize, Map<String,org.primefaces.model.SortMeta> sortBy, Map<String,org.primefaces.model.FilterMeta> filterBy)-
Methods inherited from class org.primefaces.model.LazyDataModel
getMessage, getPageSize, getRowCount, getRowData, getRowIndex, getRowKeyFromConverter, getWrappedData, isRowAvailable, iterator, iterator, loadOne, recalculateFirst, setPageSize, setRowCount, setRowIndex, setWrappedData
-
Methods inherited from class jakarta.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-