| Package | Description |
|---|---|
| com.holonplatform.core.query |
| Modifier and Type | Method and Description |
|---|---|
default long |
QueryResults.count()
Count all the results of a query.
|
default <P extends Property> |
QueryResults.findOne(Iterable<P> properties)
Execute query and get an expected unique result as
PropertyBox using given properties as
projection. |
default Optional<PropertyBox> |
QueryResults.findOne(Property... properties)
Execute query and get an expected unique result as
PropertyBox using given properties as
projection. |
default <R> Optional<R> |
QueryResults.findOne(QueryProjection<R> projection)
Execute query and get an expected unique result using
projection to map result to required type. |
default <P extends Property> |
QueryResults.list(Iterable<P> properties)
|
default List<PropertyBox> |
QueryResults.list(Property... properties)
|
default <R> List<R> |
QueryResults.list(QueryProjection<R> projection)
Convenience method to obtain query results
QueryResults.stream(QueryProjection) as a List |
default <P extends Property> |
QueryResults.stream(Iterable<P> properties)
Execute query and get a
Stream of query results as PropertyBox using given
properties as projection. |
default Stream<PropertyBox> |
QueryResults.stream(Property... properties)
Execute query and get a
Stream of query results as PropertyBox using given
properties as projection. |
<R> Stream<R> |
QueryResults.stream(QueryProjection<R> projection)
Execute query and get a
Stream of query results using given projection to map results to
required type. |
Copyright © 2017 The Holon Platform. All rights reserved.