org.hibernate.query.criteria.JpaQueryPart 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 org.hibernate.query.FetchClauseType;
/**
* Models a query part i.e. the commonalities between a query group and a query specification.
*
* @see JpaQueryStructure
* @see JpaQueryGroup
*
* @author Christian Beikov
*/
public interface JpaQueryPart extends JpaCriteriaNode {
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Ordering clause
List getSortSpecifications();
JpaQueryPart setSortSpecifications(List sortSpecifications);
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Limit/Offset/Fetch clause
JpaExpression getOffset();
JpaQueryPart setOffset(JpaExpression offset);
JpaExpression getFetch();
JpaQueryPart setFetch(JpaExpression fetch);
JpaQueryPart setFetch(JpaExpression fetch, FetchClauseType fetchClauseType);
FetchClauseType getFetchClauseType();
}