Interface JPQLQuery<T>

    • Method Detail

      • 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