@@ -94,9 +94,9 @@ public FetchableFluentQuery<R> sortBy(Sort sort) {
94
94
95
95
Assert .notNull (sort , "Sort must not be null!" );
96
96
97
- return new FetchableFluentQueryByExample <>(this . example , this . entityType , this . resultType , this . sort .and (sort ),
98
- this . properties , this . finder , this . countOperation , this . existsOperation , this . context , this . entityManager ,
99
- this . escapeCharacter , new TypedQueryProjector (entityManager ));
97
+ return new FetchableFluentQueryByExample <>(example , entityType , resultType , sort .and (sort ), properties , finder ,
98
+ countOperation , existsOperation , context , entityManager , escapeCharacter ,
99
+ new TypedQueryProjector (entityManager ));
100
100
}
101
101
102
102
/*
@@ -111,8 +111,8 @@ public <NR> FetchableFluentQuery<NR> as(Class<NR> resultType) {
111
111
throw new UnsupportedOperationException ("Class-based DTOs are not yet supported." );
112
112
}
113
113
114
- return new FetchableFluentQueryByExample <>(this . example , this . entityType , resultType , this . sort , this . properties ,
115
- this . finder , this . countOperation , this . existsOperation , this . context , this . entityManager , this . escapeCharacter ,
114
+ return new FetchableFluentQueryByExample <>(example , entityType , resultType , sort , properties , finder ,
115
+ countOperation , existsOperation , context , entityManager , escapeCharacter ,
116
116
new TypedQueryProjector (entityManager ));
117
117
}
118
118
@@ -123,9 +123,9 @@ public <NR> FetchableFluentQuery<NR> as(Class<NR> resultType) {
123
123
@ Override
124
124
public FetchableFluentQuery <R > project (Collection <String > properties ) {
125
125
126
- return new FetchableFluentQueryByExample <>(this . example , this . entityType , this . resultType , this . sort ,
127
- mergeProperties ( properties ), this . finder , this . countOperation , this . existsOperation , this . context ,
128
- this . entityManager , this . escapeCharacter , new TypedQueryProjector (entityManager ));
126
+ return new FetchableFluentQueryByExample <>(example , entityType , resultType , sort , mergeProperties ( properties ) ,
127
+ finder , countOperation , existsOperation , context , entityManager , escapeCharacter ,
128
+ new TypedQueryProjector (entityManager ));
129
129
}
130
130
131
131
/*
@@ -201,7 +201,7 @@ public Stream<R> stream() {
201
201
*/
202
202
@ Override
203
203
public long count () {
204
- return this . countOperation .apply (example );
204
+ return countOperation .apply (example );
205
205
}
206
206
207
207
/*
@@ -210,7 +210,7 @@ public long count() {
210
210
*/
211
211
@ Override
212
212
public boolean exists () {
213
- return this . existsOperation .apply (example );
213
+ return existsOperation .apply (example );
214
214
}
215
215
216
216
private Page <R > readPage (Pageable pageable ) {
@@ -224,12 +224,12 @@ private Page<R> readPage(Pageable pageable) {
224
224
225
225
List <R > paginatedResults = convert (pagedQuery .getResultList ());
226
226
227
- return PageableExecutionUtils .getPage (paginatedResults , pageable , () -> this . countOperation .apply (this . example ));
227
+ return PageableExecutionUtils .getPage (paginatedResults , pageable , () -> countOperation .apply (example ));
228
228
}
229
229
230
230
private TypedQuery <S > createSortedAndProjectedQuery () {
231
231
232
- TypedQuery <S > query = this . finder .apply (this . sort );
232
+ TypedQuery <S > query = finder .apply (sort );
233
233
projector .apply (entityType , query , properties );
234
234
235
235
return query ;
@@ -247,7 +247,7 @@ private List<R> convert(List<S> resultList) {
247
247
}
248
248
249
249
private Function <Object , R > getConversionFunction () {
250
- return getConversionFunction (this . example .getProbeType (), this . resultType );
250
+ return getConversionFunction (example .getProbeType (), resultType );
251
251
}
252
252
253
253
}
0 commit comments