DslQuery
Representation of a query (conceptually, a SQL SELECT
statement more or less). If attached to a persistent context, then can be used DslQuery#fetch() fetch 'ed. If not attached, can be used to build other queries (because it also implements the QueryDSL Expression interface.
Typically is built up using QueryDslSupport (in which case will be attached to a persistence context and can be fetched immediately if desired), or else using DetachedQueryFactory (in which case will not be attached, but can be used to build up other queries, eg as a subquery).
API
DslQuery.java
interface DslQuery<T> {
DslQuery<U> projection(Expression<U> expr) (1)
DslQuery<T> from(EntityPath<?>... sources) (2)
DslQuery<T> from(CollectionExpression<?, U> path, Path<U> alias) (3)
}
1 | projection(Expression)
Change the projection of this query |
2 | from(EntityPath)
Add query sources |
3 | from(CollectionExpression, Path)
Add query sources |