Interface BlazeSubquery<T>
- Type Parameters:
T- The type of the selection item
- All Superinterfaces:
AbstractQuery<T>,BlazeAbstractQuery<T>,BlazeCommonAbstractCriteria,CommonAbstractCriteria,Expression<T>,Selection<T>,Subquery<T>,TupleElement<T>
An extended version of
Subquery.- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Method Summary
Modifier and TypeMethodDescription<X,Y> BlazeCollectionJoin<X, Y> correlate(CollectionJoin<X, Y> parentCollection) <X,Y> BlazeJoin<X, Y> <X,Y> BlazeListJoin<X, Y> <X,K, V> BlazeMapJoin<X, K, V> <Y> BlazeRoot<Y><X,Y> BlazeSetJoin<X, Y> distinct(boolean distinct) <X> BlazeRoot<X><X> BlazeRoot<X>from(javax.persistence.metamodel.EntityType<X> entity) LikegetOrderList()but returns the subtypeBlazeOrderinstead.Returns the query (which may be a CriteriaQuery, CriteriaUpdate, CriteriaDelete, or a Subquery) of which this is a subquery.Return the ordering expressions in order of precedence.Returns the parameters defined on this query.groupBy(List<Expression<?>> grouping) groupBy(Expression<?>... grouping) having(Expression<Boolean> restriction) orderBy(BlazeOrder... orders) LikeorderBy(Order...)but accepts the subtypeBlazeOrder.orderBy(List<BlazeOrder> orderList) Specify the ordering expressions that are used to order the query results.Specify the ordering expressions that are used to order the query results.select(Expression<T> expression) <U> BlazeSubquery<U>where(Expression<Boolean> restriction) Methods inherited from interface javax.persistence.criteria.AbstractQuery
getGroupList, getGroupRestriction, getRestriction, getResultType, getRoots, isDistinctMethods inherited from interface com.blazebit.persistence.criteria.BlazeAbstractQuery
from, from, getBlazeRootsMethods inherited from interface javax.persistence.criteria.CommonAbstractCriteria
getRestrictionMethods inherited from interface javax.persistence.criteria.Expression
as, in, in, in, in, isNotNull, isNullMethods inherited from interface javax.persistence.criteria.Selection
alias, getCompoundSelectionItems, isCompoundSelectionMethods inherited from interface javax.persistence.criteria.Subquery
getCorrelatedJoins, getSelectionMethods inherited from interface javax.persistence.TupleElement
getAlias, getJavaType
-
Method Details
-
getBlazeOrderList
List<BlazeOrder> getBlazeOrderList()LikegetOrderList()but returns the subtypeBlazeOrderinstead.- Returns:
- The list of ordering expressions
-
getOrderList
Return the ordering expressions in order of precedence. Returns empty list if no ordering expressions have been specified. Modifications to the list do not affect the query.- Returns:
- the list of ordering expressions
-
orderBy
Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any, is simply removed, and results will be returned in no particular order. The order of the ordering expressions in the list determines the precedence, whereby the first element in the list has highest precedence.- Parameters:
orders- zero or more ordering expressions- Returns:
- this for chaining
-
orderBy
LikeorderBy(Order...)but accepts the subtypeBlazeOrder.- Parameters:
orders- zero or more ordering expressions- Returns:
- this for chaining
-
orderBy
Specify the ordering expressions that are used to order the query results. Replaces the previous ordering expressions, if any. If no ordering expressions are specified, the previous ordering, if any, is simply removed, and results will be returned in no particular order. The order of the ordering expressions in the list determines the precedence, whereby the first element in the list has highest precedence.- Parameters:
orderList- list of zero or more ordering expressions- Returns:
- this for chaining
-
getParameters
Set<ParameterExpression<?>> getParameters()Returns the parameters defined on this query.- Returns:
- The parameters
-
getContainingQuery
BlazeCommonAbstractCriteria getContainingQuery()Returns the query (which may be a CriteriaQuery, CriteriaUpdate, CriteriaDelete, or a Subquery) of which this is a subquery.- Returns:
- The enclosing query or subquery
-
select
-
where
- Specified by:
wherein interfaceAbstractQuery<T>- Specified by:
wherein interfaceBlazeAbstractQuery<T>- Specified by:
wherein interfaceSubquery<T>
-
where
- Specified by:
wherein interfaceAbstractQuery<T>- Specified by:
wherein interfaceBlazeAbstractQuery<T>- Specified by:
wherein interfaceSubquery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>- Specified by:
groupByin interfaceBlazeAbstractQuery<T>- Specified by:
groupByin interfaceSubquery<T>
-
groupBy
- Specified by:
groupByin interfaceAbstractQuery<T>- Specified by:
groupByin interfaceBlazeAbstractQuery<T>- Specified by:
groupByin interfaceSubquery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>- Specified by:
havingin interfaceBlazeAbstractQuery<T>- Specified by:
havingin interfaceSubquery<T>
-
having
- Specified by:
havingin interfaceAbstractQuery<T>- Specified by:
havingin interfaceBlazeAbstractQuery<T>- Specified by:
havingin interfaceSubquery<T>
-
distinct
- Specified by:
distinctin interfaceAbstractQuery<T>- Specified by:
distinctin interfaceBlazeAbstractQuery<T>- Specified by:
distinctin interfaceSubquery<T>
-
correlate
-
correlate
-
correlate
-
correlate
-
correlate
-
correlate
-
getParent
BlazeAbstractQuery<?> getParent() -
from
- Specified by:
fromin interfaceAbstractQuery<T>- Specified by:
fromin interfaceBlazeAbstractQuery<T>
-
from
- Specified by:
fromin interfaceAbstractQuery<T>- Specified by:
fromin interfaceBlazeAbstractQuery<T>
-
subquery
- Specified by:
subqueryin interfaceAbstractQuery<T>- Specified by:
subqueryin interfaceBlazeCommonAbstractCriteria- Specified by:
subqueryin interfaceCommonAbstractCriteria
-