Class AbstractCollQuery<T,Q extends AbstractCollQuery<T,Q>>

java.lang.Object
com.querydsl.core.support.QueryBase<Q>
com.querydsl.core.support.FetchableQueryBase<T,Q>
com.querydsl.collections.AbstractCollQuery<T,Q>
Type Parameters:
T - result type
Q - concrete subtype
All Implemented Interfaces:
com.querydsl.core.Fetchable<T>, com.querydsl.core.FetchableQuery<T,Q>, com.querydsl.core.FilteredClause<Q>, com.querydsl.core.SimpleQuery<Q>
Direct Known Subclasses:
CollQuery

public abstract class AbstractCollQuery<T,Q extends AbstractCollQuery<T,Q>> extends com.querydsl.core.support.FetchableQueryBase<T,Q> implements com.querydsl.core.FetchableQuery<T,Q>
AbstractCollQuery provides a base class for Collection query implementations.
Author:
tiwe
See Also:
  • Field Summary

    Fields inherited from class com.querydsl.core.support.QueryBase

    MDC_PARAMETERS, MDC_QUERY, queryMixin
  • Constructor Summary

    Constructors
    Constructor
    Description
    AbstractCollQuery(com.querydsl.core.QueryMetadata metadata, QueryEngine queryEngine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <A> Q
    bind(com.querydsl.core.types.Path<A> entity, Iterable<? extends A> col)
    Bind the given collection to an already existing query source
     
    long
     
     
    com.querydsl.core.QueryResults<T>
     
    <A> Q
    from(com.querydsl.core.types.Path<A> entity, Iterable<? extends A> col)
    Add a query source
    protected com.querydsl.core.QueryMetadata
     
    protected QueryEngine
     
    groupBy(com.querydsl.core.types.Expression<?> e)
     
    groupBy(com.querydsl.core.types.Expression<?>... o)
     
    having(com.querydsl.core.types.Predicate e)
     
    having(com.querydsl.core.types.Predicate... e)
     
    <P> Q
    innerJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)
    Define an inner join from the Map typed path to the alias
    <P> Q
    innerJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias)
    Define an inner join from the Collection typed path to the alias
    com.mysema.commons.lang.CloseableIterator<T>
     
    <P> Q
    leftJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)
    Define a left join from the Map typed path to the alias
    <P> Q
    leftJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias)
    Define a left join from the Collection typed path to the alias
     

    Methods inherited from class com.querydsl.core.support.FetchableQueryBase

    equals, fetchFirst, transform, uniqueResult

    Methods inherited from class com.querydsl.core.support.QueryBase

    distinct, hashCode, limit, offset, orderBy, orderBy, restrict, set, toString, where, where

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.querydsl.core.Fetchable

    fetchFirst

    Methods inherited from interface com.querydsl.core.FetchableQuery

    select, select, transform

    Methods inherited from interface com.querydsl.core.FilteredClause

    where

    Methods inherited from interface com.querydsl.core.SimpleQuery

    distinct, limit, offset, orderBy, restrict, set
  • Constructor Details

    • AbstractCollQuery

      public AbstractCollQuery(com.querydsl.core.QueryMetadata metadata, QueryEngine queryEngine)
  • Method Details

    • fetchCount

      public long fetchCount()
      Specified by:
      fetchCount in interface com.querydsl.core.Fetchable<T>
    • getMetadata

      protected com.querydsl.core.QueryMetadata getMetadata()
    • from

      public <A> Q from(com.querydsl.core.types.Path<A> entity, Iterable<? extends A> col)
      Add a query source
      Type Parameters:
      A - type of expression
      Parameters:
      entity - Path for the source
      col - content of the source
      Returns:
      current object
    • bind

      public <A> Q bind(com.querydsl.core.types.Path<A> entity, Iterable<? extends A> col)
      Bind the given collection to an already existing query source
      Type Parameters:
      A - type of expression
      Parameters:
      entity - Path for the source
      col - content of the source
      Returns:
      current object
    • groupBy

      public Q groupBy(com.querydsl.core.types.Expression<?> e)
      Overrides:
      groupBy in class com.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
    • groupBy

      public Q groupBy(com.querydsl.core.types.Expression<?>... o)
      Overrides:
      groupBy in class com.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
    • having

      public Q having(com.querydsl.core.types.Predicate e)
      Overrides:
      having in class com.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
    • having

      public Q having(com.querydsl.core.types.Predicate... e)
      Overrides:
      having in class com.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
    • getQueryEngine

      protected QueryEngine getQueryEngine()
    • innerJoin

      public <P> Q innerJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias)
      Define an inner join from the Collection typed path to the alias
      Type Parameters:
      P - type of expression
      Parameters:
      target - target of the join
      alias - alias for the join target
      Returns:
      current object
    • innerJoin

      public <P> Q innerJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)
      Define an inner join from the Map typed path to the alias
      Type Parameters:
      P - type of expression
      Parameters:
      target - target of the join
      alias - alias for the join target
      Returns:
      current object
    • leftJoin

      public <P> Q leftJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias)
      Define a left join from the Collection typed path to the alias
      Type Parameters:
      P - type of expression
      Parameters:
      target - target of the join
      alias - alias for the join target
      Returns:
      current object
    • leftJoin

      public <P> Q leftJoin(com.querydsl.core.types.MapExpression<?,P> target, com.querydsl.core.types.Path<P> alias)
      Define a left join from the Map typed path to the alias
      Type Parameters:
      P - type of expression
      Parameters:
      target - target of the join
      alias - alias for the joint target
      Returns:
      current object
    • iterate

      public com.mysema.commons.lang.CloseableIterator<T> iterate()
      Specified by:
      iterate in interface com.querydsl.core.Fetchable<T>
    • stream

      public Stream<T> stream()
      Specified by:
      stream in interface com.querydsl.core.Fetchable<T>
    • fetch

      public List<T> fetch()
      Specified by:
      fetch in interface com.querydsl.core.Fetchable<T>
      Overrides:
      fetch in class com.querydsl.core.support.FetchableQueryBase<T,Q extends AbstractCollQuery<T,Q>>
    • fetchResults

      public com.querydsl.core.QueryResults<T> fetchResults()
      Specified by:
      fetchResults in interface com.querydsl.core.Fetchable<T>
    • fetchOne

      public T fetchOne() throws com.querydsl.core.NonUniqueResultException
      Specified by:
      fetchOne in interface com.querydsl.core.Fetchable<T>
      Throws:
      com.querydsl.core.NonUniqueResultException