Class AbstractBlazeJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>

java.lang.Object
com.querydsl.core.support.QueryBase<Q>
com.querydsl.core.support.FetchableQueryBase<T,​Q>
com.querydsl.core.support.FetchableSubQueryBase<T,​Q>
com.querydsl.jpa.JPAQueryBase<T,​Q>
com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q>
com.blazebit.persistence.querydsl.AbstractBlazeJPAQuery<T,​Q>
Type Parameters:
T - Query result type
Q - Concrete query builder type
All Implemented Interfaces:
ExtendedFetchable<T>, JPQLNextQuery<T,​Q>, com.querydsl.core.Fetchable<T>, com.querydsl.core.FetchableQuery<T,​com.querydsl.jpa.JPQLQuery<T>>, com.querydsl.core.FilteredClause<com.querydsl.jpa.JPQLQuery<T>>, com.querydsl.core.Query<com.querydsl.jpa.JPQLQuery<T>>, com.querydsl.core.SimpleQuery<com.querydsl.jpa.JPQLQuery<T>>, com.querydsl.core.support.ExtendedSubQuery<T>, com.querydsl.core.types.Expression<T>, com.querydsl.core.types.SubQueryExpression<T>, com.querydsl.jpa.JPQLQuery<T>, Serializable
Direct Known Subclasses:
BlazeJPAQuery

public abstract class AbstractBlazeJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
extends com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q>
implements JPQLNextQuery<T,​Q>, ExtendedFetchable<T>
Abstract base class for JPA API based implementations of the JPQLQuery interface
Since:
1.5.0
Author:
Jan-Willem Gmelig Meyling
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected Binds<T> binds  
    protected boolean cachable  
    protected CriteriaBuilderFactory criteriaBuilderFactory  
    static com.querydsl.core.JoinFlag LATERAL
    Lateral join flag.

    Fields inherited from class com.querydsl.jpa.impl.AbstractJPAQuery

    entityManager, flushMode, hints, lockMode, projection, queryHandler

    Fields inherited from class com.querydsl.jpa.JPAQueryBase

    queryMixin

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

    MDC_PARAMETERS, MDC_QUERY
  • Constructor Summary

    Constructors 
    Constructor Description
    AbstractBlazeJPAQuery​(CriteriaBuilderFactory criteriaBuilderFactory)  
    AbstractBlazeJPAQuery​(javax.persistence.EntityManager em, CriteriaBuilderFactory criteriaBuilderFactory)  
    AbstractBlazeJPAQuery​(javax.persistence.EntityManager em, com.querydsl.core.QueryMetadata metadata, CriteriaBuilderFactory criteriaBuilderFactory)  
    AbstractBlazeJPAQuery​(javax.persistence.EntityManager em, com.querydsl.jpa.JPQLTemplates templates, CriteriaBuilderFactory criteriaBuilderFactory)  
    AbstractBlazeJPAQuery​(javax.persistence.EntityManager em, com.querydsl.jpa.JPQLTemplates templates, com.querydsl.core.QueryMetadata metadata, CriteriaBuilderFactory criteriaBuilderFactory)  
  • Method Summary

    Modifier and Type Method Description
    <U> Q bind​(com.querydsl.core.types.Path<? super U> path, com.querydsl.core.types.Expression<? extends U> expression)
    Bind a CTE attribute to a select expression.
    protected void clone​(Q query)  
    javax.persistence.Query createQuery()  
    protected javax.persistence.Query createQuery​(com.querydsl.core.QueryModifiers modifiers, boolean forCount)  
    protected JPQLNextSerializer createSerializer()  
    <RT> SetExpression<RT> except​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
    Creates an except expression for the given subqueries.
    <RT> SetExpression<RT> except​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    Creates an except expression for the given subqueries
    <RT> SetExpression<RT> exceptAll​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
    Creates an except expression for the given subqueries.
    <RT> SetExpression<RT> exceptAll​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    Creates an except expression for the given subqueries
    long fetchCount()  
    T fetchOne()  
    PagedList<T> fetchPage​(int firstResult, int maxResults)
    Execute the query and return the result as a type PagedList.
    PagedList<T> fetchPage​(KeysetPage keysetPage, int firstResult, int maxResults)
    Execute the query and return the result as a type PagedList.
    com.querydsl.core.QueryResults<T> fetchResults()
    Deprecated.
    Blaze-Persistence has better ways for paginated result sets, which are also optimized to use a single query.
    <X> Q from​(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias)
    Add sources to this query
    <X> Q fromIdentifiableValues​(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)
    Select from a set of values using the VALUES clause.
    <X> Q fromIdentifiableValues​(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)
    Select from a set of values using the VALUES clause.
    <X> Q fromValues​(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)
    Select from a set of values using the VALUES clause.
    <X> Q fromValues​(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)
    Select from a set of values using the VALUES clause.
    <P> Q fullJoin​(com.querydsl.core.types.CollectionExpression<?,​P> target)
    Create a full join with the given target.
    <P> Q fullJoin​(com.querydsl.core.types.CollectionExpression<?,​P> target, com.querydsl.core.types.Path<P> alias)
    Create a full join with the given target.
    <P> Q fullJoin​(com.querydsl.core.types.EntityPath<P> target)
    Create a full join with the given target.
    <P> Q fullJoin​(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)
    Create a full join with the given target.
    <P> Q fullJoin​(com.querydsl.core.types.MapExpression<?,​P> target)
    Create a full join with the given target.
    <P> Q fullJoin​(com.querydsl.core.types.MapExpression<?,​P> target, com.querydsl.core.types.Path<P> alias)
    Create a full join with the given target.
    <X> Q fullJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
    Adds a full join to the given target.
    protected FullQueryBuilder<T,​?> getFullQueryBuilder​(com.querydsl.core.QueryModifiers modifiers)  
    protected Queryable<T,​?> getQueryable​(com.querydsl.core.QueryModifiers modifiers)  
    String getQueryString()
    Get the query string.
    <X> Q innerJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
    Adds a inner join to the given target.
    <RT> SetExpression<RT> intersect​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
    Creates an intersect expression for the given subqueries.
    <RT> SetExpression<RT> intersect​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    Creates an intersect expression for the given subqueries.
    <RT> SetExpression<RT> intersectAll​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
    Creates an intersect expression for the given subqueries.
    <RT> SetExpression<RT> intersectAll​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    Creates an intersect expression for the given subqueries
    Q lateral()
    Mark the last join as a lateral join.
    <X> Q leftJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
    Adds a left join to the given subquery target.
    <X> Q rightJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
    Adds a right join to the given target.
    protected com.querydsl.jpa.JPQLSerializer serialize​(boolean forCountRow)  
    Q setCacheable​(boolean cacheable)  
    <RT> SetExpression<RT> setOperation​(JPQLNextOps operator, boolean wrapSets, List<com.querydsl.core.types.SubQueryExpression<RT>> sq)  
    <RT> SetExpression<RT> union​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
    Creates an union expression for the given subqueries.
    <RT> SetExpression<RT> union​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    Creates an union expression for the given subqueries.
    <RT> SetExpression<RT> unionAll​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
    Creates an union expression for the given subqueries.
    <RT> SetExpression<RT> unionAll​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    Creates an union expression for the given subqueries.
    Q window​(NamedWindow namedWindow)
    Add a named window to this query.
    WithBuilder<Q> with​(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)
    Register a common table expression (CTE).
    <X> Q with​(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)
    Register a common table expression (CTE).
    WithBuilder<Q> withRecursive​(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)
    Register a recursive common table expression (CTE).
    <X> Q withRecursive​(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)
    Register a recursive common table expression (CTE).

    Methods inherited from class com.querydsl.jpa.impl.AbstractJPAQuery

    cleanupMDC, clone, clone, clone, fetch, iterate, logQuery, reset, setFlushMode, setHint, setLockMode

    Methods inherited from class com.querydsl.jpa.JPAQueryBase

    fetchAll, fetchJoin, from, from, from, getTemplates, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, on, on, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, serialize, toString

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

    accept, contains, contains, eq, eq, exists, getMetadata, getType, goe, goe, gt, gt, hashCode, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists

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

    equals, fetchFirst, transform, uniqueResult

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

    distinct, groupBy, groupBy, having, having, limit, offset, orderBy, orderBy, restrict, set, where, where

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.querydsl.core.types.Expression

    accept, getType

    Methods inherited from interface com.querydsl.core.support.ExtendedSubQuery

    contains, contains, eq, eq, exists, goe, goe, gt, gt, in, in, isNotNull, isNull, loe, loe, lt, lt, ne, ne, notExists

    Methods inherited from interface com.querydsl.core.Fetchable

    fetch, fetchFirst, iterate

    Methods inherited from interface com.querydsl.core.FetchableQuery

    transform

    Methods inherited from interface com.querydsl.jpa.JPQLQuery

    select, select

    Methods inherited from interface com.querydsl.core.types.SubQueryExpression

    getMetadata
  • Field Details

  • Constructor Details

  • Method Details

    • createSerializer

      protected JPQLNextSerializer createSerializer()
      Overrides:
      createSerializer in class com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
    • fromValues

      public <X> Q fromValues​(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)
      Description copied from interface: JPQLNextQuery
      Select from a set of values using the VALUES clause.
      Specified by:
      fromValues in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - The element type
      Parameters:
      path - Type of values
      elements - The elements
      Returns:
      this query
    • fromIdentifiableValues

      public <X> Q fromIdentifiableValues​(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)
      Description copied from interface: JPQLNextQuery
      Select from a set of values using the VALUES clause.
      Specified by:
      fromIdentifiableValues in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - The element type
      Parameters:
      path - Type of values
      elements - The elements
      Returns:
      this query
    • fromValues

      public <X> Q fromValues​(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)
      Description copied from interface: JPQLNextQuery
      Select from a set of values using the VALUES clause.
      Specified by:
      fromValues in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - The element type
      Parameters:
      path - Type of values
      alias - The alias from which the values can be referenced
      elements - The elements
      Returns:
      this query
    • fromIdentifiableValues

      public <X> Q fromIdentifiableValues​(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements)
      Description copied from interface: JPQLNextQuery
      Select from a set of values using the VALUES clause.
      Specified by:
      fromIdentifiableValues in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - The element type
      Parameters:
      path - Type of values
      alias - The alias from which the values can be referenced
      elements - The elements
      Returns:
      this query
    • with

      public WithBuilder<Q> with​(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)
      Description copied from interface: JPQLNextQuery
      Register a common table expression (CTE). Returns a builder through which the CTE can be provided as SubQueryExpression.
      Specified by:
      with in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Parameters:
      alias - The alias for the CTE
      columns - The columns for the CTE
      Returns:
      this query
    • with

      public <X> Q with​(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)
      Description copied from interface: JPQLNextQuery
      Register a common table expression (CTE). Analog to ProjectableSQLQuery.with(Path, SubQueryExpression).
      Specified by:
      with in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - CTE type
      Parameters:
      alias - The alias for the CTE
      o - The subquery expression
      Returns:
      this query
    • withRecursive

      public <X> Q withRecursive​(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o)
      Description copied from interface: JPQLNextQuery
      Register a recursive common table expression (CTE). Analog to ProjectableSQLQuery.withRecursive(Path, SubQueryExpression).
      Specified by:
      withRecursive in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - CTE type
      Parameters:
      alias - The alias for the CTE
      o - The subquery expression
      Returns:
      this query
    • withRecursive

      public WithBuilder<Q> withRecursive​(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns)
      Description copied from interface: JPQLNextQuery
      Register a recursive common table expression (CTE). Returns a builder through which the CTE can be provided as SubQueryExpression.
      Specified by:
      withRecursive in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Parameters:
      alias - The alias for the CTE
      columns - The columns for the CTE
      Returns:
      this query
    • createQuery

      public javax.persistence.Query createQuery()
      Overrides:
      createQuery in class com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
    • createQuery

      protected javax.persistence.Query createQuery​(@Nullable com.querydsl.core.QueryModifiers modifiers, boolean forCount)
    • fetchPage

      public PagedList<T> fetchPage​(int firstResult, int maxResults)
      Description copied from interface: ExtendedFetchable
      Execute the query and return the result as a type PagedList.
      Specified by:
      fetchPage in interface ExtendedFetchable<T>
      Parameters:
      firstResult - The position of the first result to retrieve, numbered from 0
      maxResults - The maximum number of results to retrieve
      Returns:
      The paged list of the results
      See Also:
      FullQueryBuilder.page(int, int)
    • fetchPage

      public PagedList<T> fetchPage​(KeysetPage keysetPage, int firstResult, int maxResults)
      Description copied from interface: ExtendedFetchable
      Execute the query and return the result as a type PagedList.
      Specified by:
      fetchPage in interface ExtendedFetchable<T>
      Parameters:
      keysetPage - The key set from a previous result, may be null
      firstResult - The position of the first result to retrieve, numbered from 0
      maxResults - The maximum number of results to retrieve
      Returns:
      The paged list of the results
      See Also:
      FullQueryBuilder.page(KeysetPage, int, int)
    • getQueryString

      public String getQueryString()
      Description copied from interface: ExtendedFetchable
      Get the query string.
      Specified by:
      getQueryString in interface ExtendedFetchable<T>
      Returns:
      the query string
      See Also:
      Queryable.getQueryString()
    • getFullQueryBuilder

      protected FullQueryBuilder<T,​?> getFullQueryBuilder​(@Nullable com.querydsl.core.QueryModifiers modifiers)
    • getQueryable

      protected Queryable<T,​?> getQueryable​(@Nullable com.querydsl.core.QueryModifiers modifiers)
    • clone

      protected void clone​(Q query)
      Overrides:
      clone in class com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
    • fetchCount

      public long fetchCount()
      Specified by:
      fetchCount in interface com.querydsl.core.Fetchable<T>
      Overrides:
      fetchCount in class com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
    • fetchResults

      @Deprecated public com.querydsl.core.QueryResults<T> fetchResults()
      Deprecated.
      Blaze-Persistence has better ways for paginated result sets, which are also optimized to use a single query.
      Get the projection in QueryResults form
      Specified by:
      fetchResults in interface com.querydsl.core.Fetchable<T>
      Overrides:
      fetchResults in class com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Returns:
      results
      See Also:
      fetchPage(int, int), fetchPage(KeysetPage, int, int)
    • fetchOne

      @Nullable public T fetchOne() throws com.querydsl.core.NonUniqueResultException
      Specified by:
      fetchOne in interface com.querydsl.core.Fetchable<T>
      Overrides:
      fetchOne in class com.querydsl.jpa.impl.AbstractJPAQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Throws:
      com.querydsl.core.NonUniqueResultException
    • fullJoin

      public <P> Q fullJoin​(com.querydsl.core.types.CollectionExpression<?,​P> target)
      Description copied from interface: JPQLNextQuery
      Create a full join with the given target. Analog to SQLCommonQuery.fullJoin(EntityPath). Use JPQLNextQuery.fetchJoin() to add the fetchJoin parameter to this join. Use JPQLNextQuery.lateral() to use a lateral join for this join.
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      P - The type of the join target
      Parameters:
      target - The join target
      Returns:
      this query
    • fullJoin

      public <P> Q fullJoin​(com.querydsl.core.types.CollectionExpression<?,​P> target, com.querydsl.core.types.Path<P> alias)
      Description copied from interface: JPQLNextQuery
      Create a full join with the given target. Analog to SQLCommonQuery.fullJoin(EntityPath). Use JPQLNextQuery.fetchJoin() to add the fetchJoin parameter to this join. Use JPQLNextQuery.lateral() to use a lateral join for this join.
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      P - The type of the join target
      Parameters:
      target - The join target
      alias - alias
      Returns:
      the current object
    • fullJoin

      public <P> Q fullJoin​(com.querydsl.core.types.EntityPath<P> target)
      Description copied from interface: JPQLNextQuery
      Create a full join with the given target. Analog to SQLCommonQuery.fullJoin(EntityPath). Use JPQLNextQuery.fetchJoin() to add the fetchJoin parameter to this join. Use JPQLNextQuery.lateral() to use a lateral join for this join.
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      P - The type of the join target
      Parameters:
      target - The join target
      Returns:
      the current object
    • fullJoin

      public <P> Q fullJoin​(com.querydsl.core.types.EntityPath<P> target, com.querydsl.core.types.Path<P> alias)
      Description copied from interface: JPQLNextQuery
      Create a full join with the given target. Analog to SQLCommonQuery.fullJoin(EntityPath). Use JPQLNextQuery.fetchJoin() to add the fetchJoin parameter to this join. Use JPQLNextQuery.lateral() to use a lateral join for this join.
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      P - The type of the join target
      Parameters:
      target - The join target
      alias - The alias under which the join can be referenced
      Returns:
      the current object
    • fullJoin

      public <P> Q fullJoin​(com.querydsl.core.types.MapExpression<?,​P> target)
      Description copied from interface: JPQLNextQuery
      Create a full join with the given target. Analog to SQLCommonQuery.fullJoin(EntityPath). Use JPQLNextQuery.fetchJoin() to add the fetchJoin parameter to this join. Use JPQLNextQuery.lateral() to use a lateral join for this join.
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      P - The type of the join target
      Parameters:
      target - The join target
      Returns:
      the current object
    • fullJoin

      public <P> Q fullJoin​(com.querydsl.core.types.MapExpression<?,​P> target, com.querydsl.core.types.Path<P> alias)
      Description copied from interface: JPQLNextQuery
      Create a full join with the given target. Analog to SQLCommonQuery.fullJoin(EntityPath). Use JPQLNextQuery.fetchJoin() to add the fetchJoin parameter to this join. Use JPQLNextQuery.lateral() to use a lateral join for this join.
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      P - The type of the join target
      Parameters:
      target - The join target
      alias - The alias under which the join can be referenced
      Returns:
      the current object
    • from

      public <X> Q from​(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias)
      Description copied from interface: JPQLNextQuery
      Add sources to this query
      Specified by:
      from in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - Expression type
      Parameters:
      subQueryExpression - Subquery expression
      alias - The alias for the subquery from which it can be referenced in the outer query
      Returns:
      the current object
    • leftJoin

      public <X> Q leftJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
      Description copied from interface: JPQLNextQuery
      Adds a left join to the given subquery target. Analog to SQLCommonQuery.leftJoin(SubQueryExpression, Path).
      Specified by:
      leftJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - Expression type
      Parameters:
      o - subquery
      alias - alias
      Returns:
      the current object
    • lateral

      public Q lateral()
      Description copied from interface: JPQLNextQuery
      Mark the last join as a lateral join.
      Specified by:
      lateral in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Returns:
      this query
    • rightJoin

      public <X> Q rightJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
      Description copied from interface: JPQLNextQuery
      Adds a right join to the given target. Analog to SQLCommonQuery.rightJoin(SubQueryExpression, Path).
      Specified by:
      rightJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - Expression type
      Parameters:
      o - subquery
      alias - alias
      Returns:
      the current object
    • fullJoin

      public <X> Q fullJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
      Description copied from interface: JPQLNextQuery
      Adds a full join to the given target. Analog to SQLCommonQuery.fullJoin(SubQueryExpression, Path).
      Specified by:
      fullJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - Expression type
      Parameters:
      o - subquery
      alias - alias
      Returns:
      the current object
    • innerJoin

      public <X> Q innerJoin​(com.querydsl.core.types.SubQueryExpression<X> o, com.querydsl.core.types.Path<X> alias)
      Description copied from interface: JPQLNextQuery
      Adds a inner join to the given target. Analog to SQLCommonQuery.innerJoin(SubQueryExpression, Path).
      Specified by:
      innerJoin in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      X - Expression type
      Parameters:
      o - subquery
      alias - alias
      Returns:
      the current object
    • setCacheable

      public Q setCacheable​(boolean cacheable)
    • serialize

      protected com.querydsl.jpa.JPQLSerializer serialize​(boolean forCountRow)
      Overrides:
      serialize in class com.querydsl.jpa.JPAQueryBase<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
    • setOperation

      public <RT> SetExpression<RT> setOperation​(JPQLNextOps operator, boolean wrapSets, List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
    • union

      public <RT> SetExpression<RT> union​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
      Description copied from interface: JPQLNextQuery
      Creates an union expression for the given subqueries. Analog to ProjectableSQLQuery.union(List).
      Specified by:
      union in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • unionAll

      public <RT> SetExpression<RT> unionAll​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
      Description copied from interface: JPQLNextQuery
      Creates an union expression for the given subqueries. Analog to ProjectableSQLQuery.unionAll(List).
      Specified by:
      unionAll in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • intersect

      public <RT> SetExpression<RT> intersect​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
      Description copied from interface: JPQLNextQuery
      Creates an intersect expression for the given subqueries.
      Specified by:
      intersect in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
      See Also:
      JPQLNextQuery.union(List)
    • intersectAll

      public <RT> SetExpression<RT> intersectAll​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
      Description copied from interface: JPQLNextQuery
      Creates an intersect expression for the given subqueries
      Specified by:
      intersectAll in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
      See Also:
      JPQLNextQuery.union(List)
    • except

      public <RT> SetExpression<RT> except​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
      Description copied from interface: JPQLNextQuery
      Creates an except expression for the given subqueries
      Specified by:
      except in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
      See Also:
      JPQLNextQuery.union(List)
    • exceptAll

      public <RT> SetExpression<RT> exceptAll​(List<com.querydsl.core.types.SubQueryExpression<RT>> sq)
      Description copied from interface: JPQLNextQuery
      Creates an except expression for the given subqueries
      Specified by:
      exceptAll in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
      See Also:
      JPQLNextQuery.union(List)
    • union

      @SafeVarargs public final <RT> SetExpression<RT> union​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
      Description copied from interface: JPQLNextQuery
      Creates an union expression for the given subqueries. Analog to ProjectableSQLQuery.union(List).
      Specified by:
      union in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • unionAll

      @SafeVarargs public final <RT> SetExpression<RT> unionAll​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
      Description copied from interface: JPQLNextQuery
      Creates an union expression for the given subqueries. Analog to ProjectableSQLQuery.unionAll(List).
      Specified by:
      unionAll in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • intersect

      @SafeVarargs public final <RT> SetExpression<RT> intersect​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
      Description copied from interface: JPQLNextQuery
      Creates an intersect expression for the given subqueries.
      Specified by:
      intersect in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • intersectAll

      @SafeVarargs public final <RT> SetExpression<RT> intersectAll​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
      Description copied from interface: JPQLNextQuery
      Creates an intersect expression for the given subqueries.
      Specified by:
      intersectAll in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • except

      @SafeVarargs public final <RT> SetExpression<RT> except​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
      Description copied from interface: JPQLNextQuery
      Creates an except expression for the given subqueries.
      Specified by:
      except in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • exceptAll

      @SafeVarargs public final <RT> SetExpression<RT> exceptAll​(com.querydsl.core.types.SubQueryExpression<RT>... sq)
      Description copied from interface: JPQLNextQuery
      Creates an except expression for the given subqueries.
      Specified by:
      exceptAll in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Type Parameters:
      RT - set operation type
      Parameters:
      sq - subqueries
      Returns:
      the set operation result
    • bind

      public <U> Q bind​(com.querydsl.core.types.Path<? super U> path, com.querydsl.core.types.Expression<? extends U> expression)
      Bind a CTE attribute to a select expression.
      Type Parameters:
      U - Attribute type
      Parameters:
      path - Attribute path
      expression - Expression to bind the path to
      Returns:
      this query
    • window

      public Q window​(NamedWindow namedWindow)
      Description copied from interface: JPQLNextQuery
      Add a named window to this query.
      Specified by:
      window in interface JPQLNextQuery<T,​Q extends AbstractBlazeJPAQuery<T,​Q>>
      Parameters:
      namedWindow - The window definition to add
      Returns:
      this query