public interface ReactiveQueryResults extends com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>
QueryProjectionOperations API, which uses Flux and Mono to provide and handle the
query results.ReactiveQuery| Modifier and Type | Method and Description |
|---|---|
default reactor.core.publisher.Mono<Long> |
count()
Convenience
countAll() renamed method. |
default reactor.core.publisher.Mono<Long> |
countAll()
Count all the results of a query.
|
default <P extends com.holonplatform.core.property.Property> |
findOne(Iterable<P> properties)
Execute the query and get an expected unique result as a
PropertyBox instance, using given
properties as projection. |
default reactor.core.publisher.Mono<com.holonplatform.core.property.PropertyBox> |
findOne(com.holonplatform.core.property.Property... properties)
Execute the query and get an expected unique result as
PropertyBox instance using the Mono
representation, with given properties as query projection. |
default <R> reactor.core.publisher.Mono<R> |
findOne(com.holonplatform.core.query.QueryProjection<R> projection)
Execute the query and get an expected unique result using given
projection. |
default <P extends com.holonplatform.core.property.Property> |
list(Iterable<P> properties)
Execute the query and get a
List of query results as PropertyBox instances using a Mono
representation, with given properties as query projection. |
default reactor.core.publisher.Mono<List<com.holonplatform.core.property.PropertyBox>> |
list(com.holonplatform.core.property.Property... properties)
Execute the query and get a
Mono of the results List as PropertyBox instances, using
given properties as projection. |
default <R> reactor.core.publisher.Mono<List<R>> |
list(com.holonplatform.core.query.QueryProjection<R> projection)
Convenience method to obtain the query results
stream(QueryProjection) as a List, provided by a
Mono. |
default <P extends com.holonplatform.core.property.Property> |
stream(Iterable<P> properties)
Execute the query and get a
Flux of query results as PropertyBox instances, using given
properties as projection. |
default reactor.core.publisher.Flux<com.holonplatform.core.property.PropertyBox> |
stream(com.holonplatform.core.property.Property... properties)
Execute the query and get a
Flux of query results as PropertyBox instances, using given
properties as projection. |
<R> reactor.core.publisher.Flux<R> |
stream(com.holonplatform.core.query.QueryProjection<R> projection)
Execute the query and get a
Flux of query results using given projection. |
<R> reactor.core.publisher.Flux<R> stream(com.holonplatform.core.query.QueryProjection<R> projection)
Flux of query results using given projection.stream in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>R - Results typeprojection - Query projection (not null)Flux of query resultscom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault <R> reactor.core.publisher.Mono<List<R>> list(com.holonplatform.core.query.QueryProjection<R> projection)
stream(QueryProjection) as a List, provided by a
Mono.list in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>R - Results typeprojection - Query projection (not null)Mono of the query results list, empty if nonecom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault <R> reactor.core.publisher.Mono<R> findOne(com.holonplatform.core.query.QueryProjection<R> projection)
throws com.holonplatform.core.query.QueryResults.QueryNonUniqueResultException
projection.
If more than one result is returned by the query, a QueryResults.QueryNonUniqueResultException is thrown.
findOne in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>R - Result typeprojection - Query projection (not null)Mono of the unique query result (empty if no result was returned)com.holonplatform.core.query.QueryResults.QueryNonUniqueResultException - Only one result expected but more than one was foundcom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault reactor.core.publisher.Mono<Long> countAll()
countAll in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>Mono with the total results count, 0 if nonecom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault reactor.core.publisher.Mono<Long> count()
countAll() renamed method.Mono with the total results count, 0 if nonecom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault <P extends com.holonplatform.core.property.Property> reactor.core.publisher.Flux<com.holonplatform.core.property.PropertyBox> stream(Iterable<P> properties)
Flux of query results as PropertyBox instances, using given
properties as projection.
The returned PropertyBox instances will contain the values of the properties specified in given
properties set.
stream in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>P - Property typeproperties - Property set to use as projection (not null)Flux of the query resultscom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault <P extends com.holonplatform.core.property.Property> reactor.core.publisher.Mono<com.holonplatform.core.property.PropertyBox> findOne(Iterable<P> properties) throws com.holonplatform.core.query.QueryResults.QueryNonUniqueResultException
PropertyBox instance, using given
properties as projection.
The returned PropertyBox instance will contain the values of the properties specified in given
properties set.
findOne in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>P - Property typeproperties - Property set to use as projection (not null)Mono of the unique query result (empty if no results)com.holonplatform.core.query.QueryResults.QueryNonUniqueResultException - Only one result expected but more than one was foundcom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault <P extends com.holonplatform.core.property.Property> reactor.core.publisher.Mono<List<com.holonplatform.core.property.PropertyBox>> list(Iterable<P> properties)
List of query results as PropertyBox instances using a Mono
representation, with given properties as query projection.
The returned PropertyBox instances will contain the values of the properties specified in given
properties set.
list in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>P - Property typeproperties - Property set to use as projection (not null)Mono of the query results Listcom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault reactor.core.publisher.Flux<com.holonplatform.core.property.PropertyBox> stream(com.holonplatform.core.property.Property... properties)
Flux of query results as PropertyBox instances, using given
properties as projection.
The returned PropertyBox instances will contain the values of the properties specified in given
properties set.
stream in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>properties - Property set to use as projection (not null)Flux of the query resultscom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault reactor.core.publisher.Mono<com.holonplatform.core.property.PropertyBox> findOne(com.holonplatform.core.property.Property... properties)
throws com.holonplatform.core.query.QueryResults.QueryNonUniqueResultException
PropertyBox instance using the Mono
representation, with given properties as query projection.
The returned PropertyBox instance will contain the values of the properties specified in given
properties set.
findOne in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>properties - Property set to use as projection (not null)Mono of the unique query result ( empty if no results)com.holonplatform.core.query.QueryResults.QueryNonUniqueResultException - Only one result expected but more than one was foundcom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurreddefault reactor.core.publisher.Mono<List<com.holonplatform.core.property.PropertyBox>> list(com.holonplatform.core.property.Property... properties)
Mono of the results List as PropertyBox instances, using
given properties as projection.
The returned PropertyBox instances will contain the values of the properties specified in given
properties set.
list in interface com.holonplatform.core.query.QueryProjectionOperations<reactor.core.publisher.Flux,reactor.core.publisher.Mono,reactor.core.publisher.Mono,reactor.core.publisher.Mono<Long>>properties - Property set to use as projection (not null)Mono of the query results Listcom.holonplatform.core.exceptions.DataAccessException - If a query execution error occurredCopyright © 2019 The Holon Platform. All rights reserved.