Class PageableQueryExecutor<T>
java.lang.Object
software.xdev.spring.data.eclipse.store.repository.query.executors.PageableQueryExecutor<T>
- Type Parameters:
T- Entity-Type to query
- All Implemented Interfaces:
QueryExecutor<T>
Queries entities and returns a the result as page.
-
Constructor Summary
ConstructorsConstructorDescriptionPageableQueryExecutor(WorkingCopier<T> copier, Criteria<T> criteria, org.springframework.data.domain.Sort sort) -
Method Summary
-
Constructor Details
-
PageableQueryExecutor
public PageableQueryExecutor(WorkingCopier<T> copier, Criteria<T> criteria, org.springframework.data.domain.Sort sort)
-
-
Method Details
-
execute
public org.springframework.data.domain.Page<T> execute(Class<T> clazz, @Nullable EntityProvider<T, ?> entities, Object[] values) Executes the created query over entities.The result is always a working copy of the entities.
- Specified by:
executein interfaceQueryExecutor<T>- Parameters:
clazz- of the entitiesentities- where the query is executed onvalues- for the query. These are values that might be compared to entities.- Returns:
- a page of the found/sorted/paged entities
-