Interface EntityQueryFacade<T>
- All Superinterfaces:
EntityQueryExecutor<T>
- All Known Implementing Classes:
SimpleEntityQueryFacade
Central component for working with
EntityQuery
and EQL statements for a particular entity type.
Usually wraps around an EntityQueryParser
that can translate EQL to EntityQuery
, and
an EntityQueryExecutor
that can execute the actual query.- Since:
- 3.1.0
- Author:
- Arne Vandamme
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionconvertToExecutableQuery
(EntityQuery rawQuery) Convert a raw query to an executable query.default EntityQuery
Parses an EQL statement into an executable query, performing all necessary validation and type conversion.Find all entities matching the eql statement.default org.springframework.data.domain.Page<T>
Find all entities matching the eql statement.Find all entities matching the eql statement and sort them using the sort parameter after applying the sort order present in the eql statement.Methods inherited from interface com.foreach.across.modules.entity.query.EntityQueryExecutor
canExecute, findAll, findAll, findAll
-
Method Details
-
findAll
Find all entities matching the eql statement.- Parameters:
eql
- query- Returns:
- results
-
findAll
Find all entities matching the eql statement and sort them using the sort parameter after applying the sort order present in the eql statement.- Parameters:
eql
- query- Returns:
- results
-
findAll
default org.springframework.data.domain.Page<T> findAll(String eql, org.springframework.data.domain.Pageable pageable) Find all entities matching the eql statement. Apply the pageable to the result set (page selection + optional sorting).- Parameters:
eql
- query- Returns:
- results
-
convertToExecutableQuery
Parses an EQL statement into an executable query, performing all necessary validation and type conversion.- Parameters:
eql
- statement- Returns:
- executable query instance
-
convertToExecutableQuery
Convert a raw query to an executable query. This usually verifies the selected properties and converts the condition arguments to the correct types.- Parameters:
rawQuery
- to convert- Returns:
- executable query instance
-