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 subtypeBlazeRoot
instead.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, subquery
Methods inherited from interface com.blazebit.persistence.criteria.BlazeCommonAbstractCriteria
subquery
Methods 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 subtypeBlazeRoot
instead.- Returns:
- the set of query roots
-
from
- Specified by:
from
in interfaceAbstractQuery<T>
-
from
- Specified by:
from
in interfaceAbstractQuery<T>
-
where
- Specified by:
where
in interfaceAbstractQuery<T>
-
where
- Specified by:
where
in interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupBy
in interfaceAbstractQuery<T>
-
groupBy
- Specified by:
groupBy
in interfaceAbstractQuery<T>
-
having
- Specified by:
having
in interfaceAbstractQuery<T>
-
having
- Specified by:
having
in interfaceAbstractQuery<T>
-
distinct
- Specified by:
distinct
in interfaceAbstractQuery<T>
-