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.<X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph) <X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) <X> SelectionQueryImplementor<X> asSelectionQuery(Class<X> type) 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) Deprecated.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) 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.setParameters(Object... arguments) 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 or disable query plan caching for this query, if available.setTimeout(int timeout) Specify a JDBC query timeout to use when executing the query.setTimeout(Timeout timeout) Specify a JDBC query timeout to use when executing the query.setTimeout(Integer timeout) Specify a JDBC query timeout to use when executing the query.<R> SelectionQueryImplementor<R> withResultSetMapping(jakarta.persistence.sql.ResultSetMapping<R> mapping) Methods inherited from interface CommonQueryContract
getComment, getEffectiveFlushMode, getParameterMetadata, getQueryFlushMode, getTimeoutMethods inherited from interface CommonQueryContractImplementor
getSessionMethods inherited from interface Query
getHints, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods inherited from interface Query
disableFetchProfile, enableFetchProfile, executeUpdate, getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getFlushMode, getHibernateLockMode, getLockMode, getMaxResults, getQueryOptions, getQueryString, getResultList, getResultStream, getSingleResult, getSingleResultOrNull, isCacheable, isQueryPlanCacheable, isReadOnly, list, scroll, scroll, setCacheable, setCacheMode, setCacheRegion, setEntityGraph, setFetchSize, setReadOnly, setResultListTransformer, setTupleTransformer, stream, uniqueResult, uniqueResultOptional
-
Method Details
-
asMutationQuery
-
asSelectionQuery
-
asSelectionQuery
-
asSelectionQuery
-
asSelectionQuery
@Nonnull <X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) -
withResultSetMapping
@Nonnull <R> SelectionQueryImplementor<R> withResultSetMapping(jakarta.persistence.sql.ResultSetMapping<R> mapping) -
setQueryFlushMode
Description copied from interface:QuerySet theQueryFlushModeto use for this query.A
QueryFlushModeonly affects stateful sessions. A stateless session has no persistence context to flush.- Specified by:
setQueryFlushModein interfaceCommonQueryContract- Specified by:
setQueryFlushModein interfaceCommonQueryContractImplementor- Specified by:
setQueryFlushModein interfaceQuery- Specified by:
setQueryFlushModein interfaceQuery<T>- See Also:
-
setFlushMode
Deprecated.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:QuerySpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceQuery<T>- See Also:
-
setTimeout
Description copied from interface:QuerySpecify a JDBC query timeout to use when executing the 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:QuerySpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<T>
-
setQueryPlanCacheable
Description copied from interface:QueryEnable or disable query plan 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
-
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 this 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.Since JPA 4,
TypedQuery.OptionandStatement.Optioncompete with query hints, offering a more type safe way to accommodate vendor extensions.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:
-
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
@Nonnull <P> QueryImplementor<T> setParameter(@Nonnull String name, @Nullable P value, @Nonnull Class<P> type) 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
@Nonnull <P> QueryImplementor<T> setParameter(@Nonnull String name, @Nullable P value, @Nonnull Type<P> type) 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:
-
setParameters
Description copied from interface:Query- Specified by:
setParametersin interfaceCommonQueryContract- Specified by:
setParametersin interfaceCommonQueryContractImplementor- Specified by:
setParametersin interfaceQuery- Specified by:
setParametersin interfaceQuery<T>- See Also:
-
setParameter
@Nonnull <P> QueryImplementor<T> setParameter(int position, @Nullable P value, @Nonnull Class<P> type) 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
@Nonnull <P> QueryImplementor<T> setParameter(int position, @Nullable P value, @Nonnull Type<P> type) 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
@Nonnull <P> QueryImplementor<T> setParameter(@Nonnull QueryParameter<P> parameter, @Nullable P value) 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
@Nonnull <P> QueryImplementor<T> setParameter(@Nonnull QueryParameter<P> parameter, @Nullable P value, @Nonnull Class<P> type) 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
@Nonnull <P> QueryImplementor<T> setParameter(@Nonnull QueryParameter<P> parameter, @Nullable P val, @Nonnull Type<P> type) 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
@Nonnull <P> QueryImplementor<T> setConvertedParameter(@Nonnull String name, @Nullable P value, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setConvertedParameter(int position, @Nullable P value, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull Collection<? extends P> values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull Collection<? extends P> values, @Nonnull Type<P> type) 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull P[] values, @Nonnull 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,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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull P[] values, @Nonnull Type<P> type) 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
@Nonnull <P> QueryImplementor<T> setParameterList(int position, @Nonnull Collection<? extends P> values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(int position, @Nonnull Collection<? extends P> values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(int position, @Nonnull P[] values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(int position, @Nonnull P[] values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull Collection<? extends P> values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull Collection<? extends P> values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull P[] values) 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull P[] values, @Nonnull 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
@Nonnull <P> QueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull P[] values, @Nonnull Type<P> type) 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") @Nonnull QueryImplementor<T> setParameter(int position, @Nullable Instant value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryBind anInstantvalue to the ordinalQuery<T>parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>
-
setParameter
@Deprecated(since="7") @Nonnull QueryImplementor<T> setParameter(int position, @Nullable Date value, @Nonnull 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") @Nonnull QueryImplementor<T> setParameter(int position, @Nullable Calendar value, @Nonnull 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") @Nonnull QueryImplementor<T> setParameter(@Nonnull String name, @Nullable Instant value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:QueryBind anInstantvalue to the namedQuery<T>parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceQuery<T>
-
setParameter
@Deprecated(since="7") @Nonnull QueryImplementor<T> setParameter(@Nonnull String name, @Nullable Calendar value, @Nonnull 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") @Nonnull QueryImplementor<T> setParameter(@Nonnull String name, @Nullable Date value, @Nonnull 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") @Nonnull QueryImplementor<T> setParameter(@Nonnull Parameter<Calendar> param, @Nullable Calendar value, @Nonnull 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") @Nonnull QueryImplementor<T> setParameter(@Nonnull Parameter<Date> param, @Nullable Date value, @Nonnull 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:
-