T
- Bean typepublic interface BeanQuery<T> extends BeanQueryBuilder<BeanQuery<T>>
Modifier and Type | Method and Description |
---|---|
long |
count()
Count all the results of a query.
|
default Optional<T> |
findOne()
Execute query and get an expected unique result bean.
|
default List<T> |
list()
|
Stream<T> |
stream()
Execute query and get a
Stream of bean query results. |
getQueryConfiguration, limit, offset, parameter, parameter, restrict
filter, filter, filter
sort, sort, sort
aggregate, aggregate, aggregate
withExpressionResolver
Stream<T> stream()
Stream
of bean query results.DataAccessException
- Error in query executiondefault List<T> list()
DataAccessException
- Error in query executiondefault Optional<T> findOne() throws QueryResults.QueryNonUniqueResultException
If more than one result is returned by the query, a QueryResults.QueryNonUniqueResultException
is thrown.
QueryResults.QueryNonUniqueResultException
- Only one result expected but more than one was foundDataAccessException
- Error in query executionlong count()
DataAccessException
- Error in query executionCopyright © 2019 The Holon Platform. All rights reserved.