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 typeQ
- 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. -
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 subquerieslong
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 theVALUES
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 theVALUES
clause.<X> Q
fromValues(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements)
Select from a set of values using theVALUES
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 theVALUES
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 subqueriesQ
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.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.blazebit.persistence.querydsl.JPQLNextQuery
distinct, fetchAll, fetchJoin, from, from, groupBy, having, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, innerJoin, join, join, join, join, join, join, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, leftJoin, limit, offset, on, orderBy, restrict, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, rightJoin, set, where
-
Field Details
-
LATERAL
public static final com.querydsl.core.JoinFlag LATERALLateral join flag. Can be added usingQueryMetadata.addJoinFlag(JoinFlag)
. Used internally for implementinglateral()
. -
criteriaBuilderFactory
-
cachable
protected boolean cachable -
binds
-
-
Constructor Details
-
AbstractBlazeJPAQuery
-
AbstractBlazeJPAQuery
public AbstractBlazeJPAQuery(javax.persistence.EntityManager em, CriteriaBuilderFactory criteriaBuilderFactory) -
AbstractBlazeJPAQuery
public AbstractBlazeJPAQuery(javax.persistence.EntityManager em, com.querydsl.core.QueryMetadata metadata, CriteriaBuilderFactory criteriaBuilderFactory) -
AbstractBlazeJPAQuery
public AbstractBlazeJPAQuery(javax.persistence.EntityManager em, com.querydsl.jpa.JPQLTemplates templates, CriteriaBuilderFactory criteriaBuilderFactory) -
AbstractBlazeJPAQuery
public AbstractBlazeJPAQuery(javax.persistence.EntityManager em, com.querydsl.jpa.JPQLTemplates templates, com.querydsl.core.QueryMetadata metadata, CriteriaBuilderFactory criteriaBuilderFactory)
-
-
Method Details
-
createSerializer
- Overrides:
createSerializer
in classcom.querydsl.jpa.impl.AbstractJPAQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
-
fromValues
Description copied from interface:JPQLNextQuery
Select from a set of values using theVALUES
clause.- Specified by:
fromValues
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- The element type- Parameters:
path
- Type of valueselements
- 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 theVALUES
clause.- Specified by:
fromIdentifiableValues
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- The element type- Parameters:
path
- Type of valueselements
- 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 theVALUES
clause.- Specified by:
fromValues
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- The element type- Parameters:
path
- Type of valuesalias
- The alias from which the values can be referencedelements
- 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 theVALUES
clause.- Specified by:
fromIdentifiableValues
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- The element type- Parameters:
path
- Type of valuesalias
- The alias from which the values can be referencedelements
- 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 asSubQueryExpression
.- Specified by:
with
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Parameters:
alias
- The alias for the CTEcolumns
- 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 toProjectableSQLQuery.with(Path, SubQueryExpression)
.- Specified by:
with
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- CTE type- Parameters:
alias
- The alias for the CTEo
- 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 toProjectableSQLQuery.withRecursive(Path, SubQueryExpression)
.- Specified by:
withRecursive
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- CTE type- Parameters:
alias
- The alias for the CTEo
- 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 asSubQueryExpression
.- Specified by:
withRecursive
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Parameters:
alias
- The alias for the CTEcolumns
- The columns for the CTE- Returns:
- this query
-
createQuery
public javax.persistence.Query createQuery()- Overrides:
createQuery
in classcom.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
Description copied from interface:ExtendedFetchable
Execute the query and return the result as a type PagedList.- Specified by:
fetchPage
in interfaceExtendedFetchable<T>
- Parameters:
firstResult
- The position of the first result to retrieve, numbered from 0maxResults
- The maximum number of results to retrieve- Returns:
- The paged list of the results
- See Also:
FullQueryBuilder.page(int, int)
-
fetchPage
Description copied from interface:ExtendedFetchable
Execute the query and return the result as a type PagedList.- Specified by:
fetchPage
in interfaceExtendedFetchable<T>
- Parameters:
keysetPage
- The key set from a previous result, may be nullfirstResult
- The position of the first result to retrieve, numbered from 0maxResults
- The maximum number of results to retrieve- Returns:
- The paged list of the results
- See Also:
FullQueryBuilder.page(KeysetPage, int, int)
-
getQueryString
Description copied from interface:ExtendedFetchable
Get the query string.- Specified by:
getQueryString
in interfaceExtendedFetchable<T>
- Returns:
- the query string
- See Also:
Queryable.getQueryString()
-
getFullQueryBuilder
protected FullQueryBuilder<T,?> getFullQueryBuilder(@Nullable com.querydsl.core.QueryModifiers modifiers) -
getQueryable
-
clone
- Overrides:
clone
in classcom.querydsl.jpa.impl.AbstractJPAQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
-
fetchCount
public long fetchCount() -
fetchResults
Deprecated.Blaze-Persistence has better ways for paginated result sets, which are also optimized to use a single query.Get the projection inQueryResults
form- Specified by:
fetchResults
in interfacecom.querydsl.core.Fetchable<T>
- Overrides:
fetchResults
in classcom.querydsl.jpa.impl.AbstractJPAQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Returns:
- results
- See Also:
fetchPage(int, int)
,fetchPage(KeysetPage, int, int)
-
fetchOne
-
fullJoin
Description copied from interface:JPQLNextQuery
Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath)
. UseJPQLNextQuery.fetchJoin()
to add the fetchJoin parameter to this join. UseJPQLNextQuery.lateral()
to use a lateral join for this join.- Specified by:
fullJoin
in interfaceJPQLNextQuery<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 toSQLCommonQuery.fullJoin(EntityPath)
. UseJPQLNextQuery.fetchJoin()
to add the fetchJoin parameter to this join. UseJPQLNextQuery.lateral()
to use a lateral join for this join.- Specified by:
fullJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
P
- The type of the join target- Parameters:
target
- The join targetalias
- alias- Returns:
- the current object
-
fullJoin
Description copied from interface:JPQLNextQuery
Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath)
. UseJPQLNextQuery.fetchJoin()
to add the fetchJoin parameter to this join. UseJPQLNextQuery.lateral()
to use a lateral join for this join.- Specified by:
fullJoin
in interfaceJPQLNextQuery<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 toSQLCommonQuery.fullJoin(EntityPath)
. UseJPQLNextQuery.fetchJoin()
to add the fetchJoin parameter to this join. UseJPQLNextQuery.lateral()
to use a lateral join for this join.- Specified by:
fullJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
P
- The type of the join target- Parameters:
target
- The join targetalias
- The alias under which the join can be referenced- Returns:
- the current object
-
fullJoin
Description copied from interface:JPQLNextQuery
Create a full join with the given target. Analog toSQLCommonQuery.fullJoin(EntityPath)
. UseJPQLNextQuery.fetchJoin()
to add the fetchJoin parameter to this join. UseJPQLNextQuery.lateral()
to use a lateral join for this join.- Specified by:
fullJoin
in interfaceJPQLNextQuery<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 toSQLCommonQuery.fullJoin(EntityPath)
. UseJPQLNextQuery.fetchJoin()
to add the fetchJoin parameter to this join. UseJPQLNextQuery.lateral()
to use a lateral join for this join.- Specified by:
fullJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
P
- The type of the join target- Parameters:
target
- The join targetalias
- 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 interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- Expression type- Parameters:
subQueryExpression
- Subquery expressionalias
- 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 toSQLCommonQuery.leftJoin(SubQueryExpression, Path)
.- Specified by:
leftJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- Expression type- Parameters:
o
- subqueryalias
- alias- Returns:
- the current object
-
lateral
Description copied from interface:JPQLNextQuery
Mark the last join as a lateral join.- Specified by:
lateral
in interfaceJPQLNextQuery<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 toSQLCommonQuery.rightJoin(SubQueryExpression, Path)
.- Specified by:
rightJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- Expression type- Parameters:
o
- subqueryalias
- 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 toSQLCommonQuery.fullJoin(SubQueryExpression, Path)
.- Specified by:
fullJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- Expression type- Parameters:
o
- subqueryalias
- 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 toSQLCommonQuery.innerJoin(SubQueryExpression, Path)
.- Specified by:
innerJoin
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
X
- Expression type- Parameters:
o
- subqueryalias
- alias- Returns:
- the current object
-
setCacheable
-
serialize
protected com.querydsl.jpa.JPQLSerializer serialize(boolean forCountRow)- Overrides:
serialize
in classcom.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
Description copied from interface:JPQLNextQuery
Creates an union expression for the given subqueries. Analog toProjectableSQLQuery.union(List)
.- Specified by:
union
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
-
unionAll
Description copied from interface:JPQLNextQuery
Creates an union expression for the given subqueries. Analog toProjectableSQLQuery.unionAll(List)
.- Specified by:
unionAll
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
-
intersect
Description copied from interface:JPQLNextQuery
Creates an intersect expression for the given subqueries.- Specified by:
intersect
in interfaceJPQLNextQuery<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 interfaceJPQLNextQuery<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
Description copied from interface:JPQLNextQuery
Creates an except expression for the given subqueries- Specified by:
except
in interfaceJPQLNextQuery<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
Description copied from interface:JPQLNextQuery
Creates an except expression for the given subqueries- Specified by:
exceptAll
in interfaceJPQLNextQuery<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 toProjectableSQLQuery.union(List)
.- Specified by:
union
in interfaceJPQLNextQuery<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 toProjectableSQLQuery.unionAll(List)
.- Specified by:
unionAll
in interfaceJPQLNextQuery<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 interfaceJPQLNextQuery<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 interfaceJPQLNextQuery<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 interfaceJPQLNextQuery<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 interfaceJPQLNextQuery<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 pathexpression
- Expression to bind the path to- Returns:
- this query
-
window
Description copied from interface:JPQLNextQuery
Add a named window to this query.- Specified by:
window
in interfaceJPQLNextQuery<T,Q extends AbstractBlazeJPAQuery<T,Q>>
- Parameters:
namedWindow
- The window definition to add- Returns:
- this query
-