org.hibernate.query.criteria.JpaSelectCriteria Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-core Show documentation
Show all versions of hibernate-core Show documentation
Hibernate's core ORM functionality
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later
* See the lgpl.txt file in the root directory or http://www.gnu.org/licenses/lgpl-2.1.html
*/
package org.hibernate.query.criteria;
import java.util.List;
import jakarta.persistence.criteria.AbstractQuery;
import jakarta.persistence.criteria.Expression;
import jakarta.persistence.criteria.Predicate;
import jakarta.persistence.metamodel.EntityType;
/**
* Commonality between a JPA {@link JpaCriteriaQuery} and {@link JpaSubQuery},
* mainly in the form of delegation to {@link JpaQueryStructure}
*
* @author Steve Ebersole
*/
public interface JpaSelectCriteria extends AbstractQuery, JpaCriteriaBase {
/**
* The query structure. See {@link JpaQueryStructure} for details
*/
JpaQueryStructure getQuerySpec();
/**
* The query structure. See {@link JpaQueryStructure} for details
*/
JpaQueryPart getQueryPart();
@Override
JpaSelectCriteria distinct(boolean distinct);
@Override
JpaSelection getSelection();
@Override
JpaRoot from(Class entityClass);
@Override
JpaRoot from(EntityType entity);
@Override
JpaPredicate getRestriction();
@Override
JpaSelectCriteria where(Expression restriction);
@Override
JpaSelectCriteria where(Predicate... restrictions);
@Override
JpaSelectCriteria groupBy(Expression... grouping);
@Override
JpaSelectCriteria groupBy(List> grouping);
@Override
JpaPredicate getGroupRestriction();
@Override
JpaSelectCriteria having(Expression restriction);
@Override
JpaSelectCriteria having(Predicate... restrictions);
}