Class AbstractSqmSelectQuery<T>

    • Method Detail

      • getResultType

        public Class<T> getResultType()
        Specified by:
        getResultType in interface jakarta.persistence.criteria.AbstractQuery<T>
      • setResultType

        protected void setResultType​(Class<T> resultType)
      • setQueryPart

        public void setQueryPart​(SqmQueryPart<T> sqmQueryPart)
      • getRoots

        public Set<jakarta.persistence.criteria.Root<?>> getRoots()
        Specified by:
        getRoots in interface jakarta.persistence.criteria.AbstractQuery<T>
      • from

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

        public <X> SqmDerivedRoot<X> from​(jakarta.persistence.criteria.Subquery<X> subquery)
        Description copied from interface: JpaSelectCriteria
        Create and add a query root corresponding to the given subquery, forming a cartesian product with any existing roots.
        Specified by:
        from in interface JpaSelectCriteria<T>
        Parameters:
        subquery - the subquery
        Returns:
        query root corresponding to the given subquery
      • fromLateral

        public <X> SqmDerivedRoot<X> fromLateral​(jakarta.persistence.criteria.Subquery<X> subquery)
        Description copied from interface: JpaSelectCriteria
        Create and add a query root corresponding to the given lateral subquery, forming a cartesian product with any existing roots.
        Specified by:
        fromLateral in interface JpaSelectCriteria<T>
        Parameters:
        subquery - the subquery
        Returns:
        query root corresponding to the given subquery
      • from

        public <X> SqmDerivedRoot<X> from​(jakarta.persistence.criteria.Subquery<X> subquery,
                                          boolean lateral)
        Description copied from interface: JpaSelectCriteria
        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.
        Specified by:
        from in interface JpaSelectCriteria<T>
        Parameters:
        subquery - the subquery
        lateral - whether to allow access to previous from elements in the subquery
        Returns:
        query root corresponding to the given subquery
      • from

        public <X> SqmRoot<X> from​(jakarta.persistence.metamodel.EntityType<X> entityType)
        Specified by:
        from in interface jakarta.persistence.criteria.AbstractQuery<T>
        Specified by:
        from in interface JpaSelectCriteria<T>
      • isDistinct

        public boolean isDistinct()
        Specified by:
        isDistinct in interface jakarta.persistence.criteria.AbstractQuery<T>
      • where

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

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

        public List<jakarta.persistence.criteria.Expression<?>> getGroupList()
        Specified by:
        getGroupList in interface jakarta.persistence.criteria.AbstractQuery<T>
      • groupBy

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

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

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

        public SqmSelectQuery<T> having​(jakarta.persistence.criteria.Predicate... predicates)
        Specified by:
        having in interface jakarta.persistence.criteria.AbstractQuery<T>
        Specified by:
        having in interface JpaSelectCriteria<T>
      • appendHqlString

        public void appendHqlString​(StringBuilder sb)