Interface ExecutableFindByQueryOperation.FindByQueryWithProjection<T>
- Type Parameters:
T
- the entity type to use for the results.
- All Superinterfaces:
ExecutableFindByQueryOperation.FindByQueryConsistentWith<T>
,ExecutableFindByQueryOperation.FindByQueryInCollection<T>
,ExecutableFindByQueryOperation.FindByQueryInScope<T>
,ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>
,ExecutableFindByQueryOperation.FindByQueryWithOptions<T>
,ExecutableFindByQueryOperation.FindByQueryWithQuery<T>
,ExecutableFindByQueryOperation.TerminatingFindByQuery<T>
,InCollection<T>
,InScope<T>
,OneAndAll<T>
,WithConsistency<T>
,WithQuery<T>
,WithQueryOptions<T>
- All Known Subinterfaces:
ExecutableFindByQueryOperation.ExecutableFindByQuery<T>
,ExecutableFindByQueryOperation.FindByQueryWithDistinct<T>
,ExecutableFindByQueryOperation.FindByQueryWithProjecting<T>
- Enclosing interface:
- ExecutableFindByQueryOperation
public static interface ExecutableFindByQueryOperation.FindByQueryWithProjection<T>
extends ExecutableFindByQueryOperation.FindByQueryWithConsistency<T>
Fluent method to specify a return type different than the the entity type to use for the results.
-
Method Summary
Modifier and TypeMethodDescriptionDefine the target type fields should be mapped to.Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryConsistentWith
consistentWith
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryInCollection
inCollection
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryInScope
inScope
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithConsistency
withConsistency
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithOptions
withOptions
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithQuery
matching, matching
Methods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.TerminatingFindByQuery
all, count, exists, first, firstValue, one, oneValue, stream
-
Method Details
-
as
Define the target type fields should be mapped to.
Skip this step if you are only interested in the original the entity type to use for the results.- Parameters:
returnType
- must not be null.- Returns:
- new instance of
ExecutableFindByQueryOperation.FindByQueryWithProjection
. - Throws:
IllegalArgumentException
- if returnType is null.
-