org.hibernate.query.criteria.internal.PathImplementor 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.Path;
import javax.persistence.metamodel.Attribute;
/**
* Implementation contract for the JPA {@link Path} interface.
*
* @author Steve Ebersole
*/
public interface PathImplementor extends ExpressionImplementor, Path, PathSource, Renderable {
/**
* Retrieve reference to the attribute this path represents.
*
* @return The metamodel attribute.
*/
public Attribute getAttribute();
/**
* Defines handling for the JPA 2.1 TREAT down-casting feature.
*
* @param treatAsType The type to treat the path as.
* @param The parameterized type representation of treatAsType.
*
* @return The properly typed view of this path.
*/
public PathImplementor treatAs(Class treatAsType);
}