Class LazyDataModel7<T>
java.lang.Object
javax.faces.model.DataModel<E>
javax.faces.model.ListDataModel<T>
org.primefaces.model.LazyDataModel<T>
ch.ivyteam.ivy.jsf.primefaces.legazy.LazyDataModel7<T>
- Type Parameters:
T
- The model class.
- All Implemented Interfaces:
Serializable
,Iterable<T>
,org.primefaces.model.SelectableDataModel<T>
@Deprecated(since="9.4")
public abstract class LazyDataModel7<T>
extends org.primefaces.model.LazyDataModel<T>
Deprecated.
To ease the migration of old Primefaces 7 LazyDataModels
use this class as new base class
instead of LazyDataModel
.
It implements the methods count(Map)
and load(int, int, Map, Map)
of the newer Primefaces 11 LazyDataModel and forwards it to the Primefaces 7 compatible method
load(int, int, String, SortOrder, Map)
Therefore, when migrating to Axon Ivy 9.4 and later you only have to change
public class YourLazyDataModel extends LazyDataModel
to
public class YourLazyDataModel extends LazyDataModel7
of all your lazy data model classes. Afterwards, they compile and work as before.
- Since:
- 9.4
- See Also:
- API:
- This is a public API.
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.load
(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String, Object> filters) Deprecated.Load method as defined by LazyDataModel in Primefaces 7load
(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy) Deprecated.
-
Method Details
-
count
Deprecated.- API:
- This public API is available in Java.
-
load
public List<T> load(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy) Deprecated.- API:
- This public API is available in Java.
-
load
public abstract List<T> load(int first, int pageSize, String sortField, org.primefaces.model.SortOrder sortOrder, Map<String, Object> filters) Deprecated.Load method as defined by LazyDataModel in Primefaces 7- API:
- This public API is available in Java.
-
LazyDataModel
. Primefaces has changed this interface in version 10 and 11.