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 type
Q - 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
  • Constructor Details

    • FetchableQueryBase

      public FetchableQueryBase(QueryMixin<Q> queryMixin)
  • Method Details

    • fetch

      public List<T> fetch()
      Description copied from interface: Fetchable
      Get the projection as a typed List
      Specified by:
      fetch in interface Fetchable<T>
      Returns:
      results in list form
    • fetchFirst

      public final T fetchFirst()
      Description copied from interface: Fetchable
      Get the first result of Get the projection or null if no result is found
      Specified by:
      fetchFirst in interface Fetchable<T>
      Returns:
      first result or null
    • transform

      public <T> T transform(ResultTransformer<T> transformer)
    • uniqueResult

      @Nullable protected <T> T uniqueResult(com.mysema.commons.lang.CloseableIterator<T> it)
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class QueryBase<Q extends FetchableQueryBase<T,Q>>