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 theVALUESclause.<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 theVALUESclause.<X> BlazeJPAQuery<?>fromValues(com.querydsl.core.types.EntityPath<X> path, Collection<X> elements) Select from a set of values using theVALUESclause.<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 theVALUESclause.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:
deletein interfacecom.querydsl.jpa.JPQLQueryFactory
-
select
- Specified by:
selectin interfaceJPQLNextQueryFactory- Specified by:
selectin interfacecom.querydsl.jpa.JPQLQueryFactory
-
select
public BlazeJPAQuery<com.querydsl.core.Tuple> select(com.querydsl.core.types.Expression<?>... exprs) - Specified by:
selectin interfaceJPQLNextQueryFactory- Specified by:
selectin interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectDistinct
- Specified by:
selectDistinctin interfaceJPQLNextQueryFactory- Specified by:
selectDistinctin interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectDistinct
public BlazeJPAQuery<com.querydsl.core.Tuple> selectDistinct(com.querydsl.core.types.Expression<?>... exprs) - Specified by:
selectDistinctin interfaceJPQLNextQueryFactory- Specified by:
selectDistinctin interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectOne
- Specified by:
selectOnein interfaceJPQLNextQueryFactory- Specified by:
selectOnein interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectZero
- Specified by:
selectZeroin interfaceJPQLNextQueryFactory- Specified by:
selectZeroin interfacecom.querydsl.jpa.JPQLQueryFactory
-
selectFrom
- Specified by:
selectFromin interfaceJPQLNextQueryFactory- Specified by:
selectFromin interfacecom.querydsl.jpa.JPQLQueryFactory
-
from
- Specified by:
fromin interfaceJPQLNextQueryFactory- Specified by:
fromin interfacecom.querydsl.jpa.JPQLQueryFactory
-
from
- Specified by:
fromin interfaceJPQLNextQueryFactory- Specified by:
fromin 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:JPQLNextQueryFactoryCreate a new Query with the given source- Specified by:
fromin 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:JPQLNextQueryFactoryCreate a new Query with the given source- Specified by:
selectFromin 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:JPQLNextQueryFactorySelect from a set of values using theVALUESclause.- Specified by:
fromValuesin 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:JPQLNextQueryFactorySelect from a set of values using theVALUESclause.- Specified by:
fromIdentifiableValuesin 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:JPQLNextQueryFactorySelect from a set of values using theVALUESclause.- Specified by:
fromValuesin 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:JPQLNextQueryFactorySelect from a set of values using theVALUESclause.- Specified by:
fromIdentifiableValuesin 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:JPQLNextQueryFactoryRegister a common table expression (CTE).- Specified by:
within 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:JPQLNextQueryFactoryRegister a recursive common table expression (CTE).- Specified by:
withRecursivein 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:JPQLNextQueryFactoryRegister a common table expression (CTE). Returns a builder through which the CTE can be provided asSubQueryExpression.- Specified by:
within 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:JPQLNextQueryFactoryRegister a recursive common table expression (CTE). Returns a builder through which the CTE can be provided asSubQueryExpression.- Specified by:
withRecursivein 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:
updatein interfacecom.querydsl.jpa.JPQLQueryFactory
-
insert
public com.querydsl.core.dml.InsertClause<?> insert(com.querydsl.core.types.EntityPath<?> path) - Specified by:
insertin interfacecom.querydsl.jpa.JPQLQueryFactory
-
query
- Specified by:
queryin interfaceJPQLNextQueryFactory- Specified by:
queryin interfacecom.querydsl.core.QueryFactory<com.querydsl.jpa.JPQLQuery<?>>
-
union
Description copied from interface:JPQLNextQueryFactoryCreates an union expression for the given subqueries.- Specified by:
unionin interfaceJPQLNextQueryFactory- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
unionAll
Description copied from interface:JPQLNextQueryFactoryCreates an union expression for the given subqueries.- Specified by:
unionAllin interfaceJPQLNextQueryFactory- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-
intersect
Description copied from interface:JPQLNextQueryFactoryCreates an intersect expression for the given subqueries.- Specified by:
intersectin interfaceJPQLNextQueryFactory- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
-
intersectAll
Description copied from interface:JPQLNextQueryFactoryCreates an intersect expression for the given subqueries- Specified by:
intersectAllin interfaceJPQLNextQueryFactory- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
-
except
Description copied from interface:JPQLNextQueryFactoryCreates an except expression for the given subqueries- Specified by:
exceptin interfaceJPQLNextQueryFactory- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
- See Also:
-
exceptAll
Description copied from interface:JPQLNextQueryFactoryCreates an except expression for the given subqueries- Specified by:
exceptAllin 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:JPQLNextQueryFactoryCreates an union expression for the given subqueries.- Specified by:
unionin 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:JPQLNextQueryFactoryCreates an union expression for the given subqueries.- Specified by:
unionAllin 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:JPQLNextQueryFactoryCreates an intersect expression for the given subqueries.- Specified by:
intersectin 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:JPQLNextQueryFactoryCreates an intersect expression for the given subqueries.- Specified by:
intersectAllin 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:JPQLNextQueryFactoryCreates an except expression for the given subqueries.- Specified by:
exceptin 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:JPQLNextQueryFactoryCreates an except expression for the given subqueries.- Specified by:
exceptAllin interfaceJPQLNextQueryFactory- Type Parameters:
RT- set operation type- Parameters:
sq- subqueries- Returns:
- the set operation result
-