Package org.hibernate.query.criteria
Interface JpaJoin<O,T>
- All Superinterfaces:
Expression<T>,FetchParent<O,,T> From<O,,T> Join<O,,T> JpaCriteriaNode,JpaExpression<T>,JpaFetchParent<O,,T> JpaFrom<O,,T> JpaJoinedFrom<O,,T> JpaPath<T>,JpaSelection<T>,JpaTupleElement<T>,Path<T>,Selection<T>,Serializable,TupleElement<T>
- All Known Subinterfaces:
JpaCollectionJoin<O,,T> JpaListJoin<O,,T> JpaMapJoin<O,,K, V> JpaPluralJoin<O,,C, E> JpaSetJoin<O,,T> SqmAttributeJoin<O,T>
- All Known Implementing Classes:
AbstractSqmAttributeJoin,AbstractSqmPluralJoin,SqmBagJoin,SqmCorrelatedBagJoin,SqmCorrelatedListJoin,SqmCorrelatedMapJoin,SqmCorrelatedSetJoin,SqmCorrelatedSingularJoin,SqmListJoin,SqmMapJoin,SqmSetJoin,SqmSingularJoin,SqmTreatedBagJoin,SqmTreatedListJoin,SqmTreatedMapJoin,SqmTreatedSetJoin,SqmTreatedSingularJoin
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 TypeMethodDescriptionPersistentAttribute<? super O,?> Return the metamodel attribute corresponding to the join.on(Expression<Boolean> restriction) Modify the join to restrict the result according to the specified ON condition and return the join object.Modify the join to restrict the result according to the specified ON condition and return the join object.on(JpaExpression<Boolean> restriction) on(JpaPredicate... restrictions) Support for JPA's explicit (TREAT) down-casting.treatAs(EntityDomainType<S> treatAsType) Support for JPA's explicit (TREAT) down-casting.Methods inherited from interface jakarta.persistence.criteria.From
getJoins, isCorrelatedMethods inherited from interface jakarta.persistence.criteria.Join
getJoinType, getOn, getParentMethods inherited from interface org.hibernate.query.criteria.JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, equalTo, equalTo, in, in, in, in, isNotNull, isNullMethods inherited from interface org.hibernate.query.criteria.JpaFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetchesMethods inherited from interface org.hibernate.query.criteria.JpaFrom
crossJoin, crossJoin, getCorrelationParent, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, join, joinCollection, joinCollection, joinLateral, joinLateral, joinList, joinList, joinMap, joinMap, joinSet, joinSetMethods inherited from interface org.hibernate.query.criteria.JpaJoinedFrom
getOnMethods inherited from interface org.hibernate.query.criteria.JpaPath
get, get, get, get, getLhs, getNavigablePath, getParentPath, typeMethods inherited from interface org.hibernate.query.criteria.JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface org.hibernate.query.criteria.JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeName, isEnumMethods inherited from interface jakarta.persistence.criteria.Selection
isCompoundSelectionMethods inherited from interface jakarta.persistence.TupleElement
getAlias
-
Method Details
-
getAttribute
PersistentAttribute<? super O,?> getAttribute()Description copied from interface:JoinReturn the metamodel attribute corresponding to the join.- Specified by:
getAttributein interfaceJoin<O,T> - Returns:
- metamodel attribute corresponding to the join
-
on
- Specified by:
onin interfaceJpaJoinedFrom<O,T>
-
on
Description copied from interface:JoinModify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. -
on
- Specified by:
onin interfaceJpaJoinedFrom<O,T>
-
on
Description copied from interface:JoinModify the join to restrict the result according to the specified ON condition and return the join object. Replaces the previous ON condition, if any. -
treatAs
Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting. -
treatAs
Description copied from interface:JpaPathSupport for JPA's explicit (TREAT) down-casting.
-