29
29
import org .springframework .data .mapping .context .MappingContext ;
30
30
import org .springframework .data .projection .ProjectionFactory ;
31
31
import org .springframework .data .repository .core .RepositoryMetadata ;
32
- import org .springframework .data .repository .util .ReactiveWrappers ;
33
- import org .springframework .data .util .ClassTypeInformation ;
32
+ import org .springframework .data .util .ReactiveWrappers ;
34
33
import org .springframework .data .util .Lazy ;
35
34
import org .springframework .data .util .TypeInformation ;
36
35
import org .springframework .util .ClassUtils ;
43
42
*/
44
43
public class ReactiveCouchbaseQueryMethod extends CouchbaseQueryMethod {
45
44
46
- private static final ClassTypeInformation <Page > PAGE_TYPE = ClassTypeInformation . from (Page .class );
47
- private static final ClassTypeInformation <Slice > SLICE_TYPE = ClassTypeInformation . from (Slice .class );
45
+ private static final TypeInformation <Page > PAGE_TYPE = TypeInformation . of (Page .class );
46
+ private static final TypeInformation <Slice > SLICE_TYPE = TypeInformation . of (Slice .class );
48
47
49
- private final Method method ;
50
48
private final Lazy <Boolean > isCollectionQueryCouchbase ; // not to be confused with QueryMethod.isCollectionQuery
51
49
52
50
/**
@@ -64,7 +62,7 @@ public ReactiveCouchbaseQueryMethod(Method method, RepositoryMetadata metadata,
64
62
65
63
if (hasParameterOfType (method , Pageable .class )) {
66
64
67
- TypeInformation <?> returnType = ClassTypeInformation .fromReturnTypeOf (method );
65
+ TypeInformation <?> returnType = TypeInformation .fromReturnTypeOf (method );
68
66
69
67
boolean multiWrapper = ReactiveWrappers .isMultiValueType (returnType .getType ());
70
68
boolean singleWrapperWithWrappedPageableResult = ReactiveWrappers .isSingleValueType (returnType .getType ())
@@ -89,7 +87,6 @@ public ReactiveCouchbaseQueryMethod(Method method, RepositoryMetadata metadata,
89
87
}
90
88
}
91
89
92
- this .method = method ;
93
90
this .isCollectionQueryCouchbase = Lazy .of (() -> {
94
91
boolean result = !(isPageQuery () || isSliceQuery ())
95
92
&& ReactiveWrappers .isMultiValueType (metadata .getReturnType (method ).getType ());
0 commit comments