Interface QueryImplementor<R>
-
- All Superinterfaces:
CommonQueryContract
,MutationQuery
,Query
,Query<R>
,SelectionQuery<R>
,TypedQuery<R>
- All Known Subinterfaces:
NativeQueryImplementor<R>
,ProcedureCallImplementor<R>
,SqmQueryImplementor<R>
- All Known Implementing Classes:
AbstractQuery
,NativeQueryImpl
,ProcedureCallImpl
,QuerySqmImpl
@Incubating public interface QueryImplementor<R> extends Query<R>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description QueryParameterBindings
getParameterBindings()
SharedSessionContractImplementor
getSession()
Get theQueryProducer
which produced thisQuery
, that is, theSession
orStatelessSession
that was used to create thisQuery
instance.ScrollableResultsImplementor<R>
scroll()
Execute the query and return the results in a scrollable form.ScrollableResultsImplementor<R>
scroll(ScrollMode scrollMode)
Execute the query and return the results in a scrollable form.void
setOptionalEntityName(String entityName)
void
setOptionalId(Serializable id)
void
setOptionalObject(Object optionalObject)
QueryImplementor<R>
setParameter(int position, Object value)
Bind the given argument to an ordinal query parameter.QueryImplementor<R>
setParameter(int position, Instant value, TemporalType temporalType)
Bind anInstant
value to the ordinal query parameter using just the portion indicated by the givenTemporalType
.QueryImplementor<R>
setParameter(int position, Calendar value, TemporalType temporalType)
Query
overrideQueryImplementor<R>
setParameter(int position, Date value, TemporalType temporalType)
Query
override<P> QueryImplementor<R>
setParameter(int position, P value, 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> QueryImplementor<R>
setParameter(int position, P value, BindableType<P> type)
Bind the given argument to an ordinal query parameter using the givenBindableType
.QueryImplementor<R>
setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
Query
overrideQueryImplementor<R>
setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
Query
override<T> QueryImplementor<R>
setParameter(Parameter<T> param, T value)
Query
overrideQueryImplementor<R>
setParameter(String name, Object value)
Bind the given argument to a named query parameter.QueryImplementor<R>
setParameter(String name, Instant value, TemporalType temporalType)
Bind anInstant
value to the named query parameter using just the portion indicated by the givenTemporalType
.QueryImplementor<R>
setParameter(String name, Calendar value, TemporalType temporalType)
Query
overrideQueryImplementor<R>
setParameter(String name, Date value, TemporalType temporalType)
Query
override<P> QueryImplementor<R>
setParameter(String name, P value, Class<P> type)
Bind the given argument to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameter(String name, P value, BindableType<P> type)
Bind the given argument to a named query parameter using the givenBindableType
.<P> QueryImplementor<R>
setParameter(QueryParameter<P> parameter, P value, Class<P> type)
Bind an argument to the query parameter represented by the givenQueryParameter
using the given Class reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameter(QueryParameter<P> parameter, P val, BindableType<P> type)
Bind an argument to the query parameter represented by the givenQueryParameter
using the givenBindableType
.<T> QueryImplementor<R>
setParameter(QueryParameter<T> parameter, T value)
Bind an argument to the query parameter represented by the givenQueryParameter
.QueryImplementor<R>
setParameterList(int position, Object[] values)
Bind multiple arguments to an ordinal query parameter.QueryImplementor<R>
setParameterList(int position, Collection values)
Bind multiple arguments to an ordinal query parameter.<P> QueryImplementor<R>
setParameterList(int position, Collection<? extends P> values, Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameterList(int position, Collection<? extends P> values, BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.<P> QueryImplementor<R>
setParameterList(int position, P[] values, Class<P> javaType)
Bind multiple arguments to an ordinal query parameter using the givenClass
reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameterList(int position, P[] values, BindableType<P> type)
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.QueryImplementor<R>
setParameterList(String name, Object[] values)
Bind multiple arguments to a named query parameter.QueryImplementor<R>
setParameterList(String name, Collection values)
Bind multiple arguments to a named query parameter.<P> QueryImplementor<R>
setParameterList(String name, Collection<? extends P> values, Class<P> javaType)
Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameterList(String name, Collection<? extends P> values, BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.<P> QueryImplementor<R>
setParameterList(String name, P[] values, Class<P> javaType)
Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameterList(String name, P[] values, BindableType<P> type)
Bind multiple arguments to a named query parameter using the givenBindableType
.<P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> values)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
.<P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, 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> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.<P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, P[] values)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
.<P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the givenClass
reference to attempt to determine theBindableType
to use.<P> QueryImplementor<R>
setParameterList(QueryParameter<P> parameter, P[] values, BindableType<P> type)
Bind multiple arguments to the query parameter represented by the givenQueryParameter
, inferring theBindableType
.QueryImplementor<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.QueryImplementor<R>
setProperties(Map bean)
Bind the values of the givenMap
for each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.QueryImplementor<R>
setResultListTransformer(ResultListTransformer<R> transformer)
Set aResultListTransformer
.default <T> QueryImplementor<T>
setResultTransformer(ResultTransformer<T> transformer)
Deprecated.<T> QueryImplementor<T>
setTupleTransformer(TupleTransformer<T> transformer)
Set aTupleTransformer
.-
Methods inherited from interface org.hibernate.query.CommonQueryContract
getFlushMode, getHibernateFlushMode, getTimeout
-
Methods inherited from interface jakarta.persistence.Query
getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
-
Methods inherited from interface org.hibernate.query.Query
addQueryHint, applyFetchGraph, applyGraph, applyLoadGraph, disableFetchProfile, enableFetchProfile, executeUpdate, getComment, getLockOptions, getParameterMetadata, getQueryOptions, getQueryString, getResultList, getResultStream, getSingleResult, list, setCacheable, setCacheMode, setCacheRegion, setCacheRetrieveMode, setCacheStoreMode, setComment, setEntityGraph, setFetchSize, setFirstResult, setFlushMode, setHibernateFlushMode, setHint, setLockMode, setLockMode, setLockOptions, setMaxResults, setOrder, setOrder, setPage, setReadOnly, setTimeout, stream, uniqueResult, uniqueResultOptional
-
Methods inherited from interface org.hibernate.query.SelectionQuery
getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getHibernateLockMode, getKeyedResultList, getLockMode, getMaxResults, getResultCount, getSingleResultOrNull, isCacheable, isQueryPlanCacheable, isReadOnly, setAliasSpecificLockMode, setFollowOnLocking, setHibernateLockMode, setQueryPlanCacheable
-
-
-
-
Method Detail
-
getSession
SharedSessionContractImplementor getSession()
Description copied from interface:Query
Get theQueryProducer
which produced thisQuery
, that is, theSession
orStatelessSession
that was used to create thisQuery
instance.- Specified by:
getSession
in interfaceQuery<R>
- Returns:
- The producer of this query
-
setOptionalId
void setOptionalId(Serializable id)
-
setOptionalEntityName
void setOptionalEntityName(String entityName)
-
setOptionalObject
void setOptionalObject(Object optionalObject)
-
getParameterBindings
QueryParameterBindings getParameterBindings()
-
scroll
ScrollableResultsImplementor<R> scroll()
Description copied from interface:Query
Execute the query and return the results in a scrollable form.This overload simply calls
Query.scroll(ScrollMode)
using the dialect default scroll mode.
-
scroll
ScrollableResultsImplementor<R> scroll(ScrollMode scrollMode)
Description copied from interface:Query
Execute the query and return the results in a scrollable form. The capabilities of the returnedScrollableResults
depend on the specifiedScrollMode
.
-
setTupleTransformer
<T> QueryImplementor<T> setTupleTransformer(TupleTransformer<T> transformer)
Description copied from interface:Query
Set aTupleTransformer
.- Specified by:
setTupleTransformer
in interfaceQuery<R>
-
setResultListTransformer
QueryImplementor<R> setResultListTransformer(ResultListTransformer<R> transformer)
Description copied from interface:Query
Set aResultListTransformer
.- Specified by:
setResultListTransformer
in interfaceQuery<R>
-
setResultTransformer
@Deprecated default <T> QueryImplementor<T> setResultTransformer(ResultTransformer<T> transformer)
Deprecated.- Specified by:
setResultTransformer
in interfaceQuery<R>
-
setParameter
QueryImplementor<R> setParameter(String name, Object value)
Description copied from interface:Query
Bind the given argument to a named query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the forms accept a "type".
- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(String, Object, Class)
,Query.setParameter(String, Object, BindableType)
-
setParameter
<P> QueryImplementor<R> setParameter(String name, P value, Class<P> type)
Description copied from interface:Query
Bind the given argument to a named query parameter using the given Class reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Query.setParameter(String, Object)
is used.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- See Also:
Query.setParameter(String, Object, BindableType)
-
setParameter
<P> QueryImplementor<R> setParameter(String name, P value, BindableType<P> type)
Description copied from interface:Query
Bind the given argument to a named query parameter using the givenBindableType
.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
-
setParameter
QueryImplementor<R> setParameter(String name, Instant value, TemporalType temporalType)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
-
setParameter
QueryImplementor<R> setParameter(String name, Calendar value, TemporalType temporalType)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(String, Calendar, TemporalType)
-
setParameter
QueryImplementor<R> setParameter(String name, Date value, TemporalType temporalType)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(String, Date, TemporalType)
-
setParameter
QueryImplementor<R> setParameter(int position, Object value)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(int, Object, Class)
,Query.setParameter(int, Object, BindableType)
-
setParameter
<P> QueryImplementor<R> setParameter(int position, P value, Class<P> type)
Description copied from interface:Query
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
,Query.setParameter(int, Object)
is used.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- See Also:
Query.setParameter(int, Object, BindableType)
-
setParameter
<P> QueryImplementor<R> setParameter(int position, P value, BindableType<P> type)
Description copied from interface:Query
Bind the given argument to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
-
setParameter
QueryImplementor<R> setParameter(int position, Instant value, TemporalType temporalType)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
-
setParameter
QueryImplementor<R> setParameter(int position, Date value, TemporalType temporalType)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(int, Date, TemporalType)
-
setParameter
QueryImplementor<R> setParameter(int position, Calendar value, TemporalType temporalType)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(int, Calendar, TemporalType)
-
setParameter
<T> QueryImplementor<R> setParameter(QueryParameter<T> parameter, T value)
Description copied from interface:Query
Bind an argument to the query parameter represented by the givenQueryParameter
.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 interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Parameters:
parameter
- the query parameter mementovalue
- the argument, which might be null- Returns:
this
, for method chaining- See Also:
Query.setParameter(QueryParameter, Object, BindableType)
-
setParameter
<P> QueryImplementor<R> setParameter(QueryParameter<P> parameter, P value, Class<P> type)
Description copied from interface:Query
Bind an argument 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
,Query.setParameter(QueryParameter, Object)
is used- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Parameters:
parameter
- the query parameter mementovalue
- the argument, which might be nulltype
- aBindableType
representing the type of the parameter- Returns:
this
, for method chaining- See Also:
Query.setParameter(QueryParameter, Object, BindableType)
-
setParameter
<P> QueryImplementor<R> setParameter(QueryParameter<P> parameter, P val, BindableType<P> type)
Description copied from interface:Query
Bind an argument to the query parameter represented by the givenQueryParameter
using the givenBindableType
.- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Parameters:
parameter
- the query parameter mementoval
- the argument, which might be nulltype
- anBindableType
representing the type of the parameter- Returns:
this
, for method chaining
-
setParameter
<T> QueryImplementor<R> setParameter(Parameter<T> param, T value)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(Parameter, Object)
-
setParameter
QueryImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(Parameter, Calendar, TemporalType)
-
setParameter
QueryImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
Description copied from interface:Query
Query
override- Specified by:
setParameter
in interfaceCommonQueryContract
- Specified by:
setParameter
in interfaceMutationQuery
- Specified by:
setParameter
in interfaceQuery
- Specified by:
setParameter
in interfaceQuery<R>
- Specified by:
setParameter
in interfaceSelectionQuery<R>
- Specified by:
setParameter
in interfaceTypedQuery<R>
- See Also:
Query.setParameter(Parameter, Date, TemporalType)
-
setParameterList
QueryImplementor<R> setParameterList(String name, Collection values)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(java.lang.String, java.util.Collection, BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Class<P> javaType)
Description copied from interface:Query
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
,Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(java.lang.String, java.util.Collection, BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(String name, Collection<? extends P> values, BindableType<P> type)
Description copied from interface:Query
Bind multiple arguments to a named query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
QueryImplementor<R> setParameterList(String name, Object[] values)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(String name, P[] values, Class<P> javaType)
Description copied from interface:Query
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
,Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(java.lang.String, Object[], BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(String name, P[] values, BindableType<P> type)
Description copied from interface:Query
Bind multiple arguments to a named query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
QueryImplementor<R> setParameterList(int position, Collection values)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Class<P> javaType)
Description copied from interface:Query
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
,Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(int, Collection, BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(int position, Collection<? extends P> values, BindableType<P> type)
Description copied from interface:Query
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
QueryImplementor<R> setParameterList(int position, Object[] values)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(int position, P[] values, Class<P> javaType)
Description copied from interface:Query
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
,Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(int, Object[], BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(int position, P[] values, BindableType<P> type)
Description copied from interface:Query
Bind multiple arguments to an ordinal query parameter using the givenBindableType
.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Parameters:
parameter
- the parameter mementovalues
- a collection of arguments- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType)
Description copied from interface:Query
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
,Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(QueryParameter, java.util.Collection, BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, BindableType<P> type)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Parameters:
parameter
- the parameter mementovalues
- a collection of arguments- Returns:
this
, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType)
Description copied from interface:Query
Bind multiple arguments to the query parameter represented by the givenQueryParameter
using the givenClass
reference to attempt to determine theBindableType
to use. If unable to determine an appropriateBindableType
,Query.setParameterList(String, Collection)
is used.- Specified by:
setParameterList
in interfaceCommonQueryContract
- Specified by:
setParameterList
in interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining- See Also:
Query.setParameterList(QueryParameter, Object[], BindableType)
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, BindableType<P> type)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setParameterList
in interfaceQuery<R>
- Specified by:
setParameterList
in interfaceSelectionQuery<R>
- Returns:
this
, for method chaining
-
setProperties
QueryImplementor<R> setProperties(Object bean)
Description copied from interface:Query
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 interfaceMutationQuery
- Specified by:
setProperties
in interfaceQuery<R>
- Specified by:
setProperties
in interfaceSelectionQuery<R>
- Parameters:
bean
- any JavaBean or POJO- Returns:
this
, for method chaining
-
setProperties
QueryImplementor<R> setProperties(Map bean)
Description copied from interface:Query
Bind the values of the givenMap
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 interfaceMutationQuery
- Specified by:
setProperties
in interfaceQuery<R>
- Specified by:
setProperties
in interfaceSelectionQuery<R>
- Parameters:
bean
- aMap
of names to arguments- Returns:
this
, for method chaining
-
-