Interface ExprValue<X,S extends jakarta.persistence.criteria.Expression<X>>
- All Superinterfaces:
ExprStream<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:
BooleanValue,DoubleValue,FromValue<X,,S> IntValue,LongValue,PathValue<X,,S> RootValue<X>
ExprStream 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.Map this stream to an associated map property.default <E,C extends Collection<E>>
ExprValue<C,jakarta.persistence.criteria.Expression<C>> Map this stream to an associated collection property.default <Y> PathValue<Y,jakarta.persistence.criteria.Path<Y>> Map this stream to an associated property.default <Y> ExprValue<Y,jakarta.persistence.criteria.Expression<Y>> map(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.Expression<Y>> exprFunction) Map this stream into a stream whose elements are the result of applying the given function.default DoubleValuemapToDouble(jakarta.persistence.metamodel.SingularAttribute<? super X, ? extends Number> attribute) Map this stream to an associated floating point value.default DoubleValuemapToDouble(Function<? super S, ? extends jakarta.persistence.criteria.Expression<? extends Number>> doubleExprFunction) Map this stream into a stream of double values that are the result of applying the given function.default <Y> ExprValue<Y,jakarta.persistence.criteria.Expression<Y>> mapToExpr(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.Expression<Y>> exprFunction) Map this stream into a stream whose elements are the result of applying the given function.default <Z,Y> FromValue<Y, jakarta.persistence.criteria.From<Z, Y>> mapToFrom(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.From<Z, Y>> fromFunction) Map this stream into a stream whose elements are the result of applying the given function.default IntValueMap this stream to an associated integer value.default IntValuemapToInt(Function<? super S, ? extends jakarta.persistence.criteria.Expression<? extends Number>> intExprFunction) Map this stream into a stream of integer values that are the result of applying the given function.default LongValueMap this stream to an associated long value.default LongValuemapToLong(Function<? super S, ? extends jakarta.persistence.criteria.Expression<? extends Number>> longExprFunction) Map this stream into a stream of long values that are the result of applying the given function.default <Y> PathValue<Y,jakarta.persistence.criteria.Path<Y>> mapToPath(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.Path<Y>> pathFunction) Map this stream into a stream whose elements are the result of applying the given function.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
addRoot, asSubquery, count, countDistinct, distinct, exists, 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.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, 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
-
map
default <Y> PathValue<Y,jakarta.persistence.criteria.Path<Y>> map(jakarta.persistence.metamodel.SingularAttribute<? super X, Y> attribute) Description copied from interface:SearchStreamMap this stream to an associated property.Unlike
join(), this method allows mapping to arbitrary, non-entity properties.If the property is an entity, then this method works just like an inner
join(). In particular, the associated entity must exist. For that reason, and also becausejoin()returns the more specific typeFromStream,join()is preferred over this method when the associated property is an entity.- Specified by:
mapin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
Y- property type- Parameters:
attribute- associated property- Returns:
- mapped stream
-
map
default <Y> ExprValue<Y,jakarta.persistence.criteria.Expression<Y>> map(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.Expression<Y>> exprFunction) Description copied from interface:SearchStreamMap this stream into a stream whose elements are the result of applying the given function.- Specified by:
mapin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
Y- mapped expression type- Parameters:
type- new item typeexprFunction- function mapping this stream'sExpressionto aExpression- Returns:
- mapped stream
-
map
default <E,C extends Collection<E>> ExprValue<C,jakarta.persistence.criteria.Expression<C>> map(jakarta.persistence.metamodel.PluralAttribute<? super X, C, E> attribute) Description copied from interface:SearchStreamMap this stream to an associated collection property.- Specified by:
mapin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
E- collection element typeC- collection type- Parameters:
attribute- associated property- Returns:
- mapped stream
-
map
default <K,V, ExprValue<M,M extends Map<K, V>> jakarta.persistence.criteria.Expression<M>> map(jakarta.persistence.metamodel.MapAttribute<? super X, K, V> attribute) Description copied from interface:SearchStreamMap this stream to an associated map property.- Specified by:
mapin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
K- map key typeV- map value typeM- map type- Parameters:
attribute- associated property- Returns:
- mapped stream
-
mapToExpr
default <Y> ExprValue<Y,jakarta.persistence.criteria.Expression<Y>> mapToExpr(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.Expression<Y>> exprFunction) Description copied from interface:SearchStreamMap this stream into a stream whose elements are the result of applying the given function.- Specified by:
mapToExprin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
Y- mapped target type- Parameters:
type- new item typeexprFunction- function mapping this stream'sSelectionto anExpression- Returns:
- mapped stream
-
mapToPath
default <Y> PathValue<Y,jakarta.persistence.criteria.Path<Y>> mapToPath(Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.Path<Y>> pathFunction) Description copied from interface:SearchStreamMap this stream into a stream whose elements are the result of applying the given function.- Specified by:
mapToPathin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
Y- mapped expresssion type- Parameters:
type- new item typepathFunction- function mapping this stream'sSelectionto aPath- Returns:
- mapped stream
-
mapToFrom
default <Z,Y> FromValue<Y,jakarta.persistence.criteria.From<Z, mapToFromY>> (Class<Y> type, Function<? super S, ? extends jakarta.persistence.criteria.From<Z, Y>> fromFunction) Description copied from interface:SearchStreamMap this stream into a stream whose elements are the result of applying the given function.- Specified by:
mapToFromin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Type Parameters:
Z- mapped source typeY- mapped target type- Parameters:
type- new item typefromFunction- function mapping this stream'sSelectionto aFrom- Returns:
- mapped stream
-
mapToDouble
default DoubleValue mapToDouble(jakarta.persistence.metamodel.SingularAttribute<? super X, ? extends Number> attribute) Description copied from interface:SearchStreamMap this stream to an associated floating point value.- Specified by:
mapToDoublein interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
attribute- associated numerically-valued property- Returns:
- mapped stream of doubles
-
mapToDouble
default DoubleValue mapToDouble(Function<? super S, ? extends jakarta.persistence.criteria.Expression<? extends Number>> doubleExprFunction) Description copied from interface:SearchStreamMap this stream into a stream of double values that are the result of applying the given function.- Specified by:
mapToDoublein interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
doubleExprFunction- function mapping this stream'sExpressionto a numericalExpression- Returns:
- mapped stream of doubles
-
mapToLong
default LongValue mapToLong(jakarta.persistence.metamodel.SingularAttribute<? super X, ? extends Number> attribute) Description copied from interface:SearchStreamMap this stream to an associated long value.- Specified by:
mapToLongin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
attribute- associated numerically-valued property- Returns:
- mapped stream of longs
-
mapToLong
default LongValue mapToLong(Function<? super S, ? extends jakarta.persistence.criteria.Expression<? extends Number>> longExprFunction) Description copied from interface:SearchStreamMap this stream into a stream of long values that are the result of applying the given function.- Specified by:
mapToLongin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
longExprFunction- function mapping this stream'sExpressionto a numericalExpression- Returns:
- mapped stream of longs
-
mapToInt
default IntValue mapToInt(jakarta.persistence.metamodel.SingularAttribute<? super X, ? extends Number> attribute) Description copied from interface:SearchStreamMap this stream to an associated integer value.- Specified by:
mapToIntin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
attribute- associated numerically-valued property- Returns:
- mapped stream of integers
-
mapToInt
default IntValue mapToInt(Function<? super S, ? extends jakarta.persistence.criteria.Expression<? extends Number>> intExprFunction) Description copied from interface:SearchStreamMap this stream into a stream of integer values that are the result of applying the given function.- Specified by:
mapToIntin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
intExprFunction- function mapping this stream'sExpressionto a numericalExpression- Returns:
- mapped stream of integers
-
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.Expression<X>> - Specified by:
bindin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
bindin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
bindin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
peekin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
peekin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
peekin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
peeker- peeker into stream- Returns:
- new stream that peeks into this stream
-
bind
<X2,S2 extends jakarta.persistence.criteria.Selection<X2>> ExprValue<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.Expression<X>> - Specified by:
bindin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
bindin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
bindin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
filterin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
filterin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
filterin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
attribute- boolean property- Returns:
- new filtered stream
-
filter
ExprValue<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.Expression<X>> - Specified by:
filterin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
filterin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
filterin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withFlushModein interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withFlushModein interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withFlushModein interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withLockModein interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withLockModein interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withLockModein interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withHintin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withHintin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withHintin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withHintsin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withHintsin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withHintsin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withParamin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withParamin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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
ExprValue<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.Expression<X>> - Specified by:
withParamin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withParamin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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
ExprValue<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.Expression<X>> - Specified by:
withParamin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withParamin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withParamsin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withParamsin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withParamsin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withLoadGraphin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withLoadGraphin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withLoadGraphin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<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.Expression<X>> - Specified by:
withFetchGraphin interfaceQueryStream<X,S extends jakarta.persistence.criteria.Expression<X>, jakarta.persistence.criteria.AbstractQuery<?>, jakarta.persistence.criteria.CriteriaQuery<X>, jakarta.persistence.TypedQuery<X>> - Specified by:
withFetchGraphin interfaceSearchStream<X,S extends jakarta.persistence.criteria.Expression<X>> - Specified by:
withFetchGraphin interfaceSearchValue<X,S extends jakarta.persistence.criteria.Expression<X>> - Parameters:
name- name of fetch graph- Returns:
- new stream with the specified fetch graph configured
-