Interface JPQLQuery<T>

Type Parameters:
T - result type
All Superinterfaces:
Expression<T>, ExtendedSubQuery<T>, Fetchable<T>, FetchableQuery<T,JPQLQuery<T>>, FilteredClause<JPQLQuery<T>>, Query<JPQLQuery<T>>, Serializable, SimpleQuery<JPQLQuery<T>>, SubQueryExpression<T>
All Known Implementing Classes:
AbstractHibernateQuery, AbstractJPAQuery, HibernateQuery, JPAQuery, JPAQueryBase

public interface JPQLQuery<T> extends FetchableQuery<T,JPQLQuery<T>>, Query<JPQLQuery<T>>, ExtendedSubQuery<T>
Query interface for JPQL queries
Author:
tiwe
  • Method Details

    • from

      JPQLQuery<T> from(EntityPath<?>... sources)
      Add sources to this query
      Parameters:
      sources - sources
      Returns:
      the current object
    • from

      <P> JPQLQuery<T> from(CollectionExpression<?,P> target, Path<P> alias)
      Add a query source
      Type Parameters:
      P -
      Parameters:
      target - collection
      alias - alias
      Returns:
      the current object
    • innerJoin

      <P> JPQLQuery<T> innerJoin(EntityPath<P> target)
      Create a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • innerJoin

      <P> JPQLQuery<T> innerJoin(EntityPath<P> target, Path<P> alias)
      Create a inner join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • innerJoin

      <P> JPQLQuery<T> innerJoin(CollectionExpression<?,P> target)
      Create a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • innerJoin

      <P> JPQLQuery<T> innerJoin(CollectionExpression<?,P> target, Path<P> alias)
      Create a inner join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • innerJoin

      <P> JPQLQuery<T> innerJoin(MapExpression<?,P> target)
      Create a inner join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • innerJoin

      <P> JPQLQuery<T> innerJoin(MapExpression<?,P> target, Path<P> alias)
      Create a inner join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • join

      <P> JPQLQuery<T> join(EntityPath<P> target)
      Create a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • join

      <P> JPQLQuery<T> join(EntityPath<P> target, Path<P> alias)
      Create a join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • join

      <P> JPQLQuery<T> join(CollectionExpression<?,P> target)
      Create a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • join

      <P> JPQLQuery<T> join(CollectionExpression<?,P> target, Path<P> alias)
      Create a join with the given target Use fetchJoin() to add the fetchJoin parameter to this join
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • join

      <P> JPQLQuery<T> join(MapExpression<?,P> target)
      Create a join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • join

      <P> JPQLQuery<T> join(MapExpression<?,P> target, Path<P> alias)
      Create a join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • leftJoin

      <P> JPQLQuery<T> leftJoin(EntityPath<P> target)
      Create a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • leftJoin

      <P> JPQLQuery<T> leftJoin(EntityPath<P> target, Path<P> alias)
      Create a left join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • leftJoin

      <P> JPQLQuery<T> leftJoin(CollectionExpression<?,P> target)
      Create a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • leftJoin

      <P> JPQLQuery<T> leftJoin(CollectionExpression<?,P> target, Path<P> alias)
      Create a left join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • leftJoin

      <P> JPQLQuery<T> leftJoin(MapExpression<?,P> target)
      Create a left join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • leftJoin

      <P> JPQLQuery<T> leftJoin(MapExpression<?,P> target, Path<P> alias)
      Create a left join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • rightJoin

      <P> JPQLQuery<T> rightJoin(EntityPath<P> target)
      Create a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • rightJoin

      <P> JPQLQuery<T> rightJoin(EntityPath<P> target, Path<P> alias)
      Create a right join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • rightJoin

      <P> JPQLQuery<T> rightJoin(CollectionExpression<?,P> target)
      Create a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • rightJoin

      <P> JPQLQuery<T> rightJoin(CollectionExpression<?,P> target, Path<P> alias)
      Create a right join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • rightJoin

      <P> JPQLQuery<T> rightJoin(MapExpression<?,P> target)
      Create a right join with the given target. Use fetchJoin() to add the fetchJoin parameter to this join.
      Type Parameters:
      P -
      Parameters:
      target - target
      Returns:
      the current object
    • rightJoin

      <P> JPQLQuery<T> rightJoin(MapExpression<?,P> target, Path<P> alias)
      Create a right join with the given target and alias.
      Type Parameters:
      P -
      Parameters:
      target - target
      alias - alias
      Returns:
      the current object
    • on

      JPQLQuery<T> on(Predicate... condition)
      Add join conditions to the last added join
      Parameters:
      condition - join conditions
      Returns:
      the current object
    • fetchJoin

      JPQLQuery<T> fetchJoin()
      Add the "fetchJoin" flag to the last defined join Mind that collection joins might result in duplicate rows and that "inner join fetchJoin" will restrict your result set.
      Returns:
      the current object
    • fetchAll

      JPQLQuery<T> fetchAll()
      Add the "fetchJoin all properties" flag to the last defined join.
      Returns:
      the current object
    • select

      <U> JPQLQuery<U> select(Expression<U> expr)
      Specified by:
      select in interface FetchableQuery<T,JPQLQuery<T>>
    • select

      JPQLQuery<Tuple> select(Expression<?>... exprs)
      Specified by:
      select in interface FetchableQuery<T,JPQLQuery<T>>