Package com.querydsl.core.support
Class FetchableQueryBase<T,Q extends FetchableQueryBase<T,Q>>
java.lang.Object
com.querydsl.core.support.QueryBase<Q>
com.querydsl.core.support.FetchableQueryBase<T,Q>
- Type Parameters:
T- result typeQ- concrete subtype
- All Implemented Interfaces:
Fetchable<T>
- Direct Known Subclasses:
FetchableSubQueryBase
public 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 interface- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY, queryMixin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfetch()Get the projection as a typed Listfinal TGet the first result of Get the projection or null if no result is found<T> Ttransform(ResultTransformer<T> transformer) protected <T> TuniqueResult(com.mysema.commons.lang.CloseableIterator<T> it) Methods inherited from class com.querydsl.core.support.QueryBase
distinct, groupBy, groupBy, hashCode, having, having, limit, offset, orderBy, orderBy, restrict, set, toString, where, whereMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.Fetchable
fetchCount, fetchOne, fetchResults, iterate, stream
-
Constructor Details
-
FetchableQueryBase
-
-
Method Details
-
fetch
Description copied from interface:FetchableGet the projection as a typed List -
fetchFirst
Description copied from interface:FetchableGet the first result of Get the projection or null if no result is found- Specified by:
fetchFirstin interfaceFetchable<T>- Returns:
- first result or null
-
transform
-
uniqueResult
@Nullable protected <T> T uniqueResult(com.mysema.commons.lang.CloseableIterator<T> it) -
equals
-