Class SimpleEntityQueryFacade<T>
java.lang.Object
com.foreach.across.modules.entity.query.SimpleEntityQueryFacade<T>
- All Implemented Interfaces:
EntityQueryExecutor<T>
,EntityQueryFacade<T>
Basic implementation of
EntityQueryFacade
that wraps around an
EntityQueryParser
and EntityQueryExecutor
.- Since:
- 3.1.0
- Author:
- Arne Vandamme
-
Constructor Summary
ConstructorDescriptionSimpleEntityQueryFacade
(@NonNull EntityQueryParser parser, @NonNull EntityQueryExecutor<T> executor) -
Method Summary
Modifier and TypeMethodDescriptionconvertToExecutableQuery
(EntityQuery rawQuery) Convert a raw query to an executable query.findAll
(EntityQuery query) 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, wait
Methods inherited from interface com.foreach.across.modules.entity.query.EntityQueryExecutor
canExecute
Methods inherited from interface com.foreach.across.modules.entity.query.EntityQueryFacade
convertToExecutableQuery, findAll, findAll, findAll
-
Constructor Details
-
SimpleEntityQueryFacade
public SimpleEntityQueryFacade(@NonNull @NonNull EntityQueryParser parser, @NonNull @NonNull EntityQueryExecutor<T> executor)
-
-
Method Details
-
convertToExecutableQuery
Description copied from interface:EntityQueryFacade
Convert a raw query to an executable query. This usually verifies the selected properties and converts the condition arguments to the correct types.- Specified by:
convertToExecutableQuery
in interfaceEntityQueryFacade<T>
- Parameters:
rawQuery
- to convert- Returns:
- executable query instance
-
findAll
- Specified by:
findAll
in interfaceEntityQueryExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceEntityQueryExecutor<T>
-
findAll
public org.springframework.data.domain.Page<T> findAll(EntityQuery query, org.springframework.data.domain.Pageable pageable) - Specified by:
findAll
in interfaceEntityQueryExecutor<T>
-