Interface MutationQueryImplementor<T>
- All Superinterfaces:
CommonQueryContract, CommonQueryContractImplementor, MutationQuery, Query, Query<T>, QueryImplementor<T>, Statement, StatementReferenceProducer
- All Known Subinterfaces:
NativeQueryImplementor<R>
-
Method Summary
Modifier and TypeMethodDescriptionaddQueryHint(String hint) Add a database query hint to the SQL query.default MutationQueryImplementor<T> Casts this query as a mutation query.default MutationQueryImplementor<T> Covariant override of Query.asStatement().default CacheRetrieveModedefault CacheStoreModedefault intdefault LockModeTypedefault intdefault 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.Execute the Queryand return the Query results as a List.Execute the Queryand return the Query results as a Stream.default TExecute the Queryand return the single result of the query, throwing an exception if the Query returns no results. default TThe Java type of the thing being mutated, if known.list()Execute the Queryand return the Query results as a List.default <X> SelectionQueryImplementor<X> Covariant override of Query.ofType(Class).default ScrollableResultsImplementor<T> scroll()Execute the Queryand return the results in a scrollable form. default ScrollableResultsImplementor<T> scroll(ScrollMode scrollMode) Execute the Queryand return the results in a scrollable form. default QueryImplementor<T> setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) default QueryImplementor<T> setCacheStoreMode(CacheStoreMode cacheStoreMode) 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) setFlushMode(FlushModeType flushMode) Set theFlushModeTypeto use for this query.Set a hint.default QueryImplementor<T> setLockMode(LockModeType lockMode) default QueryImplementor<T> setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.default QueryImplementor<T> 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.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.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) Apply a timeout to the corresponding database query.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.setTimeout(Integer integer) Apply a timeout to the corresponding database query.stream()Execute the Queryand return the Query results as a Stream.default TExecute the Queryand return the single result of the query, or nullif the Queryreturns no results. Execute the Queryand return the single result of the Query as an instance of Optional.default <X> SelectionQueryImplementor<X> withEntityGraph(EntityGraph<X> entityGraph) Covariant override of Query.withEntityGraph(EntityGraph).Methods inherited from interface CommonQueryContract
asSelectionQuery, getComment, getEffectiveFlushMode, getQueryFlushMode, getTimeoutMethods inherited from interface CommonQueryContractImplementor
asSelectionQuery, asSelectionQuery, getSessionMethods inherited from interface MutationQuery
executeUpdateMethods inherited from interface Query
getHints, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods inherited from interface Query
executeUpdate, getCacheMode, getCacheRegion, getFetchSize, getFlushMode, getHibernateLockMode, getLockTimeout, getQueryOptions, getQueryString, isCacheable, isQueryPlanCacheable, isReadOnly, setCacheable, setCacheMode, setCacheRegion, setFetchSize, setLockTimeout, setReadOnly, setResultListTransformer, setTupleTransformerMethods inherited from interface QueryImplementor
asSelectionQuery, getParameterBindings, setFollowOnLockingStrategy, setFollowOnStrategy, setHibernateLockMode, setQueryPlanCacheableMethods 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
-
asStatement
Description copied from interface:QueryCovariant override of Query.asStatement().- Specified by:
asStatementin interfaceCommonQueryContractImplementor- Specified by:
asStatementin interfaceQuery- Specified by:
asStatementin interfaceQuery<T>- Specified by:
asStatementin interfaceQueryImplementor<T>- See Also:
-
asMutationQuery
Description copied from interface:CommonQueryContractCasts this query as a mutation query.- Specified by:
asMutationQueryin interfaceCommonQueryContract- Specified by:
asMutationQueryin interfaceCommonQueryContractImplementor- Specified by:
asMutationQueryin interfaceQueryImplementor<T>
-
setTimeout
Description copied from interface:CommonQueryContractApply a timeout to the corresponding database 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:CommonQueryContractApply a timeout to the corresponding database 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:CommonQueryContractApply a timeout to the corresponding database 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:CommonQueryContractSet 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:CommonQueryContractSet theQueryFlushModeto use for this query.- Specified by:
setQueryFlushModein interfaceCommonQueryContract- Specified by:
setQueryFlushModein interfaceCommonQueryContractImplementor- Specified by:
setQueryFlushModein interfaceMutationQuery- Specified by:
setQueryFlushModein interfaceQuery<T>- Specified by:
setQueryFlushModein interfaceQueryImplementor<T>- See Also:
-
addQueryHint
Description copied from interface:CommonQueryContractAdd 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>- Specified by:
addQueryHintin interfaceQueryImplementor<T>
-
setHint
Description copied from interface:CommonQueryContractSet 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 interfaceMutationQuery- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<T>- Specified by:
setHintin interfaceQueryImplementor<T>- Specified by:
setHintin interfaceStatement- See Also:
-
getParameterMetadata
ParameterMetadataImplementor 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
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
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:
-
setParameter
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
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
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
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
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
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
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
<P> MutationQueryImplementor<T> setParameterList(String name, Collection<? extends P> values, 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
<P> MutationQueryImplementor<T> setParameterList(String name, Collection<? extends P> values, 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 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
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
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
<P> MutationQueryImplementor<T> setParameterList(int position, Collection<? extends P> values, 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
<P> MutationQueryImplementor<T> setParameterList(int position, Collection<? extends P> values, 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
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
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
<P> MutationQueryImplementor<T> setParameterList(QueryParameter<P> parameter, 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
<P> MutationQueryImplementor<T> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, 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
<P> MutationQueryImplementor<T> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, 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
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
<P> MutationQueryImplementor<T> setParameterList(QueryParameter<P> parameter, P[] values, 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
<P> MutationQueryImplementor<T> setParameterList(QueryParameter<P> parameter, P[] values, 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
<P> MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<T>- Specified by:
setConvertedParameterin interfaceQueryImplementor<T>- Specified by:
setConvertedParameterin interfaceStatement- See Also:
-
setConvertedParameter
<P> MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<T>- Specified by:
setConvertedParameterin interfaceQueryImplementor<T>- Specified by:
setConvertedParameterin interfaceStatement- See Also:
-
ofType
Description copied from interface:QueryCovariant override of Query.ofType(Class). -
withEntityGraph
Description copied from interface:QueryCovariant override of Query.withEntityGraph(EntityGraph).- Specified by:
withEntityGraphin interfaceCommonQueryContractImplementor- Specified by:
withEntityGraphin interfaceQuery- Specified by:
withEntityGraphin interfaceQuery<T>- See Also:
-
getLockMode
- Specified by:
getLockModein interfaceQuery
-
setLockMode
- Specified by:
setLockModein interfaceCommonQueryContractImplementor- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<T>- Specified by:
setLockModein interfaceQueryImplementor<T>
-
setLockScope
Description copied from interface:QueryApply a scope to any pessimistic locking applied to the query.- Specified by:
setLockScopein interfaceQuery<T>- Specified by:
setLockScopein interfaceQueryImplementor<T>- Parameters:
lockScope- The lock scope to apply- Returns:
this, for method chaining
-
getCacheStoreMode
- Specified by:
getCacheStoreModein interfaceQuery
-
setCacheStoreMode
- Specified by:
setCacheStoreModein interfaceCommonQueryContractImplementor- Specified by:
setCacheStoreModein interfaceQuery- Specified by:
setCacheStoreModein interfaceQuery<T>- Specified by:
setCacheStoreModein interfaceQueryImplementor<T>
-
getCacheRetrieveMode
- Specified by:
getCacheRetrieveModein interfaceQuery
-
setCacheRetrieveMode
- Specified by:
setCacheRetrieveModein interfaceCommonQueryContractImplementor- Specified by:
setCacheRetrieveModein interfaceQuery- Specified by:
setCacheRetrieveModein interfaceQuery<T>- Specified by:
setCacheRetrieveModein interfaceQueryImplementor<T>
-
getMaxResults
default int getMaxResults()- Specified by:
getMaxResultsin interfaceQuery
-
setMaxResults
- Specified by:
setMaxResultsin interfaceCommonQueryContractImplementor- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<T>- Specified by:
setMaxResultsin interfaceQueryImplementor<T>
-
getFirstResult
default int getFirstResult()- Specified by:
getFirstResultin interfaceQuery
-
setFirstResult
- Specified by:
setFirstResultin interfaceCommonQueryContractImplementor- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<T>- Specified by:
setFirstResultin interfaceQueryImplementor<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. -
list
-
getResultList
Description copied from interface:QueryExecute the Queryand return the Query results as a List. If the Querycontains multiple items in the selection list, then by default each result in the list is packaged in an array of type Object[].- Specified by:
getResultListin interfaceQuery- Specified by:
getResultListin interfaceQuery<T>- Returns:
- the results as a list
-
getResultStream
Description copied from interface:QueryExecute the Queryand return the Query results as a Stream. If the Querycontains multiple items in the selection list, then by default each result in the stream is packaged in an array of type Object[].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
Description copied from interface:QueryExecute the Queryand return the Query results as a Stream. If the Querycontains multiple items in the selection list, then by default each result in the stream is packaged in an array of type Object[].The client should call
BaseStream.close()after processing the stream so that resources are freed as soon as possible. -
uniqueResult
Description copied from interface:QueryExecute the Queryand return the single result of the query, or nullif the Queryreturns no results. - Specified by:
uniqueResultin interfaceQuery<T>- Returns:
- the single result or
nullif there is no result to return
-
uniqueResultOptional
-
getSingleResult
Description copied from interface:QueryExecute the Queryand return the single result of the query, throwing an exception if the Query returns no results. - Specified by:
getSingleResultin interfaceQuery- Specified by:
getSingleResultin interfaceQuery<T>- Returns:
- the single result, only if there is exactly one
-
getSingleResultOrNull
- Specified by:
getSingleResultOrNullin interfaceQuery
-
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 interfaceMutationQuery- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<T>- Specified by:
setFlushModein interfaceQueryImplementor<T>- Specified by:
setFlushModein interfaceStatement- See Also:
-
setParameter
@Deprecated MutationQueryImplementor<T> setParameter(String name, Instant value, 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 MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated MutationQueryImplementor<T> setParameter(int position, Instant value, 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 MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-
setParameter
@Deprecated MutationQueryImplementor<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 interfaceMutationQuery- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<T>- Specified by:
setParameterin interfaceQueryImplementor<T>- Specified by:
setParameterin interfaceStatement- See Also:
-