Class BlazeJPAQueryFactory
java.lang.Object
com.blazebit.persistence.querydsl.BlazeJPAQueryFactory
- All Implemented Interfaces:
JPQLNextQueryFactory
,com.querydsl.core.QueryFactory<com.querydsl.jpa.JPQLQuery<?>>
,com.querydsl.jpa.JPQLQueryFactory
Query factory to simplify
BlazeJPAQuery
instantiation.- Since:
- 1.6.7
- Author:
- Jan-Willem Gmelig Meyling
-
Constructor Summary
ConstructorsConstructorDescriptionBlazeJPAQueryFactory
(JPQLNextTemplates templates, javax.persistence.EntityManager entityManager, CriteriaBuilderFactory criteriaBuilderFactory) BlazeJPAQueryFactory
(javax.persistence.EntityManager entityManager, CriteriaBuilderFactory criteriaBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptioncom.querydsl.core.dml.DeleteClause<?>
delete
(com.querydsl.core.types.EntityPath<?> path) final <RT> SetExpression<RT>
except
(com.querydsl.core.types.SubQueryExpression<RT>... sq) Creates an except expression for the given subqueries.<RT> SetExpression<RT>
Creates an except expression for the given subqueriesfinal <RT> SetExpression<RT>
exceptAll
(com.querydsl.core.types.SubQueryExpression<RT>... sq) Creates an except expression for the given subqueries.<RT> SetExpression<RT>
Creates an except expression for the given subqueriesfrom
(com.querydsl.core.types.EntityPath<?> from) from
(com.querydsl.core.types.EntityPath<?>... from) <X> BlazeJPAQuery<?>
from
(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias) Create a new Query with the given source<X> BlazeJPAQuery<?>
fromIdentifiableValues
(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements) Select from a set of values using theVALUES
clause.<X> BlazeJPAQuery<?>
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> BlazeJPAQuery<?>
fromValues
(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements) Select from a set of values using theVALUES
clause.<X> BlazeJPAQuery<?>
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.com.querydsl.core.dml.InsertClause<?>
insert
(com.querydsl.core.types.EntityPath<?> path) final <RT> SetExpression<RT>
intersect
(com.querydsl.core.types.SubQueryExpression<RT>... sq) Creates an intersect expression for the given subqueries.<RT> SetExpression<RT>
Creates an intersect expression for the given subqueries.final <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 subqueriesquery()
BlazeJPAQuery<com.querydsl.core.Tuple>
select
(com.querydsl.core.types.Expression<?>... exprs) <T> BlazeJPAQuery<T>
select
(com.querydsl.core.types.Expression<T> expr) BlazeJPAQuery<com.querydsl.core.Tuple>
selectDistinct
(com.querydsl.core.types.Expression<?>... exprs) <T> BlazeJPAQuery<T>
selectDistinct
(com.querydsl.core.types.Expression<T> expr) <T> BlazeJPAQuery<T>
selectFrom
(com.querydsl.core.types.EntityPath<T> from) <X> BlazeJPAQuery<X>
selectFrom
(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias) Create a new Query with the given sourcefinal <RT> SetExpression<RT>
union
(com.querydsl.core.types.SubQueryExpression<RT>... sq) Creates an union expression for the given subqueries.<RT> SetExpression<RT>
Creates an union expression for the given subqueries.final <RT> SetExpression<RT>
unionAll
(com.querydsl.core.types.SubQueryExpression<RT>... sq) Creates an union expression for the given subqueries.<RT> SetExpression<RT>
Creates an union expression for the given subqueries.com.querydsl.core.dml.UpdateClause<?>
update
(com.querydsl.core.types.EntityPath<?> path) WithBuilder<? extends BlazeJPAQuery<?>>
with
(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns) Register a common table expression (CTE).<X> BlazeJPAQuery<?>
with
(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o) Register a common table expression (CTE).WithBuilder<? extends BlazeJPAQuery<?>>
withRecursive
(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns) Register a recursive common table expression (CTE).<X> BlazeJPAQuery<?>
withRecursive
(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o) Register a recursive common table expression (CTE).
-
Constructor Details
-
BlazeJPAQueryFactory
public BlazeJPAQueryFactory(javax.persistence.EntityManager entityManager, CriteriaBuilderFactory criteriaBuilderFactory) -
BlazeJPAQueryFactory
public BlazeJPAQueryFactory(JPQLNextTemplates templates, javax.persistence.EntityManager entityManager, CriteriaBuilderFactory criteriaBuilderFactory)
-
-
Method Details
-
delete
public com.querydsl.core.dml.DeleteClause<?> delete(com.querydsl.core.types.EntityPath<?> path) - Specified by:
delete
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
select
- Specified by:
select
in interfaceJPQLNextQueryFactory
- Specified by:
select
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
select
public BlazeJPAQuery<com.querydsl.core.Tuple> select(com.querydsl.core.types.Expression<?>... exprs) - Specified by:
select
in interfaceJPQLNextQueryFactory
- Specified by:
select
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectDistinct
- Specified by:
selectDistinct
in interfaceJPQLNextQueryFactory
- Specified by:
selectDistinct
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectDistinct
public BlazeJPAQuery<com.querydsl.core.Tuple> selectDistinct(com.querydsl.core.types.Expression<?>... exprs) - Specified by:
selectDistinct
in interfaceJPQLNextQueryFactory
- Specified by:
selectDistinct
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectOne
- Specified by:
selectOne
in interfaceJPQLNextQueryFactory
- Specified by:
selectOne
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectZero
- Specified by:
selectZero
in interfaceJPQLNextQueryFactory
- Specified by:
selectZero
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectFrom
- Specified by:
selectFrom
in interfaceJPQLNextQueryFactory
- Specified by:
selectFrom
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
from
- Specified by:
from
in interfaceJPQLNextQueryFactory
- Specified by:
from
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
from
- Specified by:
from
in interfaceJPQLNextQueryFactory
- Specified by:
from
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
from
public <X> BlazeJPAQuery<?> from(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias) Description copied from interface:JPQLNextQueryFactory
Create a new Query with the given source- Specified by:
from
in interfaceJPQLNextQueryFactory
- Parameters:
subQueryExpression
- The subquery expressionalias
- Alias for the subquery in the outer query- Returns:
- from(from)
-
selectFrom
public <X> BlazeJPAQuery<X> selectFrom(com.querydsl.core.types.SubQueryExpression<X> subQueryExpression, com.querydsl.core.types.Path<X> alias) Description copied from interface:JPQLNextQueryFactory
Create a new Query with the given source- Specified by:
selectFrom
in interfaceJPQLNextQueryFactory
- Parameters:
subQueryExpression
- The subquery expressionalias
- Alias for the subquery in the outer query- Returns:
- from(from)
-
fromValues
public <X> BlazeJPAQuery<?> fromValues(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements) Description copied from interface:JPQLNextQueryFactory
Select from a set of values using theVALUES
clause.- Specified by:
fromValues
in interfaceJPQLNextQueryFactory
- Type Parameters:
X
- The element type- Parameters:
path
- Type of valueselements
- The elements- Returns:
- this query
-
fromIdentifiableValues
public <X> BlazeJPAQuery<?> fromIdentifiableValues(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements) Description copied from interface:JPQLNextQueryFactory
Select from a set of values using theVALUES
clause.- Specified by:
fromIdentifiableValues
in interfaceJPQLNextQueryFactory
- Type Parameters:
X
- The element type- Parameters:
path
- Type of valueselements
- The elements- Returns:
- this query
-
fromValues
public <X> BlazeJPAQuery<?> fromValues(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements) Description copied from interface:JPQLNextQueryFactory
Select from a set of values using theVALUES
clause.- Specified by:
fromValues
in interfaceJPQLNextQueryFactory
- 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> BlazeJPAQuery<?> fromIdentifiableValues(com.querydsl.core.types.Path<X> path, com.querydsl.core.types.Path<X> alias, Collection<X> elements) Description copied from interface:JPQLNextQueryFactory
Select from a set of values using theVALUES
clause.- Specified by:
fromIdentifiableValues
in interfaceJPQLNextQueryFactory
- 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 <X> BlazeJPAQuery<?> with(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o) Description copied from interface:JPQLNextQueryFactory
Register a common table expression (CTE).- Specified by:
with
in interfaceJPQLNextQueryFactory
- Type Parameters:
X
- CTE type- Parameters:
alias
- The alias for the CTEo
- The subquery expression- Returns:
- this query
-
withRecursive
public <X> BlazeJPAQuery<?> withRecursive(com.querydsl.core.types.Path<X> alias, com.querydsl.core.types.SubQueryExpression<?> o) Description copied from interface:JPQLNextQueryFactory
Register a recursive common table expression (CTE).- Specified by:
withRecursive
in interfaceJPQLNextQueryFactory
- Type Parameters:
X
- CTE type- Parameters:
alias
- The alias for the CTEo
- The subquery expression- Returns:
- this query
-
with
public WithBuilder<? extends BlazeJPAQuery<?>> with(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns) Description copied from interface:JPQLNextQueryFactory
Register a common table expression (CTE). Returns a builder through which the CTE can be provided asSubQueryExpression
.- Specified by:
with
in interfaceJPQLNextQueryFactory
- Parameters:
alias
- The alias for the CTEcolumns
- The columns for the CTE- Returns:
- this query
-
withRecursive
public WithBuilder<? extends BlazeJPAQuery<?>> withRecursive(com.querydsl.core.types.EntityPath<?> alias, com.querydsl.core.types.Path<?>... columns) Description copied from interface:JPQLNextQueryFactory
Register a recursive common table expression (CTE). Returns a builder through which the CTE can be provided asSubQueryExpression
.- Specified by:
withRecursive
in interfaceJPQLNextQueryFactory
- Parameters:
alias
- The alias for the CTEcolumns
- The columns for the CTE- Returns:
- this query
-
update
public com.querydsl.core.dml.UpdateClause<?> update(com.querydsl.core.types.EntityPath<?> path) - Specified by:
update
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
insert
public com.querydsl.core.dml.InsertClause<?> insert(com.querydsl.core.types.EntityPath<?> path) - Specified by:
insert
in interfacecom.querydsl.jpa.JPQLQueryFactory
-
query
- Specified by:
query
in interfaceJPQLNextQueryFactory
- Specified by:
query
in interfacecom.querydsl.core.QueryFactory<com.querydsl.jpa.JPQLQuery<?>>
-
union
Description copied from interface:JPQLNextQueryFactory
Creates an union expression for the given subqueries.- Specified by:
union
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
-
unionAll
Description copied from interface:JPQLNextQueryFactory
Creates an union expression for the given subqueries.- Specified by:
unionAll
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
-
intersect
Description copied from interface:JPQLNextQueryFactory
Creates an intersect expression for the given subqueries.- Specified by:
intersect
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
- See Also:
-
intersectAll
Description copied from interface:JPQLNextQueryFactory
Creates an intersect expression for the given subqueries- Specified by:
intersectAll
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
- See Also:
-
except
Description copied from interface:JPQLNextQueryFactory
Creates an except expression for the given subqueries- Specified by:
except
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
- See Also:
-
exceptAll
Description copied from interface:JPQLNextQueryFactory
Creates an except expression for the given subqueries- Specified by:
exceptAll
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
- See Also:
-
union
@SafeVarargs public final <RT> SetExpression<RT> union(com.querydsl.core.types.SubQueryExpression<RT>... sq) Description copied from interface:JPQLNextQueryFactory
Creates an union expression for the given subqueries.- Specified by:
union
in interfaceJPQLNextQueryFactory
- 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:JPQLNextQueryFactory
Creates an union expression for the given subqueries.- Specified by:
unionAll
in interfaceJPQLNextQueryFactory
- 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:JPQLNextQueryFactory
Creates an intersect expression for the given subqueries.- Specified by:
intersect
in interfaceJPQLNextQueryFactory
- 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:JPQLNextQueryFactory
Creates an intersect expression for the given subqueries.- Specified by:
intersectAll
in interfaceJPQLNextQueryFactory
- 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:JPQLNextQueryFactory
Creates an except expression for the given subqueries.- Specified by:
except
in interfaceJPQLNextQueryFactory
- 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:JPQLNextQueryFactory
Creates an except expression for the given subqueries.- Specified by:
exceptAll
in interfaceJPQLNextQueryFactory
- Type Parameters:
RT
- set operation type- Parameters:
sq
- subqueries- Returns:
- the set operation result
-