Interface MutationQueryImplementor<T>
- All Superinterfaces:
CommonQueryContract, CommonQueryContractImplementor, MutationQuery, Query, Query<T>, QueryImplementor<T>, Statement, StatementReferenceProducer
- All Known Subinterfaces:
NativeQueryImplementor<R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Statement
Statement.Option -
Method Summary
Modifier and TypeMethodDescriptionaddQueryHint(String hint) Add a database query hint to the SQL query.default MutationQueryImplementor<T> default SelectionQueryImplementor<T> default <X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph) default <X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) default <X> SelectionQueryImplementor<X> asSelectionQuery(Class<X> type) default CacheRetrieveModeDeprecated.default CacheStoreModeDeprecated.default intDeprecated.default LockModeTypeDeprecated.default intDeprecated.default StringThe HQL or native-SQL string, ornullin the case of a criteria query.Get theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.Deprecated.Deprecated.default TDeprecated.default TDeprecated.The Java type of the thing being mutated, if known.list()Deprecated.default ScrollableResults<T> scroll()Deprecated.default ScrollableResults<T> scroll(ScrollMode scrollMode) Deprecated.default QueryImplementor<T> setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) Deprecated.default QueryImplementor<T> setCacheStoreMode(CacheStoreMode cacheStoreMode) Deprecated.setComment(String comment) Set the comment for this query.setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) default QueryImplementor<T> setFirstResult(int startPosition) Deprecated.setFlushMode(FlushModeType flushMode) Deprecated.Set a hint.default QueryImplementor<T> setLockMode(LockModeType lockMode) Deprecated.default QueryImplementor<T> setMaxResults(int maxResults) Deprecated.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.setParameter(int position, P value, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.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.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.setParameter(String name, P value, Type<P> type) Bind the given argument to a named query parameter using the givenType.setParameter(String name, P value, Class<P> type) setParameter(QueryParameter<P> parameter, P value) Bind an argument to the query parameter represented by the givenQueryParameter.setParameter(QueryParameter<P> parameter, P val, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenType.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.setParameterList(int position, Collection<? extends P> values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.setParameterList(int position, Collection<? extends P> values, Class<P> javaType) setParameterList(int position, P[] values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.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.setParameterList(String name, Collection<? extends P> values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.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).setParameterList(String name, P[] values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.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.setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.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.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.setParameterList(QueryParameter<P> parameter, P[] values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.setParameterList(QueryParameter<P> parameter, P[] values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.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.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 integer) Specify a JDBC query timeout to use when executing the query.stream()Deprecated.default TDeprecated.Deprecated.Methods inherited from interface CommonQueryContract
getComment, getEffectiveFlushMode, getQueryFlushMode, getTimeoutMethods inherited from interface CommonQueryContractImplementor
getSessionMethods inherited from interface MutationQuery
addOption, execute, executeUpdateMethods inherited from interface Query
getHints, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods inherited from interface Query
disableFetchProfile, enableFetchProfile, executeUpdate, getCacheMode, getCacheRegion, getFetchSize, getFlushMode, getHibernateLockMode, getQueryOptions, getQueryString, isCacheable, isQueryPlanCacheable, isReadOnly, setCacheable, setCacheMode, setCacheRegion, setEntityGraph, setFetchSize, setReadOnly, setResultListTransformer, setTupleTransformerMethods inherited from interface QueryImplementor
getParameterBindings, setFollowOnStrategy, setHibernateLockMode, setQueryPlanCacheable, withResultSetMappingMethods inherited from interface Statement
getOptionsMethods inherited from interface StatementReferenceProducer
toMutationMemento
-
Method Details
-
getMutationString
Description copied from interface:MutationQueryThe HQL or native-SQL string, ornullin the case of a criteria query.- Specified by:
getMutationStringin interfaceMutationQuery
-
getTargetType
Description copied from interface:MutationQueryThe Java type of the thing being mutated, if known.- Specified by:
getTargetTypein interfaceMutationQuery
-
asMutationQuery
- Specified by:
asMutationQueryin interfaceQueryImplementor<T>
-
setTimeout
Description copied from interface:MutationQuerySpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceQuery<T>- Specified by:
setTimeoutin interfaceQueryImplementor<T>- See Also:
-
setTimeout
Description copied from interface:MutationQuerySpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<T>- Specified by:
setTimeoutin interfaceQueryImplementor<T>- Specified by:
setTimeoutin interfaceStatement- See Also:
-
setTimeout
Description copied from interface:MutationQuerySpecify a JDBC query timeout to use when executing the query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<T>- Specified by:
setTimeoutin interfaceQueryImplementor<T>- Specified by:
setTimeoutin interfaceStatement
-
setComment
Description copied from interface:MutationQuerySet 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 interfaceMutationQuery- Specified by:
setCommentin interfaceQuery<T>- Specified by:
setCommentin interfaceQueryImplementor<T>- See Also:
-
setQueryFlushMode
Description copied from interface:MutationQuerySet 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 interfaceMutationQuery- Specified by:
setQueryFlushModein interfaceQuery- Specified by:
setQueryFlushModein interfaceQuery<T>- Specified by:
setQueryFlushModein interfaceQueryImplementor<T>- Specified by:
setQueryFlushModein interfaceStatement- See Also:
-
addQueryHint
Description copied from interface:MutationQueryAdd 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 interfaceMutationQuery- Specified by:
addQueryHintin interfaceQuery<T>- Specified by:
addQueryHintin interfaceQueryImplementor<T>
-
setHint
Description copied from interface:MutationQuerySet 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 interfaceMutationQuery- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<T>- Specified by:
setHintin interfaceQueryImplementor<T>- Specified by:
setHintin interfaceStatement- See Also:
-
getParameterMetadata
Description copied from interface:CommonQueryContractGet theParameterMetadataobject representing the parameters of this query, and providing access to theQueryParameters.- Specified by:
getParameterMetadatain interfaceCommonQueryContract
-
setParameter
Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Nonnull <P> MutationQueryImplementor<T> setParameter(@Nonnull String name, @Nullable P value, @Nonnull Class<P> type) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Nonnull <P> MutationQueryImplementor<T> setParameter(@Nonnull String name, @Nullable P value, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind the given argument to a named query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement
-
setParameter
Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameters
Description copied from interface:Query- Specified by:
setParametersin interfaceCommonQueryContract- Specified by:
setParametersin interfaceCommonQueryContractImplementor- Specified by:
setParametersin interfaceMutationQuery- Specified by:
setParametersin interfaceQuery- Specified by:
setParametersin interfaceQuery<T>- Specified by:
setParametersin interfaceQueryImplementor<T>- Specified by:
setParametersin interfaceStatement- See Also:
-
setParameter
@Nonnull <P> MutationQueryImplementor<T> setParameter(int position, @Nullable P value, @Nonnull Class<P> type) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Nonnull <P> MutationQueryImplementor<T> setParameter(int position, @Nullable P value, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind the given argument to an ordinal query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement
-
setParameter
@Nonnull <P> MutationQueryImplementor<T> setParameter(@Nonnull QueryParameter<P> parameter, @Nullable P value) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Parameters:
parameter- the query parameter mementovalue- the argument, which might be null- Returns:
this, for method chaining- See Also:
-
setParameter
@Nonnull <P> MutationQueryImplementor<T> setParameter(@Nonnull QueryParameter<P> parameter, @Nullable P value, @Nonnull Class<P> type) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<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> MutationQueryImplementor<T> setParameter(@Nonnull QueryParameter<P> parameter, @Nullable P val, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind an argument to the query parameter represented by the givenQueryParameter, using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<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
@Nonnull <P> MutationQueryImplementor<T> setParameter(@Nonnull Parameter<P> param, @Nullable P value) Description copied from interface:Query- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameterList
@Nonnull MutationQueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull Collection values) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull Collection<? extends P> values, @Nonnull Class<P> javaType) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull Collection<? extends P> values, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
@Nonnull MutationQueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull Object[] values) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull P[] values, @Nonnull Class<P> javaType) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull String name, @Nonnull P[] values, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(int position, @Nonnull Collection<? extends P> values, @Nonnull Class<P> javaType) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(int position, @Nonnull Collection<? extends P> values, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(int position, @Nonnull P[] values, @Nonnull Class<P> javaType) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(int position, @Nonnull P[] values, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull Collection<? extends P> values) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull Collection<? extends P> values, @Nonnull Class<P> javaType) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull Collection<? extends P> values, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull P[] values) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull P[] values, @Nonnull Class<P> javaType) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining- See Also:
-
setParameterList
@Nonnull <P> MutationQueryImplementor<T> setParameterList(@Nonnull QueryParameter<P> parameter, @Nonnull P[] values, @Nonnull Type<P> type) Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setParameterListin interfaceQuery<T>- Specified by:
setParameterListin interfaceQueryImplementor<T>- Returns:
this, for method chaining
-
setProperties
Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setPropertiesin interfaceQuery<T>- Specified by:
setPropertiesin interfaceQueryImplementor<T>- Parameters:
bean- any JavaBean or POJO- Returns:
this, for method chaining
-
setProperties
Description copied from interface:CommonQueryContractBind 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 interfaceMutationQuery- Specified by:
setPropertiesin interfaceQuery<T>- Specified by:
setPropertiesin interfaceQueryImplementor<T>- Parameters:
bean- aMapof names to arguments- Returns:
this, for method chaining
-
setConvertedParameter
@Nonnull <P> MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<T>- Specified by:
setConvertedParameterin interfaceQueryImplementor<T>- Specified by:
setConvertedParameterin interfaceStatement- See Also:
-
setConvertedParameter
@Nonnull <P> MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<T>- Specified by:
setConvertedParameterin interfaceQueryImplementor<T>- Specified by:
setConvertedParameterin interfaceStatement- See Also:
-
getLockMode
Deprecated.- Specified by:
getLockModein interfaceQuery- Specified by:
getLockModein interfaceQuery<T>
-
setLockMode
Deprecated.- Specified by:
setLockModein interfaceCommonQueryContractImplementor- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<T>- Specified by:
setLockModein interfaceQueryImplementor<T>
-
getCacheStoreMode
Deprecated.- Specified by:
getCacheStoreModein interfaceQuery- Specified by:
getCacheStoreModein interfaceQuery<T>
-
setCacheStoreMode
@Deprecated @Nonnull default QueryImplementor<T> setCacheStoreMode(@Nonnull CacheStoreMode cacheStoreMode) Deprecated.- Specified by:
setCacheStoreModein interfaceCommonQueryContractImplementor- Specified by:
setCacheStoreModein interfaceQuery- Specified by:
setCacheStoreModein interfaceQuery<T>- Specified by:
setCacheStoreModein interfaceQueryImplementor<T>
-
getCacheRetrieveMode
Deprecated.- Specified by:
getCacheRetrieveModein interfaceQuery- Specified by:
getCacheRetrieveModein interfaceQuery<T>
-
setCacheRetrieveMode
@Deprecated @Nonnull default QueryImplementor<T> setCacheRetrieveMode(@Nonnull CacheRetrieveMode cacheRetrieveMode) Deprecated.- Specified by:
setCacheRetrieveModein interfaceCommonQueryContractImplementor- Specified by:
setCacheRetrieveModein interfaceQuery- Specified by:
setCacheRetrieveModein interfaceQuery<T>- Specified by:
setCacheRetrieveModein interfaceQueryImplementor<T>
-
getMaxResults
Deprecated.- Specified by:
getMaxResultsin interfaceQuery- Specified by:
getMaxResultsin interfaceQuery<T>
-
setMaxResults
Deprecated.- Specified by:
setMaxResultsin interfaceCommonQueryContractImplementor- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<T>- Specified by:
setMaxResultsin interfaceQueryImplementor<T>
-
getFirstResult
Deprecated.- Specified by:
getFirstResultin interfaceQuery- Specified by:
getFirstResultin interfaceQuery<T>
-
setFirstResult
Deprecated.- Specified by:
setFirstResultin interfaceCommonQueryContractImplementor- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<T>- Specified by:
setFirstResultin interfaceQueryImplementor<T>
-
scroll
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return the results in a scrollable form.This overload simply calls
Query.scroll(ScrollMode)using the default scroll mode of the SQL dialect. -
scroll
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return the results in a scrollable form. The capabilities of the returnedScrollableResultsdepend on the specifiedScrollMode. -
list
-
getResultList
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return theQuery<T>results as aList. If theQuery<T>contains multiple items in the selection list, then by default each result in the list is packaged in an array of typeObject[].- Specified by:
getResultListin interfaceQuery- Specified by:
getResultListin interfaceQuery<T>- Returns:
- the results as a list
-
getResultStream
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return theQuery<T>results as aStream. If theQuery<T>contains multiple items in the selection list, then by default each result in the stream is packaged in an array of typeObject[].The client should call
BaseStream.close()after processing the stream so that resources are freed as soon as possible.- Specified by:
getResultStreamin interfaceQuery- Specified by:
getResultStreamin interfaceQuery<T>- Returns:
- The results as a
Stream
-
stream
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return theQuery<T>results as aStream. If theQuery<T>contains multiple items in the selection list, then by default each result in the stream is packaged in an array of typeObject[].The client should call
BaseStream.close()after processing the stream so that resources are freed as soon as possible. -
uniqueResult
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return the single result of the query, ornullif theQuery<T>returns no results.- Specified by:
uniqueResultin interfaceQuery<T>- Returns:
- the single result or
nullif there is no result to return
-
uniqueResultOptional
Deprecated.Description copied from interface:Query- Specified by:
uniqueResultOptionalin interfaceQuery<T>- Returns:
- the single result as an
Optional
-
getSingleResult
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return the single result of the query, throwing an exception if theQuery<T>returns no results.- Specified by:
getSingleResultin interfaceQuery- Specified by:
getSingleResultin interfaceQuery<T>- Returns:
- the single result, only if there is exactly one
-
getSingleResultOrNull
Deprecated.Description copied from interface:QueryExecute theQuery<T>and return the single result of the query ornullif theQuery<T>returns no results, throwing and exception if theQuery<T>returns more than one result.- Specified by:
getSingleResultOrNullin interfaceQuery- Specified by:
getSingleResultOrNullin interfaceQuery<T>- Returns:
- the single result, if there is exactly one result,
or
nullif there are no results to return
-
setFlushMode
Deprecated.Description copied from interface:MutationQuery- Specified by:
setFlushModein interfaceCommonQueryContractImplementor- Specified by:
setFlushModein interfaceMutationQuery- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<T>- Specified by:
setFlushModein interfaceQueryImplementor<T>- Specified by:
setFlushModein interfaceStatement- See Also:
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<T> setParameter(@Nonnull String name, @Nullable Instant value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:CommonQueryContractBind anInstantto the named query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<T> setParameter(int position, @Nullable Instant value, @Nonnull TemporalType temporalType) Deprecated.Description copied from interface:CommonQueryContractBind anInstantto an ordinal query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated @Nonnull MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
asSelectionQuery
- Specified by:
asSelectionQueryin interfaceQueryImplementor<T>
-
asSelectionQuery
- Specified by:
asSelectionQueryin interfaceQueryImplementor<T>
-
asSelectionQuery
- Specified by:
asSelectionQueryin interfaceQueryImplementor<T>
-
asSelectionQuery
@Nonnull default <X> SelectionQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph, GraphSemantic graphSemantic) - Specified by:
asSelectionQueryin interfaceQueryImplementor<T>
-