Interface ReactiveFindByQueryOperation.FindByQueryWithProjection<T>
- Type Parameters:
T- the entity type to use for the results.
- All Superinterfaces:
InCollection<T>, InScope<T>, OneAndAllReactive<T>, ReactiveFindByQueryOperation.FindByQueryConsistentWith<T>, ReactiveFindByQueryOperation.FindByQueryInCollection<T>, ReactiveFindByQueryOperation.FindByQueryInScope<T>, ReactiveFindByQueryOperation.FindByQueryWithConsistency<T>, ReactiveFindByQueryOperation.FindByQueryWithOptions<T>, ReactiveFindByQueryOperation.FindByQueryWithQuery<T>, ReactiveFindByQueryOperation.TerminatingFindByQuery<T>, WithConsistency<T>, WithQuery<T>, WithQueryOptions<T>
- All Known Subinterfaces:
ReactiveFindByQueryOperation.FindByQueryWithDistinct<T>, ReactiveFindByQueryOperation.FindByQueryWithProjecting<T>, ReactiveFindByQueryOperation.ReactiveFindByQuery<T>
- Enclosing interface:
ReactiveFindByQueryOperation
public static interface ReactiveFindByQueryOperation.FindByQueryWithProjection<T>
extends ReactiveFindByQueryOperation.FindByQueryWithConsistency<T>
Fluent method to specify a return type different than the the entity type to use for the results.
- Author:
- Michael Nitschinger, Michael Reiche
-
Method Summary
Modifier and TypeMethodDescriptionDefine the target type fields should be mapped to.Methods inherited from interface ReactiveFindByQueryOperation.FindByQueryConsistentWith
consistentWithMethods inherited from interface ReactiveFindByQueryOperation.FindByQueryInCollection
inCollectionMethods inherited from interface ReactiveFindByQueryOperation.FindByQueryInScope
inScopeMethods inherited from interface ReactiveFindByQueryOperation.FindByQueryWithConsistency
withConsistencyMethods inherited from interface ReactiveFindByQueryOperation.FindByQueryWithOptions
withOptionsMethods inherited from interface ReactiveFindByQueryOperation.FindByQueryWithQuery
matching, matching
-
Method Details
-
as
Define the target type fields should be mapped to.
Skip this step if you are anyway only interested in the original domain type.- Parameters:
returnType- must not be null.- Returns:
- new instance of
ReactiveFindByQueryOperation.FindByQueryWithProjection. - Throws:
IllegalArgumentException- if returnType is null.
-