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,SqmQueryImpl
-
Method Summary
Modifier and TypeMethodDescriptionGet theQueryProducerwhich produced thisQuery, that is, theSessionorStatelessSessionthat was used to create thisQueryinstance.scroll()Execute the query and return the results in a scrollable form.scroll(ScrollMode scrollMode) Execute the query and return the results in a scrollable form.setParameter(int position, Object value) Bind the given argument to an ordinal query parameter.setParameter(int position, Instant value, TemporalType temporalType) Bind anInstantvalue to the ordinal query parameter using just the portion indicated by the givenTemporalType.setParameter(int position, Calendar value, TemporalType temporalType) QueryoverridesetParameter(int position, Date value, TemporalType temporalType) Queryoverride<P> QueryImplementor<R> setParameter(int position, P value, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.<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 theTypeto use.setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) QueryoverridesetParameter(Parameter<Date> param, Date value, TemporalType temporalType) Queryoverride<T> QueryImplementor<R> setParameter(Parameter<T> param, T value) QueryoverridesetParameter(String name, Object value) Bind the given argument to a named query parameter.setParameter(String name, Instant value, TemporalType temporalType) Bind anInstantvalue to the named query parameter using just the portion indicated by the givenTemporalType.setParameter(String name, Calendar value, TemporalType temporalType) QueryoverridesetParameter(String name, Date value, TemporalType temporalType) Queryoverride<P> QueryImplementor<R> setParameter(String name, P value, Type<P> type) Bind the given argument to a named query parameter using the givenType.<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 theTypeto use.<P> QueryImplementor<R> setParameter(QueryParameter<P> parameter, P val, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameterusing the givenType.<P> QueryImplementor<R> setParameter(QueryParameter<P> parameter, P value, Class<P> type) Bind an argument to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theTypeto use.<T> QueryImplementor<R> setParameter(QueryParameter<T> parameter, T value) Bind an argument to the query parameter represented by the givenQueryParameter.setParameterList(int position, Object[] values) Bind multiple arguments to an ordinal query parameter.setParameterList(int position, Collection values) Bind multiple arguments to an ordinal query parameter.<P> QueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<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 theTypeto use.<P> QueryImplementor<R> setParameterList(int position, P[] values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> QueryImplementor<R> setParameterList(int position, P[] values, Class<P> javaType) setParameterList(String name, Object[] values) Bind multiple arguments to a named query parameter.setParameterList(String name, Collection values) Bind multiple arguments to a named query parameter.<P> QueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<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 theTypeto use.<P> QueryImplementor<R> setParameterList(String name, P[] values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<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 theTypeto use.<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, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theType.<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theTypeto use.<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, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theType.<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to determine theTypeto use.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.setProperties(Map bean) Bind the values of the givenMapfor each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.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, getParameterMetadata, getQueryFlushMode, getTimeoutMethods inherited from interface jakarta.persistence.Query
getCacheRetrieveMode, getCacheStoreMode, getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getTimeout, isBound, unwrapMethods inherited from interface org.hibernate.query.Query
addQueryHint, applyFetchGraph, applyGraph, applyLoadGraph, disableFetchProfile, enableFetchProfile, executeUpdate, getComment, getLockOptions, getQueryOptions, getQueryString, getResultList, getResultStream, getSingleResult, list, setCacheable, setCacheMode, setCacheRegion, setCacheRetrieveMode, setCacheStoreMode, setComment, setEntityGraph, setFetchSize, setFirstResult, setFlushMode, setHibernateFlushMode, setHint, setLockMode, setLockOptions, setLockScope, setMaxResults, setPage, setQueryFlushMode, setReadOnly, setTimeout, setTimeout, stream, uniqueResult, uniqueResultOptionalMethods inherited from interface org.hibernate.query.SelectionQuery
getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getHibernateLockMode, getKeyedResultList, getLockMode, getMaxResults, getResultCount, getSingleResultOrNull, isCacheable, isQueryPlanCacheable, isReadOnly, setFollowOnLocking, setFollowOnStrategy, setHibernateLockMode, setLockMode, setLockScope, setQueryPlanCacheableMethods inherited from interface jakarta.persistence.TypedQuery
getSingleResultOrNull, setTimeout
-
Method Details
-
getSession
SharedSessionContractImplementor getSession()Description copied from interface:QueryGet theQueryProducerwhich produced thisQuery, that is, theSessionorStatelessSessionthat was used to create thisQueryinstance.- Specified by:
getSessionin interfaceQuery<R>- Returns:
- The producer of this query
-
getParameterBindings
QueryParameterBindings getParameterBindings() -
scroll
ScrollableResultsImplementor<R> scroll()Description copied from interface:QueryExecute the query and return the results in a scrollable form.This overload simply calls
Query.scroll(ScrollMode)using the dialect default scroll mode. -
scroll
Description copied from interface:QueryExecute the query and return the results in a scrollable form. The capabilities of the returnedScrollableResultsdepend on the specifiedScrollMode. -
setTupleTransformer
Description copied from interface:QuerySet aTupleTransformer.- Specified by:
setTupleTransformerin interfaceQuery<R>- Specified by:
setTupleTransformerin interfaceSelectionQuery<R>
-
setResultListTransformer
Description copied from interface:QuerySet aResultListTransformer.- Specified by:
setResultListTransformerin interfaceQuery<R>- Specified by:
setResultListTransformerin interfaceSelectionQuery<R>
-
setResultTransformer
Deprecated.- Specified by:
setResultTransformerin interfaceQuery<R>
-
setParameter
Description copied from interface:QueryBind 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:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to a named query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameter(String, Object)is used.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to a named query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
Description copied from interface:QueryBind anInstantvalue to the named query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind 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:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameter(int, Object)is used.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
Description copied from interface:QueryBind anInstantvalue to the ordinal query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind 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:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Parameters:
parameter- the query parameter mementovalue- the argument, which might be null- Returns:
this, for method chaining- See Also:
-
setParameter
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameter(QueryParameter, Object)is used- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Parameters:
parameter- the query parameter mementovalue- the argument, which might be nulltype- aTyperepresenting the type of the parameter- Returns:
this, for method chaining- See Also:
-
setParameter
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameterusing the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Parameters:
parameter- the query parameter mementoval- the argument, which might be nulltype- anTyperepresenting the type of the parameter- Returns:
this, for method chaining
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
QueryImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameterList
Description copied from interface:QueryBind 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:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> QueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Class<P> javaType) Description copied from interface:QueryBind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind 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:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind 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:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin 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:QueryBind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> QueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Type<P> type) Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind 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:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Description copied from interface:QueryBind 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:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin 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:QueryBind multiple arguments to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> QueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theType.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind 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:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin 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:QueryBind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to determine theTypeto use. If unable to determine an appropriateType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theType.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setProperties
Description copied from interface:QueryBind 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:
setPropertiesin interfaceCommonQueryContract- Specified by:
setPropertiesin interfaceMutationQuery- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Parameters:
bean- any JavaBean or POJO- Returns:
this, for method chaining
-
setProperties
Description copied from interface:QueryBind the values of the givenMapfor each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.- Specified by:
setPropertiesin interfaceCommonQueryContract- Specified by:
setPropertiesin interfaceMutationQuery- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Parameters:
bean- aMapof names to arguments- Returns:
this, for method chaining
-