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
consistentWithMethods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryInCollection
inCollectionMethods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryInScope
inScopeMethods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithConsistency
withConsistencyMethods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithOptions
withOptionsMethods inherited from interface org.springframework.data.couchbase.core.ExecutableFindByQueryOperation.FindByQueryWithQuery
matching, matchingMethods 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.
-