Module org.dellroad.querystream.jpa
Package org.dellroad.querystream.jpa
Interface FromValue<X,S extends jakarta.persistence.criteria.From<?,X>>
- All Superinterfaces:
ExprStream<X,,S> ExprValue<X,,S> FromStream<X,,S> PathStream<X,,S> PathValue<X,,S> QueryConfigurer<jakarta.persistence.criteria.AbstractQuery<?>,,X, S> QueryStream<X,,S, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> SearchStream<X,,S> SearchValue<X,S>
- All Known Subinterfaces:
RootValue<X>
public interface FromValue<X,S extends jakarta.persistence.criteria.From<?,X>>
extends PathValue<X,S>, FromStream<X,S>
A
FromStream that is guaranteed to return at most a single result.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.dellroad.querystream.jpa.QueryStream
QueryStream.Builder -
Method Summary
Modifier and TypeMethodDescriptionBind an unbound reference to the items in this stream.Bind an unbound reference to the result of applying the given function to the items in this stream.Filter results using the specified boolean property.filter(Function<? super S, ? extends jakarta.persistence.criteria.Expression<Boolean>> predicateBuilder) Filter results using the boolean expression produced by the given function.Add a singular inner join to this stream.join(jakarta.persistence.metamodel.SingularAttribute<? super X, Y> attribute, jakarta.persistence.criteria.JoinType joinType) Add a singular join to this stream using the specified join type.join(jakarta.persistence.metamodel.SingularAttribute<? super X, Y> attribute, jakarta.persistence.criteria.JoinType joinType, Function<? super jakarta.persistence.criteria.Join<X, Y>, ? extends jakarta.persistence.criteria.Expression<Boolean>> on) Add a singular join to this stream using the specified join type and ON condition.Peek at the items in this stream.withFetchGraph(String name) Configure a fetch graph for this query.withFlushMode(jakarta.persistence.FlushModeType flushMode) Set theFlushModeTypeassociated with this query.Associate a hint with this query.Associate hints with this query.withLoadGraph(String name) Configure a load graph for this query.withLockMode(jakarta.persistence.LockModeType lockMode) Set theLockModeTypeassociated with this query.withParam(jakarta.persistence.Parameter<Calendar> parameter, Calendar value, jakarta.persistence.TemporalType temporalType) Bind the value of a query parameter of typeCalendar.withParam(jakarta.persistence.Parameter<Date> parameter, Date value, jakarta.persistence.TemporalType temporalType) Bind the value of a query parameter of typeDate.withParam(jakarta.persistence.Parameter<T> parameter, T value) Bind the value of a query parameter.withParams(Iterable<? extends ParamBinding<?>> params) Associate parameter bindings with this query.Methods inherited from interface org.dellroad.querystream.jpa.ExprStream
asSubquery, count, countDistinct, existsMethods inherited from interface org.dellroad.querystream.jpa.ExprValue
map, map, map, map, mapToDouble, mapToDouble, mapToExpr, mapToFrom, mapToInt, mapToInt, mapToLong, mapToLong, mapToPathMethods inherited from interface org.dellroad.querystream.jpa.FromStream
addRoot, distinct, fetch, fetch, fetch, fetch, findAny, findFirst, findSingle, groupBy, groupBy, groupBy, groupByMulti, having, limit, orderBy, orderBy, orderBy, orderBy, orderBy, orderBy, orderByMulti, skip, thenOrderBy, thenOrderBy, thenOrderBy, thenOrderByMethods inherited from interface org.dellroad.querystream.jpa.PathStream
castMethods inherited from interface org.dellroad.querystream.jpa.QueryConfigurer
configureMethods inherited from interface org.dellroad.querystream.jpa.QueryStream
getEntityManager, getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParams, toCriteriaQuery, toQueryMethods inherited from interface org.dellroad.querystream.jpa.SearchStream
allMatch, allMatch, anyMatch, anyMatch, flatMap, flatMap, flatMap, flatMapKeys, flatMapValues, getQueryType, getResultList, getResultStream, isEmpty, join, join, join, join, join, join, join, join, join, join, join, join, mapToRef, mapToRef, mapToRef, mapToRef, mapToRoot, noneMatch, noneMatchMethods inherited from interface org.dellroad.querystream.jpa.SearchValue
ifPresent, isPresent, mapToSelection, orElse, orElseGet, orElseThrow, toOptional, value
-
Method Details
-
join
default <Y> FromValue<Y,jakarta.persistence.criteria.From<X, joinY>> (jakarta.persistence.metamodel.SingularAttribute<? super X, Y> attribute) Description copied from interface:SearchStreamAdd a singular inner join to this stream.Equivalent to
join(attribute, JoinType.INNER).- Specified by:
joinin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Type Parameters:
Y- associated property type- Parameters:
attribute- associated property- Returns:
- a new stream with specified join
-
join
default <Y> FromValue<Y,jakarta.persistence.criteria.From<X, joinY>> (jakarta.persistence.metamodel.SingularAttribute<? super X, Y> attribute, jakarta.persistence.criteria.JoinType joinType) Description copied from interface:SearchStreamAdd a singular join to this stream using the specified join type.Equivalent to
join(attribute, JoinType.INNER, join -> null).- Specified by:
joinin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Type Parameters:
Y- associated property type- Parameters:
attribute- associated propertyjoinType- type of join- Returns:
- a new stream with specified join
-
join
default <Y> FromValue<Y,jakarta.persistence.criteria.From<X, joinY>> (jakarta.persistence.metamodel.SingularAttribute<? super X, Y> attribute, jakarta.persistence.criteria.JoinType joinType, Function<? super jakarta.persistence.criteria.Join<X, Y>, ? extends jakarta.persistence.criteria.Expression<Boolean>> on) Description copied from interface:SearchStreamAdd a singular join to this stream using the specified join type and ON condition.- Specified by:
joinin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Type Parameters:
Y- associated property type- Parameters:
attribute- associated propertyjoinType- type of joinon- function returning a join ON condition, or returning null for none- Returns:
- a new stream with specified join
-
bind
Description copied from interface:QueryStreamBind an unbound reference to the items in this stream.- Specified by:
bindin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
bindin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
ref- unbound reference- Returns:
- new stream that binds
ref
-
peek
Description copied from interface:QueryStreamPeek at the items in this stream.This is useful in cases where the selection can be modified, e.g., setting join
ONconditions usingJoin.on().- Specified by:
peekin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
peekin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
peekin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
peekin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
peekin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
peekin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
peekin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
peekin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
peeker- peeker into stream- Returns:
- new stream that peeks into this stream
-
bind
<X2,S2 extends jakarta.persistence.criteria.Selection<X2>> FromValue<X,S> bind(Ref<X2, ? super S2> ref, Function<? super S, ? extends S2> refFunction) Description copied from interface:QueryStreamBind an unbound reference to the result of applying the given function to the items in this stream.- Specified by:
bindin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
bindin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
bindin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Type Parameters:
X2- type of the bound valueS2- criteria type of the bound value- Parameters:
ref- unbound referencerefFunction- function mapping this stream'sSelectionto the reference value- Returns:
- new stream that binds
ref
-
filter
Description copied from interface:QueryStreamFilter results using the specified boolean property.Adds to any previously specified filters.
- Specified by:
filterin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
filterin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
attribute- boolean property- Returns:
- new filtered stream
-
filter
FromValue<X,S> filter(Function<? super S, ? extends jakarta.persistence.criteria.Expression<Boolean>> predicateBuilder) Description copied from interface:QueryStreamFilter results using the boolean expression produced by the given function.Adds to any previously specified filters.
- Specified by:
filterin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
filterin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
filterin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
predicateBuilder- function mapping this stream's item to a booleanExpression- Returns:
- new filtered stream
-
withFlushMode
Description copied from interface:QueryStreamSet theFlushModeTypeassociated with this query.- Specified by:
withFlushModein interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFlushModein interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFlushModein interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFlushModein interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFlushModein interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFlushModein interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withFlushModein interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFlushModein interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
flushMode- new flush mode- Returns:
- new stream with the specified flush mode configured
- See Also:
-
Query.setFlushMode(jakarta.persistence.FlushModeType)
-
withLockMode
Description copied from interface:QueryStreamSet theLockModeTypeassociated with this query.- Specified by:
withLockModein interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLockModein interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLockModein interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLockModein interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLockModein interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLockModein interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withLockModein interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLockModein interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
lockMode- new lock mode- Returns:
- new stream with the specified lock mode configured
- See Also:
-
Query.setLockMode(jakarta.persistence.LockModeType)
-
withHint
Description copied from interface:QueryStreamAssociate a hint with this query.- Specified by:
withHintin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withHintin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
name- name of hintvalue- value of hint- Returns:
- new stream with the specified hint configured
- See Also:
-
Query.setHint(java.lang.String, java.lang.Object)
-
withHints
Description copied from interface:QueryStreamAssociate hints with this query.- Specified by:
withHintsin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintsin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintsin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintsin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintsin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintsin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withHintsin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withHintsin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
hints- hints to add- Returns:
- new stream with the specified hints added
- See Also:
-
Query.setHint(java.lang.String, java.lang.Object)
-
withParam
Description copied from interface:QueryStreamBind the value of a query parameter.Replaces any previous binding of the same parameter.
- Specified by:
withParamin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Type Parameters:
T- parameter value type- Parameters:
parameter- the parameter to setvalue- parameter value- Returns:
- new stream with the specified parameter value set
- See Also:
-
Query.setParameter(Parameter, Object)
-
withParam
FromValue<X,S> withParam(jakarta.persistence.Parameter<Date> parameter, Date value, jakarta.persistence.TemporalType temporalType) Description copied from interface:QueryStreamBind the value of a query parameter of typeDate.Replaces any previous binding of the same parameter.
- Specified by:
withParamin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
parameter- the parameter to setvalue- parameter valuetemporalType- temporal type forvalue- Returns:
- new stream with the specified parameter value set
- See Also:
-
Query.setParameter(Parameter, Date, TemporalType)
-
withParam
FromValue<X,S> withParam(jakarta.persistence.Parameter<Calendar> parameter, Calendar value, jakarta.persistence.TemporalType temporalType) Description copied from interface:QueryStreamBind the value of a query parameter of typeCalendar.Replaces any previous binding of the same parameter.
- Specified by:
withParamin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
parameter- the parameter to setvalue- parameter valuetemporalType- temporal type forvalue- Returns:
- new stream with the specified parameter value set
- See Also:
-
Query.setParameter(Parameter, Calendar, TemporalType)
-
withParams
Description copied from interface:QueryStreamAssociate parameter bindings with this query.Replaces any previous bindings of the same parameters.
- Specified by:
withParamsin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamsin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamsin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamsin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamsin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamsin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamsin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withParamsin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
params- bindings to add- Returns:
- new stream with the specified parameter bindings added
- See Also:
-
Query.setParameter(Parameter, Object)
-
withLoadGraph
Description copied from interface:QueryStreamConfigure a load graph for this query.Equivalent to
withHint("jakarta.persistence.loadgraph", name).- Specified by:
withLoadGraphin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLoadGraphin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLoadGraphin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLoadGraphin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLoadGraphin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLoadGraphin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withLoadGraphin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withLoadGraphin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
name- name of load graph- Returns:
- new stream with the specified load graph configured
-
withFetchGraph
Description copied from interface:QueryStreamConfigure a fetch graph for this query.Equivalent to
withHint("jakarta.persistence.fetchgraph", name).- Specified by:
withFetchGraphin interfaceExprStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFetchGraphin interfaceExprValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFetchGraphin interfaceFromStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFetchGraphin interfacePathStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFetchGraphin interfacePathValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFetchGraphin interfaceQueryStream<X,S extends jakarta.persistence.criteria.From<?, X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withFetchGraphin interfaceSearchStream<X,S extends jakarta.persistence.criteria.From<?, X>> - Specified by:
withFetchGraphin interfaceSearchValue<X,S extends jakarta.persistence.criteria.From<?, X>> - Parameters:
name- name of fetch graph- Returns:
- new stream with the specified fetch graph configured
-