T
- result typepublic interface Fetchable<T>
Fetchable
defines default projection methods for Query
implementations.
All Querydsl query implementations should implement this interface.Modifier and Type | Method and Description |
---|---|
List<T> |
fetch()
Get the projection as a typed List
|
long |
fetchCount()
Get the count of matched elements
|
T |
fetchFirst()
Get the first result of Get the projection or null if no result is found
|
T |
fetchOne()
Get the projection as a unique result or null if no result is found
|
QueryResults<T> |
fetchResults()
Get the projection in
QueryResults form |
com.mysema.commons.lang.CloseableIterator<T> |
iterate()
Get the projection as a typed closeable Iterator
|
T fetchFirst()
T fetchOne()
NonUniqueResultException
- if there is more than one matching resultcom.mysema.commons.lang.CloseableIterator<T> iterate()
QueryResults<T> fetchResults()
QueryResults
formlong fetchCount()
Copyright © 2007–2016 Querydsl. All rights reserved.