Interface JpaFrom<O,T>
- All Superinterfaces:
Expression<T>, FetchParent<O,T>, From<O, T>, JpaCriteriaNode, JpaExpression<T>, JpaFetchParent<O, T>, JpaPath<T>, JpaSelection<T>, JpaTupleElement<T>, Path<T>, Selection<T>, Serializable, TupleElement<T>
- All Known Subinterfaces:
JpaCollectionJoin<O,T>, JpaCrossJoin<L, T>, JpaDerivedFrom<T>, JpaDerivedJoin<T>, JpaDerivedRoot<T>, JpaEntityJoin<L, R>, JpaFunctionFrom<O, T>, JpaFunctionJoin<E>, JpaFunctionRoot<E>, JpaJoin<L, R>, JpaListJoin<O, T>, JpaMapJoin<O, K, V>, JpaPluralJoin<O, C, E>, JpaRoot<T>, JpaSetJoin<O, T>, JpaTreatedFrom<L, R, R1>, JpaTreatedJoin<L, R, R1>, SqmAttributeJoin<O, T>, SqmCorrelatedJoin<L, R>, SqmCorrelatedSingularValuedJoin<L, R>, SqmCorrelation<L, R>, SqmFrom<L, R>, SqmJoin<L, R>, SqmSingularValuedJoin<L, R>, SqmTreatedAttributeJoin<L, R, R1>, SqmTreatedFrom<L, R, R1>, SqmTreatedJoin<L, R, R1>
- All Known Implementing Classes:
AbstractSqmAttributeJoin, AbstractSqmFrom, AbstractSqmJoin, AbstractSqmPluralJoin, SqmBagJoin, SqmCorrelatedBagJoin, SqmCorrelatedCrossJoin, SqmCorrelatedCteJoin, SqmCorrelatedDerivedJoin, SqmCorrelatedDerivedRoot, SqmCorrelatedDerivedRootJoin, SqmCorrelatedEntityJoin, SqmCorrelatedListJoin, SqmCorrelatedMapJoin, SqmCorrelatedPluralPartJoin, SqmCorrelatedRoot, SqmCorrelatedRootJoin, SqmCorrelatedSetJoin, SqmCorrelatedSingularJoin, SqmCrossJoin, SqmCteJoin, SqmCteRoot, SqmDerivedJoin, SqmDerivedRoot, SqmEntityJoin, SqmFunctionJoin, SqmFunctionRoot, SqmListJoin, SqmMapJoin, SqmPluralPartJoin, SqmRoot, SqmSetJoin, SqmSingularJoin, SqmTreatedBagJoin, SqmTreatedCrossJoin, SqmTreatedEntityJoin, SqmTreatedListJoin, SqmTreatedMapJoin, SqmTreatedPluralPartJoin, SqmTreatedRoot, SqmTreatedSetJoin, SqmTreatedSingularJoin
API extension to the JPA
From contract-
Method Summary
Modifier and TypeMethodDescription<X> JpaCrossJoin<T, X> Create a cross join to the given entity type.<X> JpaCrossJoin<T, X> crossJoin(EntityDomainType<X> entity) Create a cross join to the given entity type.Return the correlation parent of this from element.id()Create an expression for the identifier of this from element.<X> JpaDerivedJoin<X> Create a derived join for the given subquery.<X> JpaDerivedJoin<X> Create a derived join for the given subquery.<X> JpaDerivedJoin<X> Create a derived join for the given subquery.<Y> JpaCollectionJoin<T, Y> join(CollectionAttribute<? super T, Y> collection) Create a collection join to the given attribute.<Y> JpaCollectionJoin<T, Y> join(CollectionAttribute<? super T, Y> collection, JoinType jt) Create a collection join to the given attribute.join(EntityType<Y> entity) Create an entity join.join(EntityType<Y> entity, JoinType joinType) Create an entity join.<Y> JpaListJoin<T, Y> join(ListAttribute<? super T, Y> list) Create a list join to the given attribute.<Y> JpaListJoin<T, Y> join(ListAttribute<? super T, Y> list, JoinType jt) Create a list join to the given attribute.<K,V> JpaMapJoin <T, K, V> join(MapAttribute<? super T, K, V> map) Create a map join to the given attribute.<K,V> JpaMapJoin <T, K, V> join(MapAttribute<? super T, K, V> map, JoinType jt) Create a map join to the given attribute.<Y> JpaSetJoin<T, Y> join(SetAttribute<? super T, Y> set) Create a set join to the given attribute.<Y> JpaSetJoin<T, Y> join(SetAttribute<? super T, Y> set, JoinType jt) Create a set join to the given attribute.join(SingularAttribute<? super T, Y> attribute) Create a join to the given singular attribute.join(SingularAttribute<? super T, Y> attribute, JoinType jt) Create a join to the given singular attribute.<X> JpaEntityJoin<T, X> Create an entity join.<Y> JpaEntityJoin<T, Y> Create an entity join.<Y> JpaEntityJoin<T, Y> Create an entity join.Create a join to the named attribute.Create a join to the named attribute.<X> JpaEntityJoin<T, X> join(EntityDomainType<X> entity) Create an entity join.<X> JpaEntityJoin<T, X> join(EntityDomainType<X> entity, JoinType joinType) Create an entity join.<X> JpaJoin<?, X> join(JpaCteCriteria<X> cte) Create a join to the given CTE.<X> JpaJoin<?, X> join(JpaCteCriteria<X> cte, JoinType joinType) Create a join to the given CTE.<X> JpaFunctionJoin<X> join(JpaSetReturningFunction<X> function) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withSqmJoinType.INNER.<X> JpaFunctionJoin<X> join(JpaSetReturningFunction<X> function, SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType, boolean)passingfalsefor thelateralparameter.<X> JpaFunctionJoin<X> join(JpaSetReturningFunction<X> function, SqmJoinType joinType, boolean lateral) Creates and returns a join node for the given set returning function.<X> JpaFunctionJoin<X> joinArray(SingularAttribute<? super T, X[]> arrayAttribute) Like calling the overloadjoinArray(SingularAttribute, SqmJoinType)withSqmJoinType.INNER.<X> JpaFunctionJoin<X> joinArray(SingularAttribute<? super T, X[]> arrayAttribute, SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestArray(Expression)with the given attribute.<X> JpaFunctionJoin<X> Like calling the overloadjoinArray(String, SqmJoinType)withSqmJoinType.INNER.<X> JpaFunctionJoin<X> joinArray(String arrayAttributeName, SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestArray(Expression)with the result ofJpaPath.get(String)passing the given attribute name.<X> JpaFunctionJoin<X> joinArrayCollection(SingularAttribute<? super T, ? extends Collection<X>> collectionAttribute) Like calling the overloadjoinArrayCollection(SingularAttribute, SqmJoinType)withSqmJoinType.INNER.<X> JpaFunctionJoin<X> joinArrayCollection(SingularAttribute<? super T, ? extends Collection<X>> collectionAttribute, SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestCollection(Expression)with the given attribute.<X> JpaFunctionJoin<X> joinArrayCollection(String collectionAttributeName) Like calling the overloadjoinArrayCollection(String, SqmJoinType)withSqmJoinType.INNER.<X> JpaFunctionJoin<X> joinArrayCollection(String collectionAttributeName, SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestCollection(Expression)with the result ofJpaPath.get(String)passing the given attribute name.<Y> JpaCollectionJoin<T, Y> joinCollection(String attributeName) Create a collection join to the named attribute.<Y> JpaCollectionJoin<T, Y> joinCollection(String attributeName, JoinType jt) Create a collection join to the named attribute.<X> JpaDerivedJoin<X> joinLateral(Subquery<X> subquery) Create a lateral derived join for the given subquery.<X> JpaDerivedJoin<X> joinLateral(Subquery<X> subquery, JoinType joinType) Create a lateral derived join for the given subquery.<X> JpaFunctionJoin<X> joinLateral(JpaSetReturningFunction<X> function) Like calling the overloadjoinLateral(JpaSetReturningFunction, SqmJoinType)withSqmJoinType.INNER.<X> JpaFunctionJoin<X> joinLateral(JpaSetReturningFunction<X> function, SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType, boolean)passingtruefor thelateralparameter.<Y> JpaListJoin<T, Y> Create a list join to the named attribute.<Y> JpaListJoin<T, Y> Create a list join to the named attribute.<K,V> JpaMapJoin <T, K, V> Create a map join to the named attribute.<K,V> JpaMapJoin <T, K, V> Create a map join to the named attribute.<Y> JpaSetJoin<T, Y> Create a set join to the named attribute.<Y> JpaSetJoin<T, Y> Create a set join to the named attribute.Downcast this from element to the specified subtype.<S extends T>
JpaTreatedFrom<O, T, S> Downcast this from element to the specified subtype.<S extends T>
JpaTreatedFrom<O, T, S> treatAs(EntityDomainType<S> treatJavaType) Downcast this from element to the specified subtype.Methods inherited from interface From
getJoinList, getJoins, isCorrelatedMethods inherited from interface JpaExpression
as, asBigDecimal, asBigInteger, asDouble, asFloat, asInteger, asLong, asString, cast, coalesce, coalesce, count, countDistinct, equalTo, equalTo, in, in, in, in, in, isMember, isNotMember, isNotNull, isNull, notEqualTo, notEqualTo, nullif, nullif, selectCase, selectCaseMethods inherited from interface JpaFetchParent
fetch, fetch, fetch, fetch, fetch, fetch, getFetchesMethods inherited from interface JpaPath
get, get, get, get, getLhs, getNavigablePath, getParentPath, typeMethods inherited from interface JpaSelection
alias, getCompoundSelectionItems, getSelectionItemsMethods inherited from interface JpaTupleElement
getJavaType, getJavaTypeDescriptor, getJavaTypeIfKnown, getJavaTypeName, isEnumMethods inherited from interface Selection
isCompoundSelectionMethods inherited from interface TupleElement
getAlias
-
Method Details
-
getCorrelationParent
-
join
-
join
-
join
-
join
-
join
-
join
Create an entity join. -
join
@Nonnull <X> JpaEntityJoin<T,X> join(@Nonnull EntityDomainType<X> entity, @Nonnull JoinType joinType) Create an entity join. -
join
Create a derived join for the given subquery. -
join
-
joinLateral
Create a lateral derived join for the given subquery. -
joinLateral
-
join
-
join
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> join(@Nonnull JpaSetReturningFunction<X> function) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withSqmJoinType.INNER.- Since:
- 7.0
- See Also:
-
join
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> join(@Nonnull JpaSetReturningFunction<X> function, @Nonnull SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType, boolean)passingfalsefor thelateralparameter.- Since:
- 7.0
- See Also:
-
joinLateral
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinLateral(@Nonnull JpaSetReturningFunction<X> function) Like calling the overloadjoinLateral(JpaSetReturningFunction, SqmJoinType)withSqmJoinType.INNER.- Since:
- 7.0
- See Also:
-
joinLateral
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinLateral(@Nonnull JpaSetReturningFunction<X> function, @Nonnull SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType, boolean)passingtruefor thelateralparameter.- Since:
- 7.0
- See Also:
-
join
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> join(@Nonnull JpaSetReturningFunction<X> function, @Nonnull SqmJoinType joinType, boolean lateral) Creates and returns a join node for the given set returning function. If function arguments refer to correlated paths, thelateralargument must be set totrue. Failing to do so when necessary may lead to an error during query compilation or execution.- Since:
- 7.0
-
joinArray
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArray(@Nonnull String arrayAttributeName) Like calling the overloadjoinArray(String, SqmJoinType)withSqmJoinType.INNER.- Since:
- 7.0
- See Also:
-
joinArray
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArray(@Nonnull String arrayAttributeName, @Nonnull SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestArray(Expression)with the result ofJpaPath.get(String)passing the given attribute name.- Since:
- 7.0
- See Also:
-
joinArray
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArray(@Nonnull SingularAttribute<? super T, X[]> arrayAttribute) Like calling the overloadjoinArray(SingularAttribute, SqmJoinType)withSqmJoinType.INNER.- Since:
- 7.0
- See Also:
-
joinArray
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArray(@Nonnull SingularAttribute<? super T, X[]> arrayAttribute, @Nonnull SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestArray(Expression)with the given attribute.- Since:
- 7.0
- See Also:
-
joinArrayCollection
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArrayCollection(@Nonnull String collectionAttributeName) Like calling the overloadjoinArrayCollection(String, SqmJoinType)withSqmJoinType.INNER.- Since:
- 7.0
- See Also:
-
joinArrayCollection
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArrayCollection(@Nonnull String collectionAttributeName, @Nonnull SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestCollection(Expression)with the result ofJpaPath.get(String)passing the given attribute name.- Since:
- 7.0
- See Also:
-
joinArrayCollection
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArrayCollection(@Nonnull SingularAttribute<? super T, ? extends Collection<X>> collectionAttribute) Like calling the overloadjoinArrayCollection(SingularAttribute, SqmJoinType)withSqmJoinType.INNER.- Since:
- 7.0
- See Also:
-
joinArrayCollection
@Incubating(since="6.3") @Nonnull <X> JpaFunctionJoin<X> joinArrayCollection(@Nonnull SingularAttribute<? super T, ? extends Collection<X>> collectionAttribute, @Nonnull SqmJoinType joinType) Like calling the overloadjoin(JpaSetReturningFunction, SqmJoinType)withHibernateCriteriaBuilder.unnestCollection(Expression)with the given attribute.- Since:
- 7.0
- See Also:
-
join
Create a join to the given CTE. -
join
-
crossJoin
Create a cross join to the given entity type. -
crossJoin
@Incubating(since="6.3") @Nonnull <X> JpaCrossJoin<T,X> crossJoin(@Nonnull EntityDomainType<X> entity) Create a cross join to the given entity type. -
join
-
join
-
join
Create a collection join to the given attribute. -
join
Create a set join to the given attribute. -
join
Create a list join to the given attribute. -
join
Create a map join to the given attribute. -
join
-
join
-
join
-
join
-
join
-
joinCollection
Create a collection join to the named attribute.- Specified by:
joinCollectionin interfaceFrom<O,T>
-
joinSet
-
joinList
-
joinMap
-
join
-
joinCollection
-
joinSet
-
joinList
-
joinMap
-
treatAs
-
treat
-
treatAs
Downcast this from element to the specified subtype. -
id
Create an expression for the identifier of this from element.
-