Package org.joinfaces.primefaces
Klasse SpringDataLazyDataModel<T,ID,R extends CrudRepository<T,ID> & PagingAndSortingRepository<T,ID>>
java.lang.Object
jakarta.faces.model.DataModel<T>
jakarta.faces.model.ListDataModel<T>
org.primefaces.model.LazyDataModel<T>
org.joinfaces.primefaces.SpringDataLazyDataModel<T,ID,R>
- Typparameter:
T
- the domain type the repository managesID
- the type of the id of the entity the repository managesR
- the type of the repository interface
- Alle implementierten Schnittstellen:
Serializable
,Iterable<T>
,org.primefaces.model.SelectableDataModel<T>
- Bekannte direkte Unterklassen:
SpringDataJpaLazyDataModel
public class SpringDataLazyDataModel<T,ID,R extends CrudRepository<T,ID> & PagingAndSortingRepository<T,ID>>
extends org.primefaces.model.LazyDataModel<T>
Primefaces
LazyDataModel
implementation which wraps a Spring Data Repository
.- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
protected Pageable
getPageable
(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy) protected Pageable
getPageable
(int first, int pageSize, Sort sort) protected ID
getPrimaryKey
(T entity) getRowData
(String rowKey) protected Sort
load
(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy) protected void
registerResult
(Page<T> page) void
setEntityConverter
(Converter<T> entityConverter) void
setEntityInformation
(EntityInformation<T, ID> entityInformation) void
setIdClass
(Class<ID> idClass) void
setPrimaryKeyDeserializer
(Function<String, ID> primaryKeyDeserializer) void
setPrimaryKeySerializer
(Function<ID, String> primaryKeySerializer) Von Klasse geerbte Methoden org.primefaces.model.LazyDataModel
getConverter, getMessage, getPageSize, getRowCount, getRowData, getRowData, getRowIndex, getWrappedData, isRowAvailable, iterator, iterator, recalculateFirst, setConverter, setPageSize, setRowCount, setRowIndex, setWrappedData
Von Klasse geerbte Methoden jakarta.faces.model.DataModel
addDataModelListener, getDataModelListeners, removeDataModelListener
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
-
Konstruktordetails
-
SpringDataLazyDataModel
-
-
Methodendetails
-
load
public List<T> load(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy) - Angegeben von:
load
in Klasseorg.primefaces.model.LazyDataModel<T>
-
count
- Angegeben von:
count
in Klasseorg.primefaces.model.LazyDataModel<T>
-
registerResult
-
getPageable
-
getPageable
-
getSort
-
getRowKey
-
getRowData
-
getPrimaryKey
-
getEntityInformation
-
setEntityInformation
-
getEntityConverter
-
setEntityConverter
-
getIdClass
-
setIdClass
-
setPrimaryKeyDeserializer
-
setPrimaryKeySerializer
-