T
- result typeQ
- concrete subtypepublic abstract class FetchableQueryBase<T,Q extends FetchableQueryBase<T,Q>> extends QueryBase<Q> implements Fetchable<T>
FetchableQueryBase
extends the QueryBase
class to provide default
implementations of the methods of the Fetchable
interfaceMDC_PARAMETERS, MDC_QUERY, queryMixin
Constructor and Description |
---|
FetchableQueryBase(QueryMixin<Q> queryMixin) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
List<T> |
fetch()
Get the projection as a typed List
|
T |
fetchFirst()
Get the first result of Get the projection or null if no result is found
|
<T> T |
transform(ResultTransformer<T> transformer) |
protected <T> T |
uniqueResult(com.mysema.commons.lang.CloseableIterator<T> it) |
distinct, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, toString, where, where
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
fetchCount, fetchOne, fetchResults, iterate
public FetchableQueryBase(QueryMixin<Q> queryMixin)
public List<T> fetch()
Fetchable
public final T fetchFirst()
Fetchable
fetchFirst
in interface Fetchable<T>
public <T> T transform(ResultTransformer<T> transformer)
@Nullable protected <T> T uniqueResult(com.mysema.commons.lang.CloseableIterator<T> it)
Copyright © 2007–2016 Querydsl. All rights reserved.