Interface QueryImplementor<T>
- All Superinterfaces:
CommonQueryContract, CommonQueryContractImplementor, Query, Query<T>
- All Known Subinterfaces:
MutationQueryImplementor<T>, NativeQueryImplementor<R>, ProcedureCallImplementor<R>, SelectionQueryImplementor<R>
-
Method Summary
Modifier and TypeMethodDescriptionaddQueryHint(String hint) Add a database query hint to the SQL query.Casts this query as a mutation query.Casts this query as aSelectionQuery.Covariant override of Query.asStatement().scroll()Execute the Queryand return the results in a scrollable form. scroll(ScrollMode scrollMode) Execute the Queryand return the results in a scrollable form. setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) setCacheStoreMode(CacheStoreMode cacheStoreMode) setComment(String comment) Set the comment for this query.<P> QueryImplementor<T> setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) <P> QueryImplementor<T> setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) setFirstResult(int startPosition) setFlushMode(FlushModeType flushMode) Set theFlushModeTypeto use for this query.setFollowOnLockingStrategy(Locking.FollowOn strategy) Control how Hibernate should handle cases where it is determined subsequent SQL queries would be needs to completely accomplish locking as requested.setFollowOnStrategy(Locking.FollowOn strategy) Control how Hibernate should handle cases where it is determined subsequent SQL queries would be needs to completely accomplish locking as requested.setHibernateLockMode(LockMode lockMode) Set a hint.setLockMode(LockModeType lockMode) setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.setMaxResults(int maxResults) setParameter(int position, Object value) Bind the given argument to an ordinal query parameter.setParameter(int position, Instant value, TemporalType temporalType) Deprecated.setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.setParameter(int position, Date value, TemporalType temporalType) Deprecated.<P> QueryImplementor<T> setParameter(int position, P value, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.<P> QueryImplementor<T> setParameter(int position, P value, Class<P> type) setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.<P> QueryImplementor<T> setParameter(Parameter<P> param, P value) setParameter(String name, Object value) Bind the given argument to a named query parameter.setParameter(String name, Instant value, TemporalType temporalType) Deprecated.setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.setParameter(String name, Date value, TemporalType temporalType) Deprecated.<P> QueryImplementor<T> setParameter(String name, P value, Type<P> type) Bind the given argument to a named query parameter using the givenType.<P> QueryImplementor<T> setParameter(String name, P value, Class<P> type) <P> QueryImplementor<T> setParameter(QueryParameter<P> parameter, P value) Bind an argument to the query parameter represented by the givenQueryParameter.<P> QueryImplementor<T> setParameter(QueryParameter<P> parameter, P val, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenType.<P> QueryImplementor<T> setParameter(QueryParameter<P> parameter, P value, Class<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use.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<T> setParameterList(int position, Collection<? extends P> values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> QueryImplementor<T> setParameterList(int position, Collection<? extends P> values, Class<P> javaType) <P> QueryImplementor<T> setParameterList(int position, P[] values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> QueryImplementor<T> 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<T> setParameterList(String name, Collection<? extends P> values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<P> QueryImplementor<T> setParameterList(String name, Collection<? extends P> values, Class<P> javaType) Bind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).<P> QueryImplementor<T> setParameterList(String name, P[] values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<P> QueryImplementor<T> 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<T> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.<P> QueryImplementor<T> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.<P> QueryImplementor<T> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.<P> QueryImplementor<T> setParameterList(QueryParameter<P> parameter, P[] values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.<P> QueryImplementor<T> setParameterList(QueryParameter<P> parameter, P[] values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.<P> QueryImplementor<T> 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 infer 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 givenMapto named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.setQueryFlushMode(QueryFlushMode queryFlushMode) Set theQueryFlushModeto use for this query.setQueryPlanCacheable(boolean queryPlanCacheable) Enable/disable Queryplan caching for this query, if available. setTimeout(int timeout) Apply a timeout to the corresponding database query.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.setTimeout(Integer timeout) Apply a timeout to the corresponding database query.Methods inherited from interface CommonQueryContract
asSelectionQuery, getComment, getEffectiveFlushMode, getParameterMetadata, getQueryFlushMode, getTimeoutMethods inherited from interface CommonQueryContractImplementor
asSelectionQuery, asSelectionQuery, getSession, ofType, withEntityGraphMethods inherited from interface Query
getCacheRetrieveMode, getCacheStoreMode, getFirstResult, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, getSingleResultOrNull, isBound, unwrapMethods inherited from interface Query
executeUpdate, getCacheMode, getCacheRegion, getFetchSize, getFlushMode, getHibernateLockMode, getLockTimeout, getQueryOptions, getQueryString, getResultList, getResultStream, getSingleResult, isCacheable, isQueryPlanCacheable, isReadOnly, list, ofType, setCacheable, setCacheMode, setCacheRegion, setFetchSize, setLockTimeout, setReadOnly, setResultListTransformer, setTupleTransformer, stream, uniqueResult, uniqueResultOptional, withEntityGraph
-
Method Details
-
asSelectionQuery
SelectionQueryImplementor<T> asSelectionQuery()Description copied from interface:CommonQueryContractCasts this query as aSelectionQuery.- Specified by:
asSelectionQueryin interfaceCommonQueryContract- Specified by:
asSelectionQueryin interfaceCommonQueryContractImplementor- Specified by:
asSelectionQueryin interfaceQuery<T>
-
asMutationQuery
MutationQueryImplementor<T> asMutationQuery()Description copied from interface:CommonQueryContractCasts this query as a mutation query.- Specified by:
asMutationQueryin interfaceCommonQueryContract- Specified by:
asMutationQueryin interfaceCommonQueryContractImplementor
-
asStatement
MutationQueryImplementor<T> asStatement()Description copied from interface:QueryCovariant override of Query.asStatement().- Specified by:
asStatementin interfaceCommonQueryContractImplementor- Specified by:
asStatementin interfaceQuery- Specified by:
asStatementin interfaceQuery<T>- See Also:
-
setQueryFlushMode
Description copied from interface:CommonQueryContractSet theQueryFlushModeto use for this query.- Specified by:
setQueryFlushModein interfaceCommonQueryContract- Specified by:
setQueryFlushModein interfaceCommonQueryContractImplementor- Specified by:
setQueryFlushModein interfaceQuery<T>- See Also:
-
setFlushMode
Description copied from interface:QuerySet theFlushModeTypeto use for this query.Setting this to
nullultimately indicates to use theFlushModeof the session. UseQuery.setQueryFlushMode(QueryFlushMode)passingQueryFlushMode.NO_FLUSHinstead to indicate that no automatic flushing should occur.- Specified by:
setFlushModein interfaceCommonQueryContractImplementor- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<T>- See Also:
-
setComment
Description copied from interface:QuerySet the comment for this query.If SQL commenting is enabled, the comment will be added to the SQL query sent to the database, which may be useful for identifying the source of troublesome queries.
SQL commenting may be enabled using the configuration property "hibernate.use_sql_comments".
- Specified by:
setCommentin interfaceCommonQueryContract- Specified by:
setCommentin interfaceCommonQueryContractImplementor- Specified by:
setCommentin interfaceQuery<T>- See Also:
-
addQueryHint
Description copied from interface:QueryAdd a database query hint to the SQL query.Multiple query hints may be specified. The operation
Dialect.getQueryHintString(String, List)determines how the hint is actually added to the SQL query.- Specified by:
addQueryHintin interfaceCommonQueryContract- Specified by:
addQueryHintin interfaceCommonQueryContractImplementor- Specified by:
addQueryHintin interfaceQuery<T>
-
setTimeout
Description copied from interface:QueryApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceQuery<T>- See Also:
-
setTimeout
Description copied from interface:QueryApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<T>- See Also:
-
setTimeout
Description copied from interface:QueryApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<T>
-
setQueryPlanCacheable
Description copied from interface:QueryEnable/disable Queryplan caching for this query, if available. - Specified by:
setQueryPlanCacheablein interfaceQuery<T>- See Also:
-
setCacheStoreMode
- Specified by:
setCacheStoreModein interfaceCommonQueryContractImplementor- Specified by:
setCacheStoreModein interfaceQuery- Specified by:
setCacheStoreModein interfaceQuery<T>
-
setCacheRetrieveMode
- Specified by:
setCacheRetrieveModein interfaceCommonQueryContractImplementor- Specified by:
setCacheRetrieveModein interfaceQuery- Specified by:
setCacheRetrieveModein interfaceQuery<T>
-
setMaxResults
- Specified by:
setMaxResultsin interfaceCommonQueryContractImplementor- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<T>
-
setFirstResult
- Specified by:
setFirstResultin interfaceCommonQueryContractImplementor- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<T>
-
setLockMode
- Specified by:
setLockModein interfaceCommonQueryContractImplementor- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<T>
-
setHibernateLockMode
Description copied from interface:Query- Specified by:
setHibernateLockModein interfaceQuery<T>- See Also:
-
setLockScope
Description copied from interface:QueryApply a scope to any pessimistic locking applied to the query.- Specified by:
setLockScopein interfaceQuery<T>- Parameters:
lockScope- The lock scope to apply- Returns:
this, for method chaining
-
setFollowOnLockingStrategy
Description copied from interface:QueryControl how Hibernate should handle cases where it is determined subsequent SQL queries would be needs to completely accomplish locking as requested.- Specified by:
setFollowOnLockingStrategyin interfaceQuery<T>- Parameters:
strategy- The strategy for follow-on locking.- Returns:
this, for method chaining
-
setFollowOnStrategy
Description copied from interface:QueryControl how Hibernate should handle cases where it is determined subsequent SQL queries would be needs to completely accomplish locking as requested.- Specified by:
setFollowOnStrategyin interfaceQuery<T>- Parameters:
strategy- The strategy for follow-on locking.- Returns:
this, for method chaining
-
setHint
Description copied from interface:QuerySet a hint. Hints are a JPA-standard way to control provider-specific behavior affecting execution of the query. Clients of native Hibernate API should make use of type-safe operations of this interface and of its subtypes. For example,SelectionQuery.setCacheRegion(String)is preferred overHibernateHints.HINT_CACHE_REGION.The hints understood by Hibernate are enumerated by
AvailableHints.- Specified by:
setHintin interfaceCommonQueryContract- Specified by:
setHintin interfaceCommonQueryContractImplementor- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<T>- See Also:
-
scroll
ScrollableResultsImplementor<T> scroll()Description copied from interface:QueryExecute the Queryand 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 Queryand return the results in a scrollable form. The capabilities of the returned ScrollableResultsdepend on the specifiedScrollMode. -
getParameterBindings
QueryParameterBindings getParameterBindings()- Specified by:
getParameterBindingsin interfaceCommonQueryContractImplementor
-
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 overloads which accepts a "type", or pass a
TypedParameterValue.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to a named query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(String, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>
-
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 overloads which accepts a "type", or pass a
TypedParameterValue.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(int, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>
-
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 overloads which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>- 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 givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(QueryParameter, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>- 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 givenQueryParameter, using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>- Parameters:
parameter- the query parameter mementoval- the argument, which might be nulltype- aTyperepresenting the type of the parameter- Returns:
this, for method chaining
-
setParameter
Description copied from interface:Query- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
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 interfaceCommonQueryContractImplementor- Specified by:
setPropertiesin interfaceQuery<T>- Parameters:
bean- any JavaBean or POJO- Returns:
this, for method chaining
-
setProperties
Description copied from interface:QueryBind the values of the givenMapto 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 interfaceCommonQueryContractImplementor- Specified by:
setPropertiesin interfaceQuery<T>- Parameters:
bean- aMapof names to arguments- Returns:
this, for method chaining
-
setConvertedParameter
<P> QueryImplementor<T> setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) Description copied from interface:Query- Specified by:
setConvertedParameterin interfaceCommonQueryContract- Specified by:
setConvertedParameterin interfaceCommonQueryContractImplementor- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<T>- See Also:
-
setConvertedParameter
<P> QueryImplementor<T> setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) Description copied from interface:Query- Specified by:
setConvertedParameterin interfaceCommonQueryContract- Specified by:
setConvertedParameterin interfaceCommonQueryContractImplementor- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> QueryImplementor<T> setParameterList(String name, Collection<? extends P> values, Class<P> javaType) Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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,CommonQueryContract.setParameterList(String, Collection)is used- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining
-
setParameterList
<P> QueryImplementor<T> setParameterList(int position, Collection<? extends P> values, Class<P> javaType) Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> QueryImplementor<T> 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining
-
setParameterList
<P> QueryImplementor<T> 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 interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
<P> QueryImplementor<T> 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 givenClassreference to attempt to infer theTypeto use. If unable to infer an appropriateType, fall back to usingCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> QueryImplementor<T> 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, using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- 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
QueryParameterand the type of the first given argument.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
<P> QueryImplementor<T> 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 infer theTypeto use. If unable to infer an appropriateType, fall back to usingCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceQuery<T>- Returns:
this, for method chaining
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(int position, Instant value, TemporalType temporalType) Deprecated.Description copied from interface:QueryBind anInstantvalue to the ordinal Queryparameter using just the portion indicated by the given TemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(int position, Date value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(String name, Instant value, TemporalType temporalType) Deprecated.Description copied from interface:QueryBind anInstantvalue to the named Queryparameter using just the portion indicated by the given TemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(String name, Date value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-
setParameter
@Deprecated(since="7") QueryImplementor<T> setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- See Also:
-