Package org.joinfaces.primefaces
Klasse SpringDataJpaLazyDataModel<T,ID,R extends JpaRepository<T,ID> & JpaSpecificationExecutor<T>>
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>
org.joinfaces.primefaces.SpringDataJpaLazyDataModel<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>
public class SpringDataJpaLazyDataModel<T,ID,R extends JpaRepository<T,ID> & JpaSpecificationExecutor<T>>
extends SpringDataLazyDataModel<T,ID,R>
Primefaces
LazyDataModel
implementation which wraps a Spring Data JPA Repository
.- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic class
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
getPrimaryKey
(T entity) protected Specification
<T> getSpecification
(Map<String, org.primefaces.model.FilterMeta> filterBy) protected Specification
<T> getSpecification
(org.primefaces.model.FilterMeta filterMeta) load
(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy) void
setEntityManager
(EntityManager entityManager) Von Klasse geerbte Methoden org.joinfaces.primefaces.SpringDataLazyDataModel
getEntityConverter, getEntityInformation, getIdClass, getPageable, getPageable, getRowData, getRowKey, getSort, registerResult, setEntityConverter, setEntityInformation, setIdClass, setPrimaryKeyDeserializer, setPrimaryKeySerializer
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
-
SpringDataJpaLazyDataModel
-
-
Methodendetails
-
load
public List<T> load(int first, int pageSize, Map<String, org.primefaces.model.SortMeta> sortBy, Map<String, org.primefaces.model.FilterMeta> filterBy) - Setzt außer Kraft:
load
in KlasseSpringDataLazyDataModel<T,
ID, R extends JpaRepository<T, ID> & JpaSpecificationExecutor<T>>
-
count
- Setzt außer Kraft:
count
in KlasseSpringDataLazyDataModel<T,
ID, R extends JpaRepository<T, ID> & JpaSpecificationExecutor<T>>
-
getSpecification
@Nullable protected Specification<T> getSpecification(Map<String, org.primefaces.model.FilterMeta> filterBy) -
getSpecification
-
getPrimaryKey
- Setzt außer Kraft:
getPrimaryKey
in KlasseSpringDataLazyDataModel<T,
ID, R extends JpaRepository<T, ID> & JpaSpecificationExecutor<T>>
-
getEntityManager
-
setEntityManager
-