public interface DoubleValue extends ExprValue<Double,Expression<Double>>, DoubleStream
ExprValue.QueryStream.Builder| Modifier and Type | Method and Description |
|---|---|
DoubleValue |
bind(Ref<Double,? super Expression<Double>> ref)
Bind an unbound reference to the items in this stream.
|
<X2,S2 extends Selection<X2>> |
bind(Ref<X2,? super S2> ref,
Function<? super Expression<Double>,? extends S2> refFunction)
Bind an unbound reference to the result of applying the given function to the items in this stream.
|
default double |
doubleValue()
Build and evaluate a JPA query based on this instance and return the single non-NULL result.
|
DoubleValue |
filter(Function<? super Expression<Double>,? extends Expression<Boolean>> predicateBuilder)
Filter results using the boolean expression produced by the given function.
|
DoubleValue |
peek(Consumer<? super Expression<Double>> peeker)
Peek at the items in this stream.
|
DoubleValue |
withFetchGraph(String name)
Configure a fetch graph for this query.
|
DoubleValue |
withFlushMode(FlushModeType flushMode)
Set the
FlushModeType associated with this query. |
DoubleValue |
withHint(String name,
Object value)
Associate a hint with this query.
|
DoubleValue |
withHints(Map<String,Object> hints)
Associate hints with this query.
|
DoubleValue |
withLoadGraph(String name)
Configure a load graph for this query.
|
DoubleValue |
withLockMode(LockModeType lockMode)
Set the
LockModeType associated with this query. |
DoubleValue |
withParam(Parameter<Calendar> parameter,
Calendar value,
TemporalType temporalType)
Bind the value of a query parameter of type
Calendar. |
DoubleValue |
withParam(Parameter<Date> parameter,
Date value,
TemporalType temporalType)
Bind the value of a query parameter of type
Date. |
<T> DoubleValue |
withParam(Parameter<T> parameter,
T value)
Bind the value of a query parameter.
|
DoubleValue |
withParams(Iterable<? extends ParamBinding<?>> params)
Associate parameter bindings with this query.
|
filter, map, map, map, map, mapToDouble, mapToDouble, mapToExpr, mapToFrom, mapToInt, mapToInt, mapToLong, mapToLong, mapToPathifPresent, isPresent, mapToSelection, orElse, orElseGet, orElseThrow, toOptional, valueaddRoot, average, distinct, findAny, findFirst, findSingle, groupBy, groupBy, groupByMulti, having, limit, max, min, orderBy, orderBy, orderBy, orderByMulti, skip, sum, thenOrderBy, thenOrderBy, thenOrderByasSubquery, count, countDistinct, exists, fetch, fetch, fetch, fetch, groupBy, orderBy, orderBy, orderBy, thenOrderByallMatch, 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, noneMatchgetEntityManager, getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParams, newBuilder, toCriteriaQuery, toQueryconfiguredefault double doubleValue()
This variant of SearchValue.value() is useful when it is known that NULL won't be returned.
NoResultException - if the query returns NULLDoubleValue bind(Ref<Double,? super Expression<Double>> ref)
QueryStreambind in interface DoubleStreambind in interface ExprStream<Double,Expression<Double>>bind in interface ExprValue<Double,Expression<Double>>bind in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>bind in interface SearchStream<Double,Expression<Double>>bind in interface SearchValue<Double,Expression<Double>>ref - unbound referencerefDoubleValue peek(Consumer<? super Expression<Double>> peeker)
QueryStream
This is useful in cases where the selection can be modified, e.g., setting join ON conditions
using Join.on().
peek in interface DoubleStreampeek in interface ExprStream<Double,Expression<Double>>peek in interface ExprValue<Double,Expression<Double>>peek in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>peek in interface SearchStream<Double,Expression<Double>>peek in interface SearchValue<Double,Expression<Double>>peeker - peeker into stream<X2,S2 extends Selection<X2>> DoubleValue bind(Ref<X2,? super S2> ref, Function<? super Expression<Double>,? extends S2> refFunction)
QueryStreambind in interface DoubleStreambind in interface ExprStream<Double,Expression<Double>>bind in interface ExprValue<Double,Expression<Double>>bind in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>bind in interface SearchStream<Double,Expression<Double>>bind in interface SearchValue<Double,Expression<Double>>X2 - type of the bound valueS2 - criteria type of the bound valueref - unbound referencerefFunction - function mapping this stream's Selection to the reference valuerefDoubleValue filter(Function<? super Expression<Double>,? extends Expression<Boolean>> predicateBuilder)
QueryStreamAdds to any previously specified filters.
filter in interface DoubleStreamfilter in interface ExprStream<Double,Expression<Double>>filter in interface ExprValue<Double,Expression<Double>>filter in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>filter in interface SearchStream<Double,Expression<Double>>filter in interface SearchValue<Double,Expression<Double>>predicateBuilder - function mapping this stream's item to a boolean ExpressionDoubleValue withFlushMode(FlushModeType flushMode)
QueryStreamFlushModeType associated with this query.withFlushMode in interface DoubleStreamwithFlushMode in interface ExprStream<Double,Expression<Double>>withFlushMode in interface ExprValue<Double,Expression<Double>>withFlushMode in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withFlushMode in interface SearchStream<Double,Expression<Double>>withFlushMode in interface SearchValue<Double,Expression<Double>>flushMode - new flush modeQuery.setFlushMode(javax.persistence.FlushModeType)DoubleValue withLockMode(LockModeType lockMode)
QueryStreamLockModeType associated with this query.withLockMode in interface DoubleStreamwithLockMode in interface ExprStream<Double,Expression<Double>>withLockMode in interface ExprValue<Double,Expression<Double>>withLockMode in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withLockMode in interface SearchStream<Double,Expression<Double>>withLockMode in interface SearchValue<Double,Expression<Double>>lockMode - new lock modeQuery.setLockMode(javax.persistence.LockModeType)DoubleValue withHint(String name, Object value)
QueryStreamwithHint in interface DoubleStreamwithHint in interface ExprStream<Double,Expression<Double>>withHint in interface ExprValue<Double,Expression<Double>>withHint in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withHint in interface SearchStream<Double,Expression<Double>>withHint in interface SearchValue<Double,Expression<Double>>name - name of hintvalue - value of hintQuery.setHint(java.lang.String, java.lang.Object)DoubleValue withHints(Map<String,Object> hints)
QueryStreamwithHints in interface DoubleStreamwithHints in interface ExprStream<Double,Expression<Double>>withHints in interface ExprValue<Double,Expression<Double>>withHints in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withHints in interface SearchStream<Double,Expression<Double>>withHints in interface SearchValue<Double,Expression<Double>>hints - hints to addQuery.setHint(java.lang.String, java.lang.Object)<T> DoubleValue withParam(Parameter<T> parameter, T value)
QueryStreamReplaces any previous binding of the same parameter.
withParam in interface DoubleStreamwithParam in interface ExprStream<Double,Expression<Double>>withParam in interface ExprValue<Double,Expression<Double>>withParam in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withParam in interface SearchStream<Double,Expression<Double>>withParam in interface SearchValue<Double,Expression<Double>>T - parameter value typeparameter - the parameter to setvalue - parameter valueQuery.setParameter(javax.persistence.Parameter, Object)DoubleValue withParam(Parameter<Date> parameter, Date value, TemporalType temporalType)
QueryStreamDate.
Replaces any previous binding of the same parameter.
withParam in interface DoubleStreamwithParam in interface ExprStream<Double,Expression<Double>>withParam in interface ExprValue<Double,Expression<Double>>withParam in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withParam in interface SearchStream<Double,Expression<Double>>withParam in interface SearchValue<Double,Expression<Double>>parameter - the parameter to setvalue - parameter valuetemporalType - temporal type for valueQuery.setParameter(javax.persistence.Parameter, Date, TemporalType)DoubleValue withParam(Parameter<Calendar> parameter, Calendar value, TemporalType temporalType)
QueryStreamCalendar.
Replaces any previous binding of the same parameter.
withParam in interface DoubleStreamwithParam in interface ExprStream<Double,Expression<Double>>withParam in interface ExprValue<Double,Expression<Double>>withParam in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withParam in interface SearchStream<Double,Expression<Double>>withParam in interface SearchValue<Double,Expression<Double>>parameter - the parameter to setvalue - parameter valuetemporalType - temporal type for valueQuery.setParameter(javax.persistence.Parameter, Calendar, TemporalType)DoubleValue withParams(Iterable<? extends ParamBinding<?>> params)
QueryStreamReplaces any previous bindings of the same parameters.
withParams in interface DoubleStreamwithParams in interface ExprStream<Double,Expression<Double>>withParams in interface ExprValue<Double,Expression<Double>>withParams in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withParams in interface SearchStream<Double,Expression<Double>>withParams in interface SearchValue<Double,Expression<Double>>params - bindings to addQuery.setParameter(javax.persistence.Parameter, Object)DoubleValue withLoadGraph(String name)
QueryStream
Equivalent to withHint("javax.persistence.loadgraph", name).
withLoadGraph in interface DoubleStreamwithLoadGraph in interface ExprStream<Double,Expression<Double>>withLoadGraph in interface ExprValue<Double,Expression<Double>>withLoadGraph in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withLoadGraph in interface SearchStream<Double,Expression<Double>>withLoadGraph in interface SearchValue<Double,Expression<Double>>name - name of load graphDoubleValue withFetchGraph(String name)
QueryStream
Equivalent to withHint("javax.persistence.fetchgraph", name).
withFetchGraph in interface DoubleStreamwithFetchGraph in interface ExprStream<Double,Expression<Double>>withFetchGraph in interface ExprValue<Double,Expression<Double>>withFetchGraph in interface QueryStream<Double,Expression<Double>,AbstractQuery<?>,CriteriaQuery<Double>,TypedQuery<Double>>withFetchGraph in interface SearchStream<Double,Expression<Double>>withFetchGraph in interface SearchValue<Double,Expression<Double>>name - name of fetch graphCopyright © 2023. All rights reserved.