Class AbstractEntityQueryExecutor<T>
java.lang.Object
com.foreach.across.modules.entity.query.AbstractEntityQueryExecutor<T>
- All Implemented Interfaces:
EntityQueryExecutor<T>
- Direct Known Subclasses:
CollectionEntityQueryExecutor,ElasticEntityQueryExecutor,EntityQueryJpaExecutor,EntityQueryQueryDslExecutor,PagingAndSortingEntityQueryExecutor
public abstract class AbstractEntityQueryExecutor<T>
extends Object
implements EntityQueryExecutor<T>
Base class for an
EntityQueryExecutor that supports Sort specifications on
both the EntityQuery and as method parameter. If both are present, they will be
combined with the method specified sort applied first.- Since:
- 2.2.0
- Author:
- Arne Vandamme
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery(EntityQuery query) Implementations of this method should ignore theEntityQuery.getSort()value.protected abstract org.springframework.data.domain.Page<T>executeQuery(EntityQuery query, org.springframework.data.domain.Pageable pageable) Implementations of this method should ignore theEntityQuery.getSort()value.executeQuery(EntityQuery query, org.springframework.data.domain.Sort sort) Implementations of this method should ignore theEntityQuery.getSort()value.findAll(EntityQuery query) final org.springframework.data.domain.Page<T>findAll(EntityQuery query, org.springframework.data.domain.Pageable pageable) findAll(EntityQuery query, org.springframework.data.domain.Sort sort) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.foreach.across.modules.entity.query.EntityQueryExecutor
canExecute
-
Constructor Details
-
AbstractEntityQueryExecutor
public AbstractEntityQueryExecutor()
-
-
Method Details
-
findAll
public final org.springframework.data.domain.Page<T> findAll(EntityQuery query, org.springframework.data.domain.Pageable pageable) - Specified by:
findAllin interfaceEntityQueryExecutor<T>
-
findAll
- Specified by:
findAllin interfaceEntityQueryExecutor<T>
-
findAll
- Specified by:
findAllin interfaceEntityQueryExecutor<T>
-
executeQuery
Implementations of this method should ignore theEntityQuery.getSort()value. -
executeQuery
protected abstract Iterable<T> executeQuery(EntityQuery query, org.springframework.data.domain.Sort sort) Implementations of this method should ignore theEntityQuery.getSort()value. -
executeQuery
protected abstract org.springframework.data.domain.Page<T> executeQuery(EntityQuery query, org.springframework.data.domain.Pageable pageable) Implementations of this method should ignore theEntityQuery.getSort()value.
-