Interface BlazeAbstractQuery<T>
- Type Parameters:
T- the type of the result
- All Superinterfaces:
AbstractQuery<T>,BlazeCommonAbstractCriteria,CommonAbstractCriteria
- All Known Subinterfaces:
BlazeCriteriaQuery<T>,BlazeSubquery<T>
An extended version of
AbstractQuery that allows setting an alias for From elements.- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescriptiondistinct(boolean distinct) <X> BlazeRoot<X><X> BlazeRoot<X>LikeAbstractQuery.from(Class)but allows to set the alias of theBlazeRoot.<X> BlazeRoot<X>from(javax.persistence.metamodel.EntityType<X> entity) <X> BlazeRoot<X>LikeAbstractQuery.from(EntityType)but allows to set the alias of theBlazeRoot.LikeAbstractQuery.getRoots()but returns the subtypeBlazeRootinstead.groupBy(List<Expression<?>> grouping) groupBy(Expression<?>... grouping) having(Expression<Boolean> restriction) where(Expression<Boolean> restriction) Methods inherited from interface javax.persistence.criteria.AbstractQuery
getGroupList, getGroupRestriction, getRestriction, getResultType, getRoots, getSelection, isDistinct, subqueryMethods inherited from interface com.blazebit.persistence.criteria.BlazeCommonAbstractCriteria
subqueryMethods inherited from interface javax.persistence.criteria.CommonAbstractCriteria
getRestriction
-
Method Details
-
from
LikeAbstractQuery.from(Class)but allows to set the alias of theBlazeRoot.- Type Parameters:
X- The entity type- Parameters:
entityClass- the entity classalias- The alias for theBlazeRoot- Returns:
- query root corresponding to the given entity
-
from
LikeAbstractQuery.from(EntityType)but allows to set the alias of theBlazeRoot.- Type Parameters:
X- The entity type- Parameters:
entityType- the entity typealias- The alias for theBlazeRoot- Returns:
- query root corresponding to the given entity
-
getBlazeRoots
LikeAbstractQuery.getRoots()but returns the subtypeBlazeRootinstead.- Returns:
- the set of query roots
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
from
- Specified by:
fromin interfaceAbstractQuery<T>
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
where
- Specified by:
wherein interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>
-
distinct
- Specified by:
distinctin interfaceAbstractQuery<T>
-