public interface FluentQuery<T>
FluentQuery
are immutable.Modifier and Type | Interface and Description |
---|---|
static interface |
FluentQuery.FetchableFluentQuery<T>
Fetchable extension
FluentQuery allowing to materialize results from the underlying query. |
static interface |
FluentQuery.ReactiveFluentQuery<T>
Reactive extension
FluentQuery allowing to materialize results from the underlying query. |
Modifier and Type | Method and Description |
---|---|
<R> FluentQuery<R> |
as(Class<R> resultType)
Define the target type the result should be mapped to.
|
FluentQuery<T> |
project(Collection<String> properties)
Define which properties or property paths to include in the query.
|
default FluentQuery<T> |
project(String... properties)
Define which properties or property paths to include in the query.
|
FluentQuery<T> |
sortBy(Sort sort)
Define the sort order.
|
FluentQuery<T> sortBy(Sort sort)
sort
- the Sort
specification to sort the results by, may be Sort.unsorted()
, must not be
null.FluentQuery
.IllegalArgumentException
- if resultType is null
.<R> FluentQuery<R> as(Class<R> resultType)
R
- result type.resultType
- must not be null
.FluentQuery
.IllegalArgumentException
- if resultType is null
.default FluentQuery<T> project(String... properties)
properties
- must not be null
.FluentQuery
.IllegalArgumentException
- if fields is null
.FluentQuery<T> project(Collection<String> properties)
properties
- must not be null
.FluentQuery
.IllegalArgumentException
- if fields is null
.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.