Package com.querydsl.collections
Class AbstractCollQuery<T,Q extends AbstractCollQuery<T,Q>>
java.lang.Object
com.querydsl.core.support.QueryBase<Q>
com.querydsl.core.support.FetchableQueryBase<T,Q>
com.querydsl.collections.AbstractCollQuery<T,Q>
- Type Parameters:
T- result typeQ- concrete subtype
- All Implemented Interfaces:
com.querydsl.core.Fetchable<T>,com.querydsl.core.FetchableQuery<T,,Q> com.querydsl.core.FilteredClause<Q>,com.querydsl.core.SimpleQuery<Q>
- Direct Known Subclasses:
CollQuery
public abstract class AbstractCollQuery<T,Q extends AbstractCollQuery<T,Q>>
extends com.querydsl.core.support.FetchableQueryBase<T,Q>
implements com.querydsl.core.FetchableQuery<T,Q>
AbstractCollQuery provides a base class for Collection query implementations.- Author:
- tiwe
- See Also:
-
Field Summary
Fields inherited from class com.querydsl.core.support.QueryBase
MDC_PARAMETERS, MDC_QUERY, queryMixin -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCollQuery(com.querydsl.core.QueryMetadata metadata, QueryEngine queryEngine) -
Method Summary
Modifier and TypeMethodDescription<A> QBind the given collection to an already existing query sourcefetch()longfetchOne()com.querydsl.core.QueryResults<T><A> QAdd a query sourceprotected com.querydsl.core.QueryMetadataprotected QueryEnginegroupBy(com.querydsl.core.types.Expression<?> e) groupBy(com.querydsl.core.types.Expression<?>... o) having(com.querydsl.core.types.Predicate e) having(com.querydsl.core.types.Predicate... e) <P> QinnerJoin(com.querydsl.core.types.MapExpression<?, P> target, com.querydsl.core.types.Path<P> alias) Define an inner join from the Map typed path to the alias<P> QinnerJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias) Define an inner join from the Collection typed path to the aliascom.mysema.commons.lang.CloseableIterator<T>iterate()<P> QleftJoin(com.querydsl.core.types.MapExpression<?, P> target, com.querydsl.core.types.Path<P> alias) Define a left join from the Map typed path to the alias<P> QleftJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias) Define a left join from the Collection typed path to the aliasstream()Methods inherited from class com.querydsl.core.support.FetchableQueryBase
equals, fetchFirst, transform, uniqueResultMethods inherited from class com.querydsl.core.support.QueryBase
distinct, hashCode, limit, offset, orderBy, orderBy, restrict, set, toString, where, whereMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.querydsl.core.Fetchable
fetchFirstMethods inherited from interface com.querydsl.core.FetchableQuery
select, select, transformMethods inherited from interface com.querydsl.core.FilteredClause
whereMethods inherited from interface com.querydsl.core.SimpleQuery
distinct, limit, offset, orderBy, restrict, set
-
Constructor Details
-
AbstractCollQuery
-
-
Method Details
-
fetchCount
public long fetchCount()- Specified by:
fetchCountin interfacecom.querydsl.core.Fetchable<T>
-
getMetadata
protected com.querydsl.core.QueryMetadata getMetadata() -
from
Add a query source- Type Parameters:
A- type of expression- Parameters:
entity- Path for the sourcecol- content of the source- Returns:
- current object
-
bind
Bind the given collection to an already existing query source- Type Parameters:
A- type of expression- Parameters:
entity- Path for the sourcecol- content of the source- Returns:
- current object
-
groupBy
- Overrides:
groupByin classcom.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
-
groupBy
- Overrides:
groupByin classcom.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
-
having
- Overrides:
havingin classcom.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
-
having
- Overrides:
havingin classcom.querydsl.core.support.QueryBase<Q extends AbstractCollQuery<T,Q>>
-
getQueryEngine
-
innerJoin
public <P> Q innerJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias) Define an inner join from the Collection typed path to the alias- Type Parameters:
P- type of expression- Parameters:
target- target of the joinalias- alias for the join target- Returns:
- current object
-
innerJoin
public <P> Q innerJoin(com.querydsl.core.types.MapExpression<?, P> target, com.querydsl.core.types.Path<P> alias) Define an inner join from the Map typed path to the alias- Type Parameters:
P- type of expression- Parameters:
target- target of the joinalias- alias for the join target- Returns:
- current object
-
leftJoin
public <P> Q leftJoin(com.querydsl.core.types.Path<? extends Collection<P>> target, com.querydsl.core.types.Path<P> alias) Define a left join from the Collection typed path to the alias- Type Parameters:
P- type of expression- Parameters:
target- target of the joinalias- alias for the join target- Returns:
- current object
-
leftJoin
public <P> Q leftJoin(com.querydsl.core.types.MapExpression<?, P> target, com.querydsl.core.types.Path<P> alias) Define a left join from the Map typed path to the alias- Type Parameters:
P- type of expression- Parameters:
target- target of the joinalias- alias for the joint target- Returns:
- current object
-
iterate
- Specified by:
iteratein interfacecom.querydsl.core.Fetchable<T>
-
stream
- Specified by:
streamin interfacecom.querydsl.core.Fetchable<T>
-
fetch
-
fetchResults
- Specified by:
fetchResultsin interfacecom.querydsl.core.Fetchable<T>
-
fetchOne
- Specified by:
fetchOnein interfacecom.querydsl.core.Fetchable<T>- Throws:
com.querydsl.core.NonUniqueResultException
-