org.hibernate.query.criteria.internal.JoinImplementor 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 .
*/
package org.hibernate.query.criteria.internal;
import javax.persistence.criteria.Expression;
import javax.persistence.criteria.Fetch;
import javax.persistence.criteria.Join;
import javax.persistence.criteria.Predicate;
/**
* Consolidates the {@link Join} and {@link Fetch} hierarchies since that is how we implement them.
* This allows us to treat them polymorphically.
*
* @author Steve Ebersole
*/
public interface JoinImplementor extends Join, Fetch, FromImplementor {
/**
* Refined return type
*/
@Override
public JoinImplementor correlateTo(CriteriaSubqueryImpl subquery);
/**
* Coordinate return type between {@link Join#on(Expression)} and {@link Fetch#on(Expression)}
*/
@Override
public JoinImplementor on(Expression restriction);
/**
* Coordinate return type between {@link Join#on(Predicate...)} and {@link Fetch#on(Predicate...)}
*/
@Override
public JoinImplementor on(Predicate... restrictions);
@Override
public JoinImplementor treatAs(Class treatAsType);
}