Top Description Methods
org.hibernate.query.criteria.internal

public Interface JoinImplementor<Z, X>

extends Join<Z, X>, Fetch<Z, X>, FromImplementor<Z, X>
Known Direct Subinterfaces
org.hibernate.query.criteria.internal.ListJoinImplementor, org.hibernate.query.criteria.internal.MapJoinImplementor, org.hibernate.query.criteria.internal.SetJoinImplementor, org.hibernate.query.criteria.internal.CollectionJoinImplementor
Known Direct Implementers
org.hibernate.query.criteria.internal.path.AbstractJoinImpl
Imports
javax.persistence.criteria.Expression, .Fetch, .Join, .Predicate

Consolidates the Join and Fetch hierarchies since that is how we implement them. This allows us to treat them polymorphically.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public JoinImplementor<Z, X>
public JoinImplementor<Z, X>
on(Expression<Boolean>
a simple or compound boolean expression
restriction
)

Redeclares javax.persistence.criteria.Join.on.

Coordinate return type between Join#on(Expression) and Fetch#on(Expression)
public JoinImplementor<Z, X>
on(Predicate...
zero or more restriction predicates
restrictions
)

Redeclares javax.persistence.criteria.Join.on.

Coordinate return type between Join#on(Predicate...) and Fetch#on(Predicate...)
public <T extends X> JoinImplementor<Z, T>
treatAs(Class<T>
The type to treat the path as.
treatAsType
)

Redeclares org.hibernate.query.criteria.internal.PathImplementor.treatAs.

Defines handling for the JPA 2.1 TREAT down-casting feature.
Inherited from javax.persistence.criteria.Fetch:
getAttributegetJoinTypegetParent
Inherited from javax.persistence.criteria.Join:
getAttributegetJoinTypegetOngetParent
Inherited from org.hibernate.query.criteria.internal.FromImplementor:
canBeReplacedByCorrelatedParentInSubQuerygetCorrelationParentprepareAliasprepareCorrelationDelegaterenderTableExpression

Method Detail

correlateToback to summary
public JoinImplementor<Z, X> correlateTo(CriteriaSubqueryImpl<T> subquery)

Redeclares org.hibernate.query.criteria.internal.FromImplementor.correlateTo.

Refined return type

Annotations
@Override
onback to summary
public JoinImplementor<Z, X> on(Expression<Boolean> restriction)

Redeclares javax.persistence.criteria.Join.on.

Coordinate return type between Join#on(Expression) and Fetch#on(Expression)

Parameters
restriction:Expression<Boolean>

Doc from javax.persistence.criteria.Join.on.

a simple or compound boolean expression

Returns:JoinImplementor<Z, X>

Doc from javax.persistence.criteria.Join.on.

the modified join object

Annotations
@Override
onback to summary
public JoinImplementor<Z, X> on(Predicate... restrictions)

Redeclares javax.persistence.criteria.Join.on.

Coordinate return type between Join#on(Predicate...) and Fetch#on(Predicate...)

Parameters
restrictions:Predicate[]

Doc from javax.persistence.criteria.Join.on.

zero or more restriction predicates

Returns:JoinImplementor<Z, X>

Doc from javax.persistence.criteria.Join.on.

the modified join object

Annotations
@Override
treatAsback to summary
public <T extends X> JoinImplementor<Z, T> treatAs(Class<T> treatAsType)

Redeclares org.hibernate.query.criteria.internal.PathImplementor.treatAs.

Doc from org.hibernate.query.criteria.internal.PathImplementor.treatAs.

Defines handling for the JPA 2.1 TREAT down-casting feature.

Parameters
<T>
The parameterized type representation of treatAsType.
treatAsType:Class<T>

The type to treat the path as.

Returns:JoinImplementor<Z, T>

The properly typed view of this path.

Annotations
@Override