Class DelegatingQueryRewriter
java.lang.Object
org.springframework.data.jpa.repository.query.DelegatingQueryRewriter
- All Implemented Interfaces:
QueryRewriter
- Since:
- 3.0
- Author:
- Mark Paluch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.data.jpa.repository.QueryRewriter
QueryRewriter.IdentityQueryRewriter
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
DelegatingQueryRewriter
-
-
Method Details
-
rewrite
Description copied from interface:QueryRewriter
Rewrite the assembled query with the givenSort
.WARNING: No checks are performed before the transformed query is passed to the EntityManager.
- Specified by:
rewrite
in interfaceQueryRewriter
- Parameters:
query
- the assembled query.sort
- currentSort
settings provided by the method, orSort.unsorted()
} if there are none.- Returns:
- the query to be used with the
EntityManager
.
-
rewrite
Description copied from interface:QueryRewriter
Rewrite the assembled query with the givenPageable
.- Specified by:
rewrite
in interfaceQueryRewriter
- Parameters:
query
- the assembled query.pageRequest
- currentPageable
settings provided by the method, orPageable.unpaged()
if not paged.- Returns:
- the query to be used with the
EntityManager
.
-