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
Constructors -
Method Summary
-
Constructor Details
-
DelegatingQueryRewriter
-
-
Method Details
-
rewrite
Description copied from interface:QueryRewriterRewrite the assembled query with the givenSort.WARNING: No checks are performed before the transformed query is passed to the EntityManager.
- Specified by:
rewritein interfaceQueryRewriter- Parameters:
query- the assembled query.sort- currentSortsettings provided by the method, orSort.unsorted()} if there are none.- Returns:
- the query to be used with the
EntityManager.
-
rewrite
Description copied from interface:QueryRewriterRewrite the assembled query with the givenPageable.- Specified by:
rewritein interfaceQueryRewriter- Parameters:
query- the assembled query.pageRequest- currentPageablesettings provided by the method, orPageable.unpaged()if not paged.- Returns:
- the query to be used with the
EntityManager.
-