E - the generic type of the entity to fetch.public interface FeatureFetch<E> extends StatementFeature
FeatureFetch is for a regular SelectStatement to fetch and
retrieve results.SelectStatement| Modifier and Type | Method and Description |
|---|---|
default List<E> |
fetch()
Executes this query to fetch all matching results.
|
default long |
fetchCount()
Executes
queryCount() and returns the result. |
default E |
fetchFirst()
Executes
queryFirst() and returns the result. |
default E |
fetchFirstRequired()
Executes
queryFirst() and returns the result. |
default E |
fetchOne()
Executes
queryOne() and returns the result. |
default E |
fetchOneRequired()
Executes this query to fetch a unique result.
|
ListQuery<E> |
query() |
NumberQuery<Long> |
queryCount() |
SingleQuery<E> |
queryFirst() |
SingleQuery<E> |
queryOne() |
ListQuery<E> query()
ListQuery to fetch all matching results with a regular SELECT.default List<E> fetch()
List with all matching results. Will be an empty List if no results are
found.SingleQuery<E> queryFirst()
SingleQuery to fetch the first matching results with a SELECT.default E fetchFirst()
queryFirst() and returns the result.null if no result is found.default E fetchFirstRequired() throws ObjectNotFoundException
queryFirst() and returns the result.ObjectNotFoundException - if the query had no match.SingleQuery<E> queryOne()
SingleQuery to fetch a single unique matching result with a SELECT. The Query
execution will fail with an exception if it matches multiple result objects. It can
only have a single or an empty (null) result.default E fetchOne()
queryOne() and returns the result.null if no result is found.default E fetchOneRequired() throws ObjectNotFoundException
ObjectNotFoundException - if the query had no match.NumberQuery<Long> queryCount()
NumberQuery to fetch the number of matching objects with a SELECT COUNT.default long fetchCount()
queryCount() and returns the result.Copyright © 2001–2016 mmm-Team. All rights reserved.