| Package | Description |
|---|---|
| org.dellroad.querystream.jpa |
QueryStream API for the Java Persistence Architecture (JPA).
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
BooleanValue
A boolean
ExprValue. |
interface |
DeleteStream<X>
Builder for JPA criteria bulk delete queries using a
Stream-like API. |
interface |
DoubleStream
SearchStream containing Double values. |
interface |
DoubleValue
A double
ExprValue. |
interface |
ExprStream<X,S extends Expression<X>>
SearchStream containing items representable as Expressions. |
interface |
ExprValue<X,S extends Expression<X>>
An
ExprStream that is guaranteed to return at most a single result. |
interface |
FromStream<X,S extends From<?,X>>
SearchStream containing items representable as Froms. |
interface |
FromValue<X,S extends From<?,X>>
A
FromStream that is guaranteed to return at most a single result. |
interface |
IntStream
SearchStream containing Integer values. |
interface |
IntValue
A int
ExprValue. |
interface |
LongStream
SearchStream containing Long values. |
interface |
LongValue
A long
ExprValue. |
interface |
PathStream<X,S extends Path<X>>
SearchStream containing items representable as Paths. |
interface |
PathValue<X,S extends Path<X>>
A
PathStream that is guaranteed to return at most a single result. |
interface |
RootStream<X>
SearchStream containing items representable as Roots. |
interface |
RootValue<X>
A
RootStream that is guaranteed to return at most a single result. |
interface |
SearchStream<X,S extends Selection<X>>
Builder for JPA criteria search queries, based on configuration through a
Stream-like API. |
interface |
SearchValue<X,S extends Selection<X>>
A
SearchStream that is guaranteed to return at most a single result. |
interface |
UpdateStream<X>
Builder for JPA criteria bulk update queries using a
Stream-like API. |
| Modifier and Type | Method and Description |
|---|---|
QueryStream<X,S,C,C2,Q> |
QueryStream.bind(Ref<X,? super S> ref)
Bind an unbound reference to the items in this stream.
|
<X2,S2 extends Selection<X2>> |
QueryStream.bind(Ref<X2,? super S2> ref,
Function<? super S,? extends S2> refFunction)
Bind an unbound reference to the result of applying the given function to the items in this stream.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.filter(Function<? super S,? extends Expression<Boolean>> predicateBuilder)
Filter results using the boolean expression produced by the given function.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.filter(SingularAttribute<? super X,Boolean> attribute)
Filter results using the specified boolean property.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.limit(int maxSize)
Return this stream truncated to the specified maximum length.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.peek(Consumer<? super S> peeker)
Peek at the items in this stream.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.skip(int num)
Return this stream with the specified number of initial elements skipped.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.withFetchGraph(String name)
Configure a fetch graph for this query.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.withFlushMode(FlushModeType flushMode)
Set the
FlushModeType associated with this query. |
QueryStream<X,S,C,C2,Q> |
QueryStream.withHint(String name,
Object value)
Associate a hint with this query.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.withHints(Map<String,Object> hints)
Associate hints with this query.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.withLoadGraph(String name)
Configure a load graph for this query.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.withLockMode(LockModeType lockMode)
Set the
LockModeType associated with this query. |
QueryStream<X,S,C,C2,Q> |
QueryStream.withParam(Parameter<Calendar> parameter,
Calendar value,
TemporalType temporalType)
Bind the value of a query parameter of type
Calendar. |
QueryStream<X,S,C,C2,Q> |
QueryStream.withParam(Parameter<Date> parameter,
Date value,
TemporalType temporalType)
Bind the value of a query parameter of type
Date. |
<T> QueryStream<X,S,C,C2,Q> |
QueryStream.withParam(Parameter<T> parameter,
T value)
Bind the value of a query parameter.
|
QueryStream<X,S,C,C2,Q> |
QueryStream.withParams(Iterable<? extends ParamBinding<?>> params)
Associate parameter bindings with this query.
|
Copyright © 2023. All rights reserved.