Package org.hibernate.reactive.query
Interface ReactiveQuery<R>
-
- All Superinterfaces:
CommonQueryContract
,ReactiveMutationQuery<R>
,ReactiveSelectionQuery<R>
- All Known Subinterfaces:
ReactiveNativeQuery<R>
,ReactiveNativeQueryImplementor<R>
,ReactiveQueryImplementor<R>
,ReactiveSqmQueryImplementor<R>
public interface ReactiveQuery<R> extends ReactiveSelectionQuery<R>, ReactiveMutationQuery<R>
- See Also:
Query
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReactiveQuery<R>
addQueryHint(String hint)
String
getComment()
LockOptions
getLockOptions()
ParameterMetadata
getParameterMetadata()
QueryOptions
getQueryOptions()
String
getQueryString()
ReactiveQuery<R>
setCacheable(boolean cacheable)
ReactiveQuery<R>
setCacheMode(CacheMode cacheMode)
ReactiveQuery<R>
setCacheRegion(String cacheRegion)
ReactiveQuery<R>
setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
ReactiveQuery<R>
setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode)
ReactiveQuery<R>
setComment(String comment)
ReactiveQuery<R>
setFetchSize(int fetchSize)
ReactiveQuery<R>
setFirstResult(int startPosition)
ReactiveQuery<R>
setFlushMode(jakarta.persistence.FlushModeType flushMode)
ReactiveQuery<R>
setHibernateFlushMode(FlushMode flushMode)
ReactiveQuery<R>
setHint(String hintName, Object value)
ReactiveQuery<R>
setLockMode(jakarta.persistence.LockModeType lockMode)
ReactiveQuery<R>
setLockMode(String alias, LockMode lockMode)
ReactiveQuery<R>
setLockOptions(LockOptions lockOptions)
ReactiveQuery<R>
setMaxResults(int maxResult)
ReactiveQuery<R>
setParameter(int parameter, Object argument)
Bind the given argument to an ordinal query parameter.ReactiveQuery<R>
setParameter(int parameter, Instant argument, jakarta.persistence.TemporalType temporalType)
Bind anInstant
value to the ordinal query parameter using just the portion indicated by the givenTemporalType
.ReactiveQuery<R>
setParameter(int parameter, Calendar argument, jakarta.persistence.TemporalType temporalType)
Query
overrideReactiveQuery<R>
setParameter(int parameter, Date argument, jakarta.persistence.TemporalType temporalType)
Query
override<P> ReactiveQuery<R>
setParameter(int parameter, P argument, Class<P> type)
Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> ReactiveQuery<R>
setParameter(int parameter, P argument, BindableType<P> type)
Bind the given argument to an ordinal query parameter using the givenBindableType
.ReactiveQuery<R>
setParameter(jakarta.persistence.Parameter<Calendar> parameter, Calendar argument, jakarta.persistence.TemporalType temporalType)
ReactiveQuery<R>
setParameter(jakarta.persistence.Parameter<Date> parameter, Date argument, jakarta.persistence.TemporalType temporalType)
<T> ReactiveQuery<R>
setParameter(jakarta.persistence.Parameter<T> parameter, T argument)
ReactiveQuery<R>
setParameter(String parameter, Object argument)
ReactiveQuery<R>
setParameter(String parameter, Instant argument, jakarta.persistence.TemporalType temporalType)
Bind anInstant
value to the named query parameter using just the portion indicated by the givenTemporalType
.ReactiveQuery<R>
setParameter(String parameter, Calendar argument, jakarta.persistence.TemporalType temporalType)
ReactiveQuery<R>
setParameter(String parameter, Date argument, jakarta.persistence.TemporalType temporalType)
<P> ReactiveQuery<R>
setParameter(String parameter, P argument, Class<P> type)
<P> ReactiveQuery<R>
setParameter(String parameter, P argument, BindableType<P> type)
<P> ReactiveQuery<R>
setParameter(QueryParameter<P> parameter, P argument, Class<P> type)
<P> ReactiveQuery<R>
setParameter(QueryParameter<P> parameter, P argument, BindableType<P> type)
<T> ReactiveQuery<R>
setParameter(QueryParameter<T> parameter, T argument)
ReactiveQuery<R>
setParameterList(int parameter, Object[] arguments)
Bind multiple arguments to an ordinal query parameter.ReactiveQuery<R>
setParameterList(int parameter, Collection arguments)
Bind multiple arguments to an ordinal query parameter.<P> ReactiveQuery<R>
setParameterList(int parameter, Collection<? extends P> arguments, Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> ReactiveQuery<R>
setParameterList(int parameter, Collection<? extends P> arguments, BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.<P> ReactiveQuery<R>
setParameterList(int parameter, P[] arguments, Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the givenClass
reference to attempt to determine theBindableType
to use.<P> ReactiveQuery<R>
setParameterList(int parameter, P[] arguments, BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.ReactiveQuery<R>
setParameterList(String parameter, Object[] values)
Bind multiple arguments to a named query parameter.ReactiveQuery<R>
setParameterList(String parameter, Collection arguments)
<P> ReactiveQuery<R>
setParameterList(String parameter, Collection<? extends P> arguments, Class<P> javaType)
<P> ReactiveQuery<R>
setParameterList(String parameter, Collection<? extends P> arguments, BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.<P> ReactiveQuery<R>
setParameterList(String parameter, P[] arguments, Class<P> javaType)
Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> ReactiveQuery<R>
setParameterList(String parameter, P[] arguments, BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.<P> ReactiveQuery<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
.<P> ReactiveQuery<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.<P> ReactiveQuery<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.<P> ReactiveQuery<R>
setParameterList(QueryParameter<P> parameter, P[] arguments)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
<P> ReactiveQuery<R>
setParameterList(QueryParameter<P> parameter, P[] arguments, Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.<P> ReactiveQuery<R>
setParameterList(QueryParameter<P> parameter, P[] arguments, BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.ReactiveQuery<R>
setProperties(Object bean)
Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.ReactiveQuery<R>
setProperties(Map bean)
Bind the values of the given Map for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.ReactiveQuery<R>
setReadOnly(boolean readOnly)
ReactiveQuery<R>
setResultListTransformer(ResultListTransformer<R> transformer)
ReactiveQuery<R>
setTimeout(int timeout)
<T> ReactiveQuery<T>
setTupleTransformer(TupleTransformer<T> transformer)
-
Methods inherited from interface org.hibernate.query.CommonQueryContract
getFlushMode, getHibernateFlushMode, getTimeout
-
Methods inherited from interface org.hibernate.reactive.query.ReactiveMutationQuery
executeReactiveUpdate
-
Methods inherited from interface org.hibernate.reactive.query.ReactiveSelectionQuery
applyGraph, enableFetchProfile, getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getHibernateLockMode, getLockMode, getMaxResults, getReactiveResultList, getReactiveSingleResult, getReactiveSingleResultOrNull, isCacheable, isReadOnly, reactiveList, reactiveUnique, reactiveUniqueResultOptional, setAliasSpecificLockMode, setFollowOnLocking, setHibernateLockMode, setOrder, setOrder
-
-
-
-
Method Detail
-
getQueryString
String getQueryString()
- Specified by:
getQueryString
in interfaceReactiveSelectionQuery<R>
-
getComment
String getComment()
- Specified by:
getComment
in interfaceCommonQueryContract
-
setComment
ReactiveQuery<R> setComment(String comment)
- Specified by:
setComment
in interfaceCommonQueryContract
-
addQueryHint
ReactiveQuery<R> addQueryHint(String hint)
-
getLockOptions
LockOptions getLockOptions()
- Specified by:
getLockOptions
in interfaceReactiveSelectionQuery<R>
-
setLockOptions
ReactiveQuery<R> setLockOptions(LockOptions lockOptions)
-
setLockMode
ReactiveQuery<R> setLockMode(String alias, LockMode lockMode)
- Specified by:
setLockMode
in interfaceReactiveSelectionQuery<R>
-
setTupleTransformer
<T> ReactiveQuery<T> setTupleTransformer(TupleTransformer<T> transformer)
-
setResultListTransformer
ReactiveQuery<R> setResultListTransformer(ResultListTransformer<R> transformer)
-
getQueryOptions
QueryOptions getQueryOptions()
-
getParameterMetadata
ParameterMetadata getParameterMetadata()
-
setParameter
ReactiveQuery<R> setParameter(String parameter, Object argument)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
<P> ReactiveQuery<R> setParameter(String parameter, P argument, Class<P> type)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
<P> ReactiveQuery<R> setParameter(String parameter, P argument, BindableType<P> type)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(String parameter, Instant argument, jakarta.persistence.TemporalType temporalType)
Bind anInstant
value to the named query parameter using just the portion indicated by the givenTemporalType
.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(String parameter, Calendar argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(String parameter, Date argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(int parameter, Object argument)
Bind the given argument to an ordinal query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the forms which accepts a "type".
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
- See Also:
setParameter(int, Object, Class)
,setParameter(int, Object, BindableType)
-
setParameter
<P> ReactiveQuery<R> setParameter(int parameter, P argument, Class<P> type)
Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,setParameter(int, Object)
is used.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
- See Also:
setParameter(int, Object, BindableType)
-
setParameter
<P> ReactiveQuery<R> setParameter(int parameter, P argument, BindableType<P> type)
Bind the given argument to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(int parameter, Instant argument, jakarta.persistence.TemporalType temporalType)
Bind anInstant
value to the ordinal query parameter using just the portion indicated by the givenTemporalType
.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(int parameter, Date argument, jakarta.persistence.TemporalType temporalType)
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(int parameter, Calendar argument, jakarta.persistence.TemporalType temporalType)
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
<T> ReactiveQuery<R> setParameter(QueryParameter<T> parameter, T argument)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
<P> ReactiveQuery<R> setParameter(QueryParameter<P> parameter, P argument, Class<P> type)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
<P> ReactiveQuery<R> setParameter(QueryParameter<P> parameter, P argument, BindableType<P> type)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
<T> ReactiveQuery<R> setParameter(jakarta.persistence.Parameter<T> parameter, T argument)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(jakarta.persistence.Parameter<Calendar> parameter, Calendar argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameter
ReactiveQuery<R> setParameter(jakarta.persistence.Parameter<Date> parameter, Date argument, jakarta.persistence.TemporalType temporalType)
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameter
in interfaceReactiveSelectionQuery<R>
-
setParameterList
ReactiveQuery<R> setParameterList(String parameter, Collection arguments)
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
-
setParameterList
<P> ReactiveQuery<R> setParameterList(String parameter, Collection<? extends P> arguments, Class<P> javaType)
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
-
setParameterList
<P> ReactiveQuery<R> setParameterList(String parameter, Collection<? extends P> arguments, BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
ReactiveQuery<R> setParameterList(String parameter, Object[] values)
Bind multiple arguments to a named query parameter. The "type mapping" for the binding is inferred from the type of the first collection element.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(String parameter, P[] arguments, Class<P> javaType)
Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
setParameterList(java.lang.String, Object[], BindableType)
-
setParameterList
<P> ReactiveQuery<R> setParameterList(String parameter, P[] arguments, BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
ReactiveQuery<R> setParameterList(int parameter, Collection arguments)
Bind multiple arguments to an ordinal query parameter. The "type mapping" for the binding is inferred from the type of the first collection element.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(int parameter, Collection<? extends P> arguments, Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
setParameterList(int, Collection, BindableType)
-
setParameterList
<P> ReactiveQuery<R> setParameterList(int parameter, Collection<? extends P> arguments, BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
ReactiveQuery<R> setParameterList(int parameter, Object[] arguments)
Bind multiple arguments to an ordinal query parameter.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(int parameter, P[] arguments, Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the givenClass
reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
setParameterList(int, Object[], BindableType)
-
setParameterList
<P> ReactiveQuery<R> setParameterList(int parameter, P[] arguments, BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
.The type of the parameter is inferred from the context in which it occurs, and from the type of the first given argument.
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Parameters:
parameter
- the parameter mementoarguments
- a collection of arguments- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
setParameterList(QueryParameter, java.util.Collection, BindableType)
-
setParameterList
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> arguments, BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, P[] arguments)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
The type of the parameter is inferred between the context in which it occurs, the type associated with the QueryParameter and the type of the first given argument.
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Parameters:
parameter
- the parameter mementoarguments
- a collection of arguments- Returns:
this
, for method chaining
-
setParameterList
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, P[] arguments, Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,setParameterList(String, Collection)
is used- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
setParameterList(QueryParameter, Object[], BindableType)
-
setParameterList
<P> ReactiveQuery<R> setParameterList(QueryParameter<P> parameter, P[] arguments, BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceReactiveMutationQuery<R>
- Specified by:
setParameterList
in interfaceReactiveSelectionQuery<R>
- Returns:
this
, for method chaining
-
setProperties
ReactiveQuery<R> setProperties(Object bean)
Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.- Specified by:
setProperties
in interfaceCommonQueryContract
- Specified by:
setProperties
in interfaceReactiveMutationQuery<R>
- Specified by:
setProperties
in interfaceReactiveSelectionQuery<R>
- Parameters:
bean
- any JavaBean or POJO- Returns:
this
, for method chaining
-
setProperties
ReactiveQuery<R> setProperties(Map bean)
Bind the values of the given Map for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.- Specified by:
setProperties
in interfaceCommonQueryContract
- Specified by:
setProperties
in interfaceReactiveMutationQuery<R>
- Specified by:
setProperties
in interfaceReactiveSelectionQuery<R>
- Parameters:
bean
- aMap
of names to arguments- Returns:
this
, for method chaining
-
setHibernateFlushMode
ReactiveQuery<R> setHibernateFlushMode(FlushMode flushMode)
- Specified by:
setHibernateFlushMode
in interfaceCommonQueryContract
- Specified by:
setHibernateFlushMode
in interfaceReactiveMutationQuery<R>
- Specified by:
setHibernateFlushMode
in interfaceReactiveSelectionQuery<R>
-
setCacheable
ReactiveQuery<R> setCacheable(boolean cacheable)
- Specified by:
setCacheable
in interfaceReactiveSelectionQuery<R>
-
setCacheRegion
ReactiveQuery<R> setCacheRegion(String cacheRegion)
- Specified by:
setCacheRegion
in interfaceReactiveSelectionQuery<R>
-
setCacheMode
ReactiveQuery<R> setCacheMode(CacheMode cacheMode)
- Specified by:
setCacheMode
in interfaceReactiveSelectionQuery<R>
-
setCacheStoreMode
ReactiveQuery<R> setCacheStoreMode(jakarta.persistence.CacheStoreMode cacheStoreMode)
- Specified by:
setCacheStoreMode
in interfaceReactiveSelectionQuery<R>
-
setCacheRetrieveMode
ReactiveQuery<R> setCacheRetrieveMode(jakarta.persistence.CacheRetrieveMode cacheRetrieveMode)
- Specified by:
setCacheRetrieveMode
in interfaceReactiveSelectionQuery<R>
- See Also:
ReactiveSelectionQuery.setCacheMode(CacheMode)
-
setTimeout
ReactiveQuery<R> setTimeout(int timeout)
- Specified by:
setTimeout
in interfaceCommonQueryContract
- Specified by:
setTimeout
in interfaceReactiveSelectionQuery<R>
-
setFetchSize
ReactiveQuery<R> setFetchSize(int fetchSize)
- Specified by:
setFetchSize
in interfaceReactiveSelectionQuery<R>
-
setReadOnly
ReactiveQuery<R> setReadOnly(boolean readOnly)
- Specified by:
setReadOnly
in interfaceReactiveSelectionQuery<R>
-
setMaxResults
ReactiveQuery<R> setMaxResults(int maxResult)
- Specified by:
setMaxResults
in interfaceReactiveSelectionQuery<R>
-
setFirstResult
ReactiveQuery<R> setFirstResult(int startPosition)
- Specified by:
setFirstResult
in interfaceReactiveSelectionQuery<R>
-
setHint
ReactiveQuery<R> setHint(String hintName, Object value)
- Specified by:
setHint
in interfaceCommonQueryContract
- Specified by:
setHint
in interfaceReactiveSelectionQuery<R>
-
setFlushMode
ReactiveQuery<R> setFlushMode(jakarta.persistence.FlushModeType flushMode)
- Specified by:
setFlushMode
in interfaceCommonQueryContract
- Specified by:
setFlushMode
in interfaceReactiveSelectionQuery<R>
-
setLockMode
ReactiveQuery<R> setLockMode(jakarta.persistence.LockModeType lockMode)
- Specified by:
setLockMode
in interfaceReactiveSelectionQuery<R>
-
-