Interface JpaSelectCriteria<T>

    • Method Detail

      • from

        <X> JpaDerivedRoot<X> from​(jakarta.persistence.criteria.Subquery<X> subquery)
        Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.
        Parameters:
        subquery - the subquery
        Returns:
        query root corresponding to the given subquery
      • fromLateral

        <X> JpaDerivedRoot<X> fromLateral​(jakarta.persistence.criteria.Subquery<X> subquery)
        Create and add a query root corresponding to the given lateral subquery, forming a cartesian product with any existing roots.
        Parameters:
        subquery - the subquery
        Returns:
        query root corresponding to the given subquery
      • from

        <X> JpaDerivedRoot<X> from​(jakarta.persistence.criteria.Subquery<X> subquery,
                                   boolean lateral)
        Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots. If the subquery is marked as lateral, it may access previous from elements.
        Parameters:
        subquery - the subquery
        lateral - whether to allow access to previous from elements in the subquery
        Returns:
        query root corresponding to the given subquery
      • distinct

        JpaSelectCriteria<T> distinct​(boolean distinct)
        Specified by:
        distinct in interface jakarta.persistence.criteria.AbstractQuery<T>
      • getSelection

        JpaSelection<T> getSelection()
        Specified by:
        getSelection in interface jakarta.persistence.criteria.AbstractQuery<T>
      • from

        <X> JpaRoot<X> from​(Class<X> entityClass)
        Specified by:
        from in interface jakarta.persistence.criteria.AbstractQuery<T>
      • from

        <X> JpaRoot<X> from​(jakarta.persistence.metamodel.EntityType<X> entity)
        Specified by:
        from in interface jakarta.persistence.criteria.AbstractQuery<T>
      • where

        JpaSelectCriteria<T> where​(jakarta.persistence.criteria.Expression<Boolean> restriction)
        Specified by:
        where in interface jakarta.persistence.criteria.AbstractQuery<T>
      • where

        JpaSelectCriteria<T> where​(jakarta.persistence.criteria.Predicate... restrictions)
        Specified by:
        where in interface jakarta.persistence.criteria.AbstractQuery<T>
      • groupBy

        JpaSelectCriteria<T> groupBy​(jakarta.persistence.criteria.Expression<?>... grouping)
        Specified by:
        groupBy in interface jakarta.persistence.criteria.AbstractQuery<T>
      • groupBy

        JpaSelectCriteria<T> groupBy​(List<jakarta.persistence.criteria.Expression<?>> grouping)
        Specified by:
        groupBy in interface jakarta.persistence.criteria.AbstractQuery<T>
      • getGroupRestriction

        JpaPredicate getGroupRestriction()
        Specified by:
        getGroupRestriction in interface jakarta.persistence.criteria.AbstractQuery<T>
      • having

        JpaSelectCriteria<T> having​(jakarta.persistence.criteria.Expression<Boolean> restriction)
        Specified by:
        having in interface jakarta.persistence.criteria.AbstractQuery<T>
      • having

        JpaSelectCriteria<T> having​(jakarta.persistence.criteria.Predicate... restrictions)
        Specified by:
        having in interface jakarta.persistence.criteria.AbstractQuery<T>