DetachedQueryFactory

Factory for detached query expressions. These are most commonly used in subqueries; they cannot be fetched directly because they are not attached to any persistence context.

API

DetachedQueryFactory.java
interface DetachedQueryFactory {
  DslQuery<T> select(Expression<T> expr)
  DslQuery<Tuple> select(Expression<?>... exprs)
  DslQuery<T> selectDistinct(Expression<T> expr)     (1)
  DslQuery<Tuple> selectDistinct(Expression<?>... exprs)     (2)
  DslQuery<Integer> selectZero()     (3)
  DslQuery<Integer> selectOne()     (4)
  DslQuery<T> selectFrom(EntityPath<T> expr)     (5)
}
1 selectDistinct(Expression)

Create a new detached DslQuery instance with the given projection

2 selectDistinct(Expression)

Create a new detached DslQuery instance with the given projection

3 selectZero()

Create a new detached DslQuery instance with the given projection 0

4 selectOne()

Create a new detached DslQuery instance with the projection 1

5 selectFrom(EntityPath)

Create a new detached DslQuery instance with the given projection

Members

selectDistinct(Expression)

Create a new detached DslQuery instance with the given projection

selectDistinct(Expression)

Create a new detached DslQuery instance with the given projection

selectZero()

Create a new detached DslQuery instance with the given projection 0

selectOne()

Create a new detached DslQuery instance with the projection 1

selectFrom(EntityPath)

Create a new detached DslQuery instance with the given projection