Interface NativeQueryImplementor<R>
- All Superinterfaces:
CommonQueryContract, CommonQueryContractImplementor, MutationQuery, MutationQueryImplementor<R>, NameableQuery, NativeQuery<R>, Query, Query<R>, QueryImplementor<R>, SelectionQuery<R>, SelectionQueryImplementor<R>, Statement, StatementReferenceProducer, SynchronizeableQuery, TypedQuery<R>, TypedQueryReferenceProducer
-
Nested Class Summary
Nested classes/interfaces inherited from interface NativeQuery
NativeQuery.CollectionReturn, NativeQuery.FetchReturn, NativeQuery.InstantiationResultNode<J>, NativeQuery.ResultNode, NativeQuery.ReturnableResultNode, NativeQuery.ReturnProperty, NativeQuery.RootReturn -
Method Summary
Modifier and TypeMethodDescriptionaddAttributeResult(String columnAlias, SingularAttribute attribute) Defines a result based on a specified attribute.addAttributeResult(String columnAlias, Class entityJavaType, String attributePath) Defines a result based on a specified attribute.addAttributeResult(String columnAlias, String entityName, String attributePath) Defines a result based on a specified attribute.Declare a "root" entity, without specifying an alias.Declare a "root" entity, without specifying an alias.Declare a "root" entity.Declare a "root" entity, specifying a lock mode.Declare a "root" entity.Declare a "root" entity, specifying a lock mode.Declare a join fetch result.Declare a join fetch result.Declare a join fetch result, specifying a lock mode.addQueryHint(String hint) Add a database query hint to the SQL query.voidaddResultTypeClass(Class<?> resultClass) org.hibernate.query.results.internal.dynamic.DynamicResultBuilderEntityStandardAdd a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.Declare a scalar query result.Declare a scalar query result using the specified result type.<C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> relationalJavaType, AttributeConverter<?, C> converter) Declare a scalar query result with an explicit conversion.<C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> relationalJavaType, Class<? extends AttributeConverter<?, C>> converter) Declare a scalar query result with an explicit conversion.<O,J> NativeQueryImplementor <R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, AttributeConverter<O, J> converter) Declare a scalar query result with an explicit conversion.<O,J> NativeQueryImplementor <R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, Class<? extends AttributeConverter<O, J>> converter) Declare a scalar query result with an explicit conversion.addScalar(String columnAlias, BasicDomainType type) Declare a scalar query result.addSynchronizedEntityClass(Class entityClass) Add all query spaces associated with the entity with the given type.addSynchronizedEntityName(String entityName) Add all query spaces associated with the entity with the given names.addSynchronizedQuerySpace(String querySpace) Add a query space.default NativeQueryImplementor<R> Casts this query as a mutation query.Casts this query as aSelectionQuery.<X> NativeQueryImplementor<X> asSelectionQuery(EntityGraph<X> entityGraph) Casts this query as aSelectionQuerywith the given result graph.<X> NativeQueryImplementor<X> asSelectionQuery(Class<X> type) Casts this query as aSelectionQuerywith the given result type.default NativeQueryImplementor<R> Covariant override of Query.asStatement().disableFetchProfile(String profileName) Disable the fetch profile with the given name in this session.enableFetchProfile(String profileName) Enable the fetch profile with the given name during execution of this query.intexecute()intExecute an insert, update, or delete statement, and return the number of affected entities.Obtain theCacheModein effect for this query.intGet the rootLockModefor the queryintExecute the query and return the query results as aList.Execute the query and return the query results as aStream.Execute the query and return the single result of the query, throwing an exception if the query returns no results.Execute the query and return the single result of the query, ornullif the query returns no results.Best guess whether this is a select query.list()Execute the query and return the query results as aList.<X> NativeQueryImplementor<X> Covariant override of Query.ofType(Class).scroll()Returns scrollable access to the query results, using the default scroll mode of the SQL dialect.scroll(ScrollMode scrollMode) Returns scrollable access to the query results.setCacheable(boolean cacheable) Enable/disable second level query (result) caching for this query.setCacheMode(CacheMode cacheMode) Set the currentCacheModein effect for this query.setCacheRegion(String cacheRegion) Set the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).setCacheRetrieveMode(CacheRetrieveMode cacheRetrieveMode) setCacheStoreMode(CacheStoreMode cacheStoreMode) setComment(String comment) Set the comment for this query.<P> NativeQueryImplementor<R> setConvertedParameter(int position, P value, Class<? extends AttributeConverter<P, ?>> converter) <P> NativeQueryImplementor<R> setConvertedParameter(String name, P value, Class<? extends AttributeConverter<P, ?>> converter) setEntityGraph(EntityGraph<? super R> entityGraph) Apply anEntityGraphto the query using load graph semantics.setEntityGraph(EntityGraph<? super R> graph, GraphSemantic semantic) Apply anEntityGraphto the query.setFetchSize(int fetchSize) Sets a JDBC fetch size hint for the query.setFirstResult(int startPosition) setFlushMode(FlushModeType flushMode) Deprecated.setFollowOnStrategy(Locking.FollowOn followOnStrategy) Specifies whether follow-on locking should be appliedsetHibernateLockMode(LockMode lockMode) Specify the rootLockModefor the querySet a hint.setLockMode(LockModeType lockMode) setLockScope(PessimisticLockScope lockScope) Apply a scope to any pessimistic locking applied to the query.setMaxResults(int maxResults) Set the page of results to return.setParameter(int position, Object val) Bind the given argument to an ordinal query parameter.setParameter(int position, Instant value, TemporalType temporalType) Deprecated.setParameter(int position, Calendar value, TemporalType temporalType) Deprecated.setParameter(int position, Date value, TemporalType temporalType) Deprecated.<P> NativeQueryImplementor<R> setParameter(int position, P val, Type<P> type) Bind the given argument to an ordinal query parameter using the givenType.<P> NativeQueryImplementor<R> setParameter(int position, P val, Class<P> type) setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType) Deprecated.setParameter(Parameter<Date> param, Date value, TemporalType temporalType) Deprecated.<P> NativeQueryImplementor<R> setParameter(Parameter<P> param, P value) setParameter(String name, Object val) Bind the given argument to a named query parameter.setParameter(String name, Instant value, TemporalType temporalType) Deprecated.setParameter(String name, Calendar value, TemporalType temporalType) Deprecated.setParameter(String name, Date value, TemporalType temporalType) Deprecated.<P> NativeQueryImplementor<R> setParameter(String name, P val, Type<P> type) Bind the given argument to a named query parameter using the givenType.<P> NativeQueryImplementor<R> setParameter(String name, P val, Class<P> type) <P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P val) Bind an argument to the query parameter represented by the givenQueryParameter.<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P val, Type<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenType.<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P val, Class<P> type) Bind an argument to the query parameter represented by the givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use.setParameterList(int position, Object[] values) Bind multiple arguments to an ordinal query parameter.setParameterList(int position, Collection values) Bind multiple arguments to an ordinal query parameter.<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Class<P> type) <P> NativeQueryImplementor<R> setParameterList(int position, P[] values, Type<P> type) Bind multiple arguments to an ordinal query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(int position, P[] values, Class<P> javaType) setParameterList(String name, Object[] values) Bind multiple arguments to a named query parameter.setParameterList(String name, Collection values) Bind multiple arguments to a named query parameter.<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Class<P> type) Bind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).<P> NativeQueryImplementor<R> setParameterList(String name, P[] values, Type<P> type) Bind multiple arguments to a named query parameter using the givenType.<P> NativeQueryImplementor<R> setParameterList(String name, P[] values, Class<P> type) Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values) Bind multiple arguments to the query parameter represented by the givenQueryParameter.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Type<P> type) Bind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType) Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to infer theTypeto use.setProperties(Object bean) Bind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.setProperties(Map bean) Bind the values of the givenMapto named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.setQueryFlushMode(QueryFlushMode queryFlushMode) Set theQueryFlushModeto use for this query.setQueryPlanCacheable(boolean queryPlanCacheable) Enable/disable query plan caching for this query.setReadOnly(boolean readOnly) Set the read-only/modifiable mode for entities and proxies loaded by thisQuery.setResultListTransformer(ResultListTransformer<R> transformer) Set aResultListTransformer.setTimeout(int timeout) Apply a timeout to the corresponding database query.setTimeout(Timeout timeout) Apply a timeout to the corresponding database query.setTimeout(Integer timeout) Apply a timeout to the corresponding database query.<X> NativeQueryImplementor<X> setTupleTransformer(TupleTransformer<X> transformer) Set aTupleTransformer.stream()Execute the query and return the query results as aStream.Convert this query into the memento.toMutationMemento(String name) org.hibernate.query.named.internal.NativeSelectionMementoImpl<R> toSelectionMemento(String name) Execute the query and return the single result of the query, ornullif the query returns no results.Execute the query and return the single result of the query, as anOptional.<X> NativeQueryImplementor<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
getSessionMethods inherited from interface MutationQueryImplementor
getMutationString, getParameterMetadata, getTargetTypeMethods inherited from interface NativeQuery
addFetch, addInstantiation, addRoot, addScalarMethods inherited from interface Query
getHints, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrapMethods inherited from interface Query
getFlushMode, getLockTimeout, getQueryOptions, getQueryStringMethods inherited from interface QueryImplementor
getParameterBindingsMethods inherited from interface SelectionQuery
getCacheRegion, getFetchSize, getKeyedResultList, getResultCount, getResultType, isCacheable, isQueryPlanCacheable, isReadOnlyMethods inherited from interface SelectionQueryImplementor
setFollowOnLockingStrategy, setLockTimeoutMethods inherited from interface SynchronizeableQuery
getSynchronizedQuerySpacesMethods inherited from interface TypedQuery
getEntityGraph, getLockScope
-
Method Details
-
isSelectQuery
Boolean isSelectQuery()Best guess whether this is a select query.nullindicates unknown -
toMemento
Description copied from interface:NameableQueryConvert this query into the memento.- Specified by:
toMementoin interfaceNameableQuery- See Also:
-
toMutationMemento
- Specified by:
toMutationMementoin interfaceStatementReferenceProducer
-
asMutationQuery
Description copied from interface:CommonQueryContractCasts this query as a mutation query.- Specified by:
asMutationQueryin interfaceCommonQueryContract- Specified by:
asMutationQueryin interfaceCommonQueryContractImplementor- Specified by:
asMutationQueryin interfaceMutationQueryImplementor<R>- Specified by:
asMutationQueryin interfaceQueryImplementor<R>- Specified by:
asMutationQueryin interfaceSelectionQueryImplementor<R>
-
asStatement
Description copied from interface:QueryCovariant override of Query.asStatement().- Specified by:
asStatementin interfaceCommonQueryContractImplementor- Specified by:
asStatementin interfaceMutationQueryImplementor<R>- Specified by:
asStatementin interfaceQuery- Specified by:
asStatementin interfaceQuery<R>- Specified by:
asStatementin interfaceQueryImplementor<R>- Specified by:
asStatementin interfaceSelectionQueryImplementor<R>- See Also:
-
asSelectionQuery
NativeQueryImplementor<R> asSelectionQuery()Description copied from interface:CommonQueryContractCasts this query as aSelectionQuery.- Specified by:
asSelectionQueryin interfaceCommonQueryContract- Specified by:
asSelectionQueryin interfaceCommonQueryContractImplementor- Specified by:
asSelectionQueryin interfaceQuery<R>- Specified by:
asSelectionQueryin interfaceQueryImplementor<R>
-
asSelectionQuery
Description copied from interface:CommonQueryContractCasts this query as aSelectionQuerywith the given result type.- Specified by:
asSelectionQueryin interfaceCommonQueryContract- Specified by:
asSelectionQueryin interfaceCommonQueryContractImplementor
-
asSelectionQuery
Description copied from interface:CommonQueryContractCasts this query as aSelectionQuerywith the given result graph.- Specified by:
asSelectionQueryin interfaceCommonQueryContract- Specified by:
asSelectionQueryin interfaceCommonQueryContractImplementor
-
ofType
Description copied from interface:QueryCovariant override of Query.ofType(Class).- Specified by:
ofTypein interfaceCommonQueryContractImplementor- Specified by:
ofTypein interfaceMutationQueryImplementor<R>- Specified by:
ofTypein interfaceQuery- Specified by:
ofTypein interfaceQuery<R>- See Also:
-
list
Description copied from interface:SelectionQueryExecute the query and return the query results as aList. If the query contains multiple items in the selection list, then by default each result in the list is packaged in an array of typeObject[].- Specified by:
listin interfaceMutationQueryImplementor<R>- Specified by:
listin interfaceQuery<R>- Specified by:
listin interfaceSelectionQuery<R>- Returns:
- the result list
-
getResultList
Description copied from interface:SelectionQueryExecute the query and return the query results as aList. If the query 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 interfaceMutationQueryImplementor<R>- Specified by:
getResultListin interfaceQuery- Specified by:
getResultListin interfaceQuery<R>- Specified by:
getResultListin interfaceSelectionQuery<R>- Specified by:
getResultListin interfaceTypedQuery<R>- Returns:
- the results as a list
-
scroll
ScrollableResultsImplementor<R> scroll()Description copied from interface:SelectionQueryReturns scrollable access to the query results, using the default scroll mode of the SQL dialect.- Specified by:
scrollin interfaceMutationQueryImplementor<R>- Specified by:
scrollin interfaceQuery<R>- Specified by:
scrollin interfaceQueryImplementor<R>- Specified by:
scrollin interfaceSelectionQuery<R>- Specified by:
scrollin interfaceSelectionQueryImplementor<R>- See Also:
-
scroll
Description copied from interface:SelectionQueryReturns scrollable access to the query results. The capabilities of the returnedScrollableResultsdepend on the specifiedScrollMode.- Specified by:
scrollin interfaceMutationQueryImplementor<R>- Specified by:
scrollin interfaceQuery<R>- Specified by:
scrollin interfaceQueryImplementor<R>- Specified by:
scrollin interfaceSelectionQuery<R>- Specified by:
scrollin interfaceSelectionQueryImplementor<R>
-
getResultStream
Description copied from interface:SelectionQueryExecute the query and return the query results as aStream. If the query 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 interfaceMutationQueryImplementor<R>- Specified by:
getResultStreamin interfaceQuery- Specified by:
getResultStreamin interfaceQuery<R>- Specified by:
getResultStreamin interfaceSelectionQuery<R>- Specified by:
getResultStreamin interfaceTypedQuery<R>- Returns:
- The results as a
Stream
-
stream
Description copied from interface:SelectionQueryExecute the query and return the query results as aStream. If the query 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:
streamin interfaceMutationQueryImplementor<R>- Specified by:
streamin interfaceQuery<R>- Specified by:
streamin interfaceSelectionQuery<R>- Returns:
- The results as a
Stream
-
uniqueResult
R uniqueResult()Description copied from interface:SelectionQueryExecute the query and return the single result of the query, ornullif the query returns no results.- Specified by:
uniqueResultin interfaceMutationQueryImplementor<R>- Specified by:
uniqueResultin interfaceQuery<R>- Specified by:
uniqueResultin interfaceSelectionQuery<R>- Returns:
- the single result or
null
-
uniqueResultOptional
Description copied from interface:SelectionQueryExecute the query and return the single result of the query, as anOptional.- Specified by:
uniqueResultOptionalin interfaceMutationQueryImplementor<R>- Specified by:
uniqueResultOptionalin interfaceQuery<R>- Specified by:
uniqueResultOptionalin interfaceSelectionQuery<R>- Returns:
- the single result as an
Optional
-
getSingleResult
R getSingleResult()Description copied from interface:SelectionQueryExecute the query and return the single result of the query, throwing an exception if the query returns no results.- Specified by:
getSingleResultin interfaceMutationQueryImplementor<R>- Specified by:
getSingleResultin interfaceQuery- Specified by:
getSingleResultin interfaceQuery<R>- Specified by:
getSingleResultin interfaceSelectionQuery<R>- Specified by:
getSingleResultin interfaceTypedQuery<R>- Returns:
- the single result, only if there is exactly one
-
getSingleResultOrNull
R getSingleResultOrNull()Description copied from interface:SelectionQueryExecute the query and return the single result of the query, ornullif the query returns no results.- Specified by:
getSingleResultOrNullin interfaceMutationQueryImplementor<R>- Specified by:
getSingleResultOrNullin interfaceQuery- Specified by:
getSingleResultOrNullin interfaceSelectionQuery<R>- Specified by:
getSingleResultOrNullin interfaceTypedQuery<R>- Returns:
- the single result or
nullif there is no result to return
-
execute
-
executeUpdate
int executeUpdate()Description copied from interface:QueryExecute an insert, update, or delete statement, and return the number of affected entities.For use with instances of
MutationQuerycreated usingSharedSessionContract.createMutationQuery(String),SharedSessionContract.createNamedMutationQuery(String),SharedSessionContract.createNativeMutationQuery(String), orSharedSessionContract.createMutationQuery(jakarta.persistence.criteria.CriteriaStatement).- Specified by:
executeUpdatein interfaceMutationQuery- Specified by:
executeUpdatein interfaceQuery- Specified by:
executeUpdatein interfaceQuery<R>- Specified by:
executeUpdatein interfaceSelectionQueryImplementor<R>- Specified by:
executeUpdatein interfaceTypedQuery<R>- Returns:
- the number of affected entity instances (may differ from the number of affected rows)
- See Also:
-
toSelectionMemento
- Specified by:
toSelectionMementoin interfaceTypedQueryReferenceProducer
-
addSynchronizedQuerySpace
Description copied from interface:SynchronizeableQueryAdd a query space. The effect of this call is to:- force an auto-flush if any entity associated with the current session and mapped to the given query space has pending changes which have not yet been synchronized with the database, and
- if the result set of this query is cached, mark it for invalidation when any entity mapped to the given query space is synchronized with the database in any session.
- Specified by:
addSynchronizedQuerySpacein interfaceNativeQuery<R>- Specified by:
addSynchronizedQuerySpacein interfaceSynchronizeableQuery- Parameters:
querySpace- The name of the query space, usually the name of a database table.- Returns:
this, for method chaining
-
addSynchronizedEntityName
Description copied from interface:SynchronizeableQueryAdd all query spaces associated with the entity with the given names.Same as
SynchronizeableQuery.addSynchronizedQuerySpace(String)for all tables mapped by the given entity.- Specified by:
addSynchronizedEntityNamein interfaceNativeQuery<R>- Specified by:
addSynchronizedEntityNamein interfaceSynchronizeableQuery- Parameters:
entityName- The name of an entity.- Returns:
this, for method chaining- Throws:
MappingException- Indicates the given name could not be resolved as an entity
-
addSynchronizedEntityClass
Description copied from interface:SynchronizeableQueryAdd all query spaces associated with the entity with the given type.Same as
SynchronizeableQuery.addSynchronizedQuerySpace(String)for all tables mapped by the given entity.- Specified by:
addSynchronizedEntityClassin interfaceNativeQuery<R>- Specified by:
addSynchronizedEntityClassin interfaceSynchronizeableQuery- Parameters:
entityClass- The class of the entity.- Returns:
this, for method chaining- Throws:
MappingException- Indicates the given class could not be resolved as an entity
-
setHint
Description copied from interface:QuerySet a hint. Hints are a JPA-standard way to control provider-specific behavior affecting execution of the query. Clients of native Hibernate API should make use of type-safe operations of this interface and of its subtypes. For example,SelectionQuery.setCacheRegion(String)is preferred overHibernateHints.HINT_CACHE_REGION.The hints understood by Hibernate are enumerated by
AvailableHints.- Specified by:
setHintin interfaceCommonQueryContract- Specified by:
setHintin interfaceCommonQueryContractImplementor- Specified by:
setHintin interfaceMutationQuery- Specified by:
setHintin interfaceMutationQueryImplementor<R>- Specified by:
setHintin interfaceNativeQuery<R>- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<R>- Specified by:
setHintin interfaceQueryImplementor<R>- Specified by:
setHintin interfaceSelectionQuery<R>- Specified by:
setHintin interfaceSelectionQueryImplementor<R>- Specified by:
setHintin interfaceStatement- Specified by:
setHintin interfaceTypedQuery<R>- See Also:
-
setTimeout
Description copied from interface:QueryApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceMutationQueryImplementor<R>- Specified by:
setTimeoutin interfaceNativeQuery<R>- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceQueryImplementor<R>- Specified by:
setTimeoutin interfaceSelectionQuery<R>- Specified by:
setTimeoutin interfaceSelectionQueryImplementor<R>- See Also:
-
setTimeout
Description copied from interface:QueryApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceMutationQueryImplementor<R>- Specified by:
setTimeoutin interfaceNativeQuery<R>- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceQueryImplementor<R>- Specified by:
setTimeoutin interfaceSelectionQuery<R>- Specified by:
setTimeoutin interfaceSelectionQueryImplementor<R>- Specified by:
setTimeoutin interfaceStatement- Specified by:
setTimeoutin interfaceTypedQuery<R>- See Also:
-
setTimeout
Description copied from interface:QueryApply a timeout to the corresponding database query.- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceCommonQueryContractImplementor- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceMutationQueryImplementor<R>- Specified by:
setTimeoutin interfaceNativeQuery<R>- Specified by:
setTimeoutin interfaceQuery- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceQueryImplementor<R>- Specified by:
setTimeoutin interfaceSelectionQuery<R>- Specified by:
setTimeoutin interfaceSelectionQueryImplementor<R>- Specified by:
setTimeoutin interfaceStatement- Specified by:
setTimeoutin interfaceTypedQuery<R>- Parameters:
timeout- The timeout to apply- Returns:
this, for method chaining
-
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 interfaceMutationQueryImplementor<R>- Specified by:
setQueryFlushModein interfaceNativeQuery<R>- Specified by:
setQueryFlushModein interfaceQuery<R>- Specified by:
setQueryFlushModein interfaceQueryImplementor<R>- Specified by:
setQueryFlushModein interfaceSelectionQuery<R>- Specified by:
setQueryFlushModein interfaceSelectionQueryImplementor<R>- See Also:
-
setFlushMode
Deprecated.Description copied from interface:QuerySet theFlushModeTypeto use for this query.Setting this to
nullultimately indicates to use theFlushModeof the session. UseQuery.setQueryFlushMode(QueryFlushMode)passingQueryFlushMode.NO_FLUSHinstead to indicate that no automatic flushing should occur.- Specified by:
setFlushModein interfaceCommonQueryContractImplementor- Specified by:
setFlushModein interfaceMutationQuery- Specified by:
setFlushModein interfaceMutationQueryImplementor<R>- Specified by:
setFlushModein interfaceNativeQuery<R>- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceQueryImplementor<R>- Specified by:
setFlushModein interfaceSelectionQuery<R>- Specified by:
setFlushModein interfaceSelectionQueryImplementor<R>- Specified by:
setFlushModein interfaceStatement- Specified by:
setFlushModein interfaceTypedQuery<R>- See Also:
-
setQueryPlanCacheable
Description copied from interface:SelectionQueryEnable/disable query plan caching for this query.- Specified by:
setQueryPlanCacheablein interfaceNativeQuery<R>- Specified by:
setQueryPlanCacheablein interfaceQuery<R>- Specified by:
setQueryPlanCacheablein interfaceQueryImplementor<R>- Specified by:
setQueryPlanCacheablein interfaceSelectionQuery<R>- Specified by:
setQueryPlanCacheablein interfaceSelectionQueryImplementor<R>- See Also:
-
setCacheable
Description copied from interface:SelectionQueryEnable/disable second level query (result) caching for this query.- Specified by:
setCacheablein interfaceNativeQuery<R>- Specified by:
setCacheablein interfaceQuery<R>- Specified by:
setCacheablein interfaceSelectionQuery<R>- Specified by:
setCacheablein interfaceSelectionQueryImplementor<R>- See Also:
-
setCacheMode
Description copied from interface:SelectionQuerySet the currentCacheModein effect for this query.Set it to
nullto indicate that theCacheModeof thesessionshould be used.- Specified by:
setCacheModein interfaceNativeQuery<R>- Specified by:
setCacheModein interfaceQuery<R>- Specified by:
setCacheModein interfaceSelectionQuery<R>- Specified by:
setCacheModein interfaceSelectionQueryImplementor<R>- See Also:
-
getCacheMode
CacheMode getCacheMode()Description copied from interface:SelectionQueryObtain theCacheModein effect for this query. By default, the query inherits theCacheModeof the session from which it originates.The
CacheModehere affects the use of entity and collection caches as the query result set is processed. For caching of the actual query results, useSelectionQuery.isCacheable()andSelectionQuery.getCacheRegion().In order for this setting to have any affect, second-level caching must be enabled and the entities and collections must be eligible for storage in the second-level cache.
- Specified by:
getCacheModein interfaceQuery<R>- Specified by:
getCacheModein interfaceSelectionQuery<R>- See Also:
-
getCacheStoreMode
CacheStoreMode getCacheStoreMode()- Specified by:
getCacheStoreModein interfaceMutationQueryImplementor<R>- Specified by:
getCacheStoreModein interfaceQuery- Specified by:
getCacheStoreModein interfaceSelectionQuery<R>- Specified by:
getCacheStoreModein interfaceTypedQuery<R>- See Also:
-
getCacheRetrieveMode
CacheRetrieveMode getCacheRetrieveMode()- Specified by:
getCacheRetrieveModein interfaceMutationQueryImplementor<R>- Specified by:
getCacheRetrieveModein interfaceQuery- Specified by:
getCacheRetrieveModein interfaceSelectionQuery<R>- Specified by:
getCacheRetrieveModein interfaceTypedQuery<R>- See Also:
-
setCacheRegion
Description copied from interface:SelectionQuerySet the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).nullindicates to use the default region.- Specified by:
setCacheRegionin interfaceNativeQuery<R>- Specified by:
setCacheRegionin interfaceQuery<R>- Specified by:
setCacheRegionin interfaceSelectionQuery<R>- Specified by:
setCacheRegionin interfaceSelectionQueryImplementor<R>- See Also:
-
setFetchSize
Description copied from interface:SelectionQuerySets a JDBC fetch size hint for the query.- Specified by:
setFetchSizein interfaceNativeQuery<R>- Specified by:
setFetchSizein interfaceQuery<R>- Specified by:
setFetchSizein interfaceSelectionQuery<R>- Specified by:
setFetchSizein interfaceSelectionQueryImplementor<R>- Parameters:
fetchSize- the fetch size hint- Returns:
this, for method chaining- See Also:
-
setReadOnly
Description copied from interface:SelectionQuerySet the read-only/modifiable mode for entities and proxies loaded by thisQuery. This setting overrides the default setting for the persistence context,Session.isDefaultReadOnly().To set the default read-only/modifiable setting used for entities and proxies that are loaded into the session, use
Session.setDefaultReadOnly(boolean).Read-only entities are not dirty-checked and snapshots of persistent state are not maintained. Read-only entities can be modified, but changes are not persisted.
When a proxy is initialized, the loaded entity will have the same read-only/modifiable setting as the uninitialized proxy has, regardless of the session's current setting.
The read-only/modifiable setting has no impact on entities/proxies returned by the query that existed in the session beforeQuery the query was executed.
- Specified by:
setReadOnlyin interfaceNativeQuery<R>- Specified by:
setReadOnlyin interfaceQuery<R>- Specified by:
setReadOnlyin interfaceSelectionQuery<R>- Specified by:
setReadOnlyin interfaceSelectionQueryImplementor<R>- Parameters:
readOnly-trueindicates that entities and proxies loaded by the query are to be put in read-only mode;falseindicates that entities and proxies loaded by the query will be put in modifiable mode- Returns:
this, for method chaining
-
getHibernateLockMode
LockMode getHibernateLockMode()Description copied from interface:SelectionQueryGet the rootLockModefor the query- Specified by:
getHibernateLockModein interfaceNativeQuery<R>- Specified by:
getHibernateLockModein interfaceQuery<R>- Specified by:
getHibernateLockModein interfaceSelectionQuery<R>- See Also:
-
setHibernateLockMode
Description copied from interface:SelectionQuerySpecify the rootLockModefor the query- Specified by:
setHibernateLockModein interfaceNativeQuery<R>- Specified by:
setHibernateLockModein interfaceQuery<R>- Specified by:
setHibernateLockModein interfaceQueryImplementor<R>- Specified by:
setHibernateLockModein interfaceSelectionQuery<R>- Specified by:
setHibernateLockModein interfaceSelectionQueryImplementor<R>- See Also:
-
getLockMode
LockModeType getLockMode()Description copied from interface:SelectionQuery- Specified by:
getLockModein interfaceMutationQueryImplementor<R>- Specified by:
getLockModein interfaceNativeQuery<R>- Specified by:
getLockModein interfaceQuery- Specified by:
getLockModein interfaceSelectionQuery<R>- Specified by:
getLockModein interfaceTypedQuery<R>- See Also:
-
setLockMode
Description copied from interface:SelectionQuery- Specified by:
setLockModein interfaceCommonQueryContractImplementor- Specified by:
setLockModein interfaceMutationQueryImplementor<R>- Specified by:
setLockModein interfaceNativeQuery<R>- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<R>- Specified by:
setLockModein interfaceQueryImplementor<R>- Specified by:
setLockModein interfaceSelectionQuery<R>- Specified by:
setLockModein interfaceSelectionQueryImplementor<R>- Specified by:
setLockModein interfaceTypedQuery<R>- See Also:
-
setComment
Description copied from interface:QuerySet the comment for this query.If SQL commenting is enabled, the comment will be added to the SQL query sent to the database, which may be useful for identifying the source of troublesome queries.
SQL commenting may be enabled using the configuration property "hibernate.use_sql_comments".
- Specified by:
setCommentin interfaceCommonQueryContract- Specified by:
setCommentin interfaceCommonQueryContractImplementor- Specified by:
setCommentin interfaceMutationQuery- Specified by:
setCommentin interfaceMutationQueryImplementor<R>- Specified by:
setCommentin interfaceNativeQuery<R>- Specified by:
setCommentin interfaceQuery<R>- Specified by:
setCommentin interfaceQueryImplementor<R>- Specified by:
setCommentin interfaceSelectionQuery<R>- Specified by:
setCommentin interfaceSelectionQueryImplementor<R>- See Also:
-
getMaxResults
int getMaxResults()- Specified by:
getMaxResultsin interfaceMutationQueryImplementor<R>- Specified by:
getMaxResultsin interfaceQuery- Specified by:
getMaxResultsin interfaceTypedQuery<R>
-
setMaxResults
Description copied from interface:SelectionQuery- Specified by:
setMaxResultsin interfaceCommonQueryContractImplementor- Specified by:
setMaxResultsin interfaceMutationQueryImplementor<R>- Specified by:
setMaxResultsin interfaceNativeQuery<R>- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<R>- Specified by:
setMaxResultsin interfaceQueryImplementor<R>- Specified by:
setMaxResultsin interfaceSelectionQuery<R>- Specified by:
setMaxResultsin interfaceSelectionQueryImplementor<R>- Specified by:
setMaxResultsin interfaceTypedQuery<R>
-
getFirstResult
int getFirstResult()- Specified by:
getFirstResultin interfaceMutationQueryImplementor<R>- Specified by:
getFirstResultin interfaceQuery- Specified by:
getFirstResultin interfaceTypedQuery<R>
-
setFirstResult
Description copied from interface:SelectionQuery- Specified by:
setFirstResultin interfaceCommonQueryContractImplementor- Specified by:
setFirstResultin interfaceMutationQueryImplementor<R>- Specified by:
setFirstResultin interfaceNativeQuery<R>- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<R>- Specified by:
setFirstResultin interfaceQueryImplementor<R>- Specified by:
setFirstResultin interfaceSelectionQuery<R>- Specified by:
setFirstResultin interfaceSelectionQueryImplementor<R>- Specified by:
setFirstResultin interfaceTypedQuery<R>
-
addQueryHint
Description copied from interface:QueryAdd a database query hint to the SQL query.Multiple query hints may be specified. The operation
Dialect.getQueryHintString(String, List)determines how the hint is actually added to the SQL query.- Specified by:
addQueryHintin interfaceCommonQueryContract- Specified by:
addQueryHintin interfaceCommonQueryContractImplementor- Specified by:
addQueryHintin interfaceMutationQueryImplementor<R>- Specified by:
addQueryHintin interfaceNativeQuery<R>- Specified by:
addQueryHintin interfaceQuery<R>- Specified by:
addQueryHintin interfaceQueryImplementor<R>- Specified by:
addQueryHintin interfaceSelectionQueryImplementor<R>
-
setTupleTransformer
Description copied from interface:SelectionQuerySet aTupleTransformer.- Specified by:
setTupleTransformerin interfaceNativeQuery<R>- Specified by:
setTupleTransformerin interfaceQuery<R>- Specified by:
setTupleTransformerin interfaceSelectionQuery<R>- Specified by:
setTupleTransformerin interfaceSelectionQueryImplementor<R>
-
setResultListTransformer
Description copied from interface:SelectionQuerySet aResultListTransformer.- Specified by:
setResultListTransformerin interfaceNativeQuery<R>- Specified by:
setResultListTransformerin interfaceQuery<R>- Specified by:
setResultListTransformerin interfaceSelectionQuery<R>- Specified by:
setResultListTransformerin interfaceSelectionQueryImplementor<R>
-
withEntityGraph
Description copied from interface:QueryCovariant override of Query.withEntityGraph(EntityGraph).- Specified by:
withEntityGraphin interfaceCommonQueryContractImplementor- Specified by:
withEntityGraphin interfaceMutationQueryImplementor<R>- Specified by:
withEntityGraphin interfaceQuery- Specified by:
withEntityGraphin interfaceQuery<R>- See Also:
-
setEntityGraph
Description copied from interface:SelectionQueryApply anEntityGraphto the query using load graph semantics. Covariant override of TypedQuery.setEntityGraph(EntityGraph)This is an alternative way to specify the associations which should be fetched as part of the initial query.
- Specified by:
setEntityGraphin interfaceSelectionQuery<R>- Specified by:
setEntityGraphin interfaceSelectionQueryImplementor<R>- Specified by:
setEntityGraphin interfaceTypedQuery<R>- See Also:
-
setEntityGraph
Description copied from interface:SelectionQueryApply anEntityGraphto the query.This is an alternative way to specify the associations which should be fetched as part of the initial query.
- Specified by:
setEntityGraphin interfaceSelectionQuery<R>- Specified by:
setEntityGraphin interfaceSelectionQueryImplementor<R>- See Also:
-
disableFetchProfile
Description copied from interface:SelectionQueryDisable the fetch profile with the given name in this session. If the fetch profile is not currently enabled, the call has no effect.- Specified by:
disableFetchProfilein interfaceSelectionQuery<R>- Specified by:
disableFetchProfilein interfaceSelectionQueryImplementor<R>- Parameters:
profileName- the name of the fetch profile to be disabled- See Also:
-
enableFetchProfile
Description copied from interface:SelectionQueryEnable the fetch profile with the given name during execution of this query. If the requested fetch profile is already enabled, the call has no effect.This is an alternative way to specify the associations which should be fetched as part of the initial query.
- Specified by:
enableFetchProfilein interfaceSelectionQuery<R>- Specified by:
enableFetchProfilein interfaceSelectionQueryImplementor<R>- Parameters:
profileName- the name of the fetch profile to be enabled- See Also:
-
setPage
Description copied from interface:SelectionQuerySet the page of results to return.- Specified by:
setPagein interfaceSelectionQuery<R>- Specified by:
setPagein interfaceSelectionQueryImplementor<R>- See Also:
-
setCacheStoreMode
- Specified by:
setCacheStoreModein interfaceCommonQueryContractImplementor- Specified by:
setCacheStoreModein interfaceMutationQueryImplementor<R>- Specified by:
setCacheStoreModein interfaceNativeQuery<R>- Specified by:
setCacheStoreModein interfaceQuery- Specified by:
setCacheStoreModein interfaceQuery<R>- Specified by:
setCacheStoreModein interfaceQueryImplementor<R>- Specified by:
setCacheStoreModein interfaceSelectionQuery<R>- Specified by:
setCacheStoreModein interfaceSelectionQueryImplementor<R>- Specified by:
setCacheStoreModein interfaceTypedQuery<R>- See Also:
-
setCacheRetrieveMode
- Specified by:
setCacheRetrieveModein interfaceCommonQueryContractImplementor- Specified by:
setCacheRetrieveModein interfaceMutationQueryImplementor<R>- Specified by:
setCacheRetrieveModein interfaceNativeQuery<R>- Specified by:
setCacheRetrieveModein interfaceQuery- Specified by:
setCacheRetrieveModein interfaceQuery<R>- Specified by:
setCacheRetrieveModein interfaceQueryImplementor<R>- Specified by:
setCacheRetrieveModein interfaceSelectionQuery<R>- Specified by:
setCacheRetrieveModein interfaceSelectionQueryImplementor<R>- Specified by:
setCacheRetrieveModein interfaceTypedQuery<R>- See Also:
-
setFollowOnStrategy
Description copied from interface:SelectionQuerySpecifies whether follow-on locking should be applied- Specified by:
setFollowOnStrategyin interfaceQuery<R>- Specified by:
setFollowOnStrategyin interfaceQueryImplementor<R>- Specified by:
setFollowOnStrategyin interfaceSelectionQuery<R>- Specified by:
setFollowOnStrategyin interfaceSelectionQueryImplementor<R>- Parameters:
followOnStrategy- The strategy for follow-on locking.- Returns:
this, for method chaining
-
setLockScope
Description copied from interface:SelectionQueryApply a scope to any pessimistic locking applied to the query.- Specified by:
setLockScopein interfaceMutationQueryImplementor<R>- Specified by:
setLockScopein interfaceNativeQuery<R>- Specified by:
setLockScopein interfaceQuery<R>- Specified by:
setLockScopein interfaceQueryImplementor<R>- Specified by:
setLockScopein interfaceSelectionQuery<R>- Specified by:
setLockScopein interfaceSelectionQueryImplementor<R>- Specified by:
setLockScopein interfaceTypedQuery<R>- Parameters:
lockScope- The lock scope to apply- Returns:
this, for method chaining
-
setParameter
Description copied from interface:QueryBind the given argument to a named query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the overloads which accepts a "type", or pass a
TypedParameterValue.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to a named query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
Description copied from interface:QueryBind the given argument to a named query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(String, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
@Deprecated NativeQueryImplementor<R> setParameter(String name, Instant value, TemporalType temporalType) Deprecated.Description copied from interface:QueryBind anInstantvalue to the named Queryparameter using just the portion indicated by the given TemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>
-
setParameter
@Deprecated NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
@Deprecated NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to an ordinal query parameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the overloads which accepts a "type", or pass a
TypedParameterValue.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(int, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>
-
setParameter
@Deprecated NativeQueryImplementor<R> setParameter(int position, Instant value, TemporalType temporalType) Deprecated.Description copied from interface:QueryBind anInstantvalue to the ordinal Queryparameter using just the portion indicated by the given TemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>
-
setParameter
@Deprecated NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
@Deprecated NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameter.If the type of the parameter cannot be inferred from the context in which it occurs, use one of the overloads which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Parameters:
parameter- the query parameter mementoval- the argument, which might be null- Returns:
this, for method chaining- See Also:
-
setParameter
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameter, using the givenClassreference to attempt to infer theTypeto use. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameter(QueryParameter, Object).- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Parameters:
parameter- the query parameter mementoval- the argument, which might be nulltype- aTyperepresenting the type of the parameter- Returns:
this, for method chaining- See Also:
-
setParameter
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameter, using the givenType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceCommonQueryContractImplementor- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
@Deprecated NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameter
@Deprecated NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Specified by:
setParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setParameterin interfaceStatement- Specified by:
setParameterin interfaceTypedQuery<R>- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Class<P> type) Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenClassreference to attempt to infer theTypeIf unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, Type<P> type) Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter using the given Class reference to attempt to determine theTypeto use. If unable to determine an appropriateType,CommonQueryContract.setParameterList(String, Collection)is used- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Class<P> type) Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to infer theType. If unable to infer an appropriateType, fall back toCommonQueryContract.setParameterList(String, Collection).- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, Type<P> type) Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values) Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter.The type of the parameter is inferred from the context in which it occurs, and from the type of the first given argument.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameterusing the 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, Type<P> type) Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, using the givenType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setParameterList
Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter.The type of the parameter is inferred between the context in which it occurs, the type associated with the
QueryParameterand the type of the first given argument.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Parameters:
parameter- the parameter mementovalues- a collection of arguments- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Class<P> javaType) Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to 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 interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining- See Also:
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, Type<P> type) Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, using the given theType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceCommonQueryContractImplementor- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceMutationQueryImplementor<R>- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Specified by:
setParameterListin interfaceSelectionQueryImplementor<R>- Returns:
this, for method chaining
-
setProperties
Description copied from interface:QueryBind the property values of the given bean to named parameters of the query, matching property names with parameter names and mapping property types to Hibernate types using heuristics.- Specified by:
setPropertiesin interfaceCommonQueryContract- Specified by:
setPropertiesin interfaceCommonQueryContractImplementor- Specified by:
setPropertiesin interfaceMutationQuery- Specified by:
setPropertiesin interfaceMutationQueryImplementor<R>- Specified by:
setPropertiesin interfaceNativeQuery<R>- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Specified by:
setPropertiesin interfaceSelectionQueryImplementor<R>- Parameters:
bean- any JavaBean or POJO- Returns:
this, for method chaining
-
setProperties
Description copied from interface:QueryBind the values of the givenMapto named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.- Specified by:
setPropertiesin interfaceCommonQueryContract- Specified by:
setPropertiesin interfaceCommonQueryContractImplementor- Specified by:
setPropertiesin interfaceMutationQuery- Specified by:
setPropertiesin interfaceMutationQueryImplementor<R>- Specified by:
setPropertiesin interfaceNativeQuery<R>- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Specified by:
setPropertiesin interfaceSelectionQueryImplementor<R>- Parameters:
bean- aMapof names to arguments- Returns:
this, for method chaining
-
setConvertedParameter
<P> NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceNativeQuery<R>- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<R>- Specified by:
setConvertedParameterin interfaceQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceSelectionQuery<R>- Specified by:
setConvertedParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceStatement- Specified by:
setConvertedParameterin interfaceTypedQuery<R>- See Also:
-
setConvertedParameter
<P> NativeQueryImplementor<R> 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 interfaceMutationQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceNativeQuery<R>- Specified by:
setConvertedParameterin interfaceQuery- Specified by:
setConvertedParameterin interfaceQuery<R>- Specified by:
setConvertedParameterin interfaceQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceSelectionQuery<R>- Specified by:
setConvertedParameterin interfaceSelectionQueryImplementor<R>- Specified by:
setConvertedParameterin interfaceStatement- Specified by:
setConvertedParameterin interfaceTypedQuery<R>- See Also:
-
addResultTypeClass
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result. Hibernate will attempt to automatically detect the underlying type.Functions like
<return-scalar/>inhbm.xmlorColumnResultin annotations- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
columnAlias- The column alias in the result set to be processed as a scalar result- Returns:
this, for method chaining
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result.Functions like
<return-scalar/>inhbm.xmlorColumnResultin annotations.- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
columnAlias- The column alias in the result set to be processed as a scalar resulttype- The Hibernate type as which to treat the value.- Returns:
this, for method chaining
-
addScalar
Description copied from interface:NativeQueryDeclare a scalar query result using the specified result type.Hibernate will implicitly determine an appropriate conversion, if it can. Otherwise, an exception will be thrown.
- Specified by:
addScalarin interfaceNativeQuery<R>- Returns:
this, for method chaining
-
addScalar
<C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> relationalJavaType, AttributeConverter<?, C> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
relationalJavaType- The Java type expected by the converter as its "relational" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addScalar
<O,J> NativeQueryImplementor<R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, AttributeConverter<O, J> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
domainJavaType- The Java type expected by the converter as its "object model" type.jdbcJavaType- The Java type expected by the converter as its "relational model" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addScalar
<C> NativeQueryImplementor<R> addScalar(String columnAlias, Class<C> relationalJavaType, Class<? extends AttributeConverter<?, C>> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
relationalJavaType- The Java type expected by the converter as its "relational" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addScalar
<O,J> NativeQueryImplementor<R> addScalar(String columnAlias, Class<O> domainJavaType, Class<J> jdbcJavaType, Class<? extends AttributeConverter<O, J>> converter) Description copied from interface:NativeQueryDeclare a scalar query result with an explicit conversion.- Specified by:
addScalarin interfaceNativeQuery<R>- Parameters:
domainJavaType- The Java type expected by the converter as its "object model" type.jdbcJavaType- The Java type expected by the converter as its "relational model" type.converter- The conversion to apply. Consumes the JDBC value based onrelationalJavaType.- Returns:
this, for method chaining
-
addAttributeResult
NativeQueryImplementor<R> addAttributeResult(String columnAlias, Class entityJavaType, String attributePath) Description copied from interface:NativeQueryDefines a result based on a specified attribute. Differs from adding a scalar in that any conversions or other semantics defined on the attribute are automatically applied to the mapping.- Specified by:
addAttributeResultin interfaceNativeQuery<R>- Returns:
this, for method chaining
-
addAttributeResult
NativeQueryImplementor<R> addAttributeResult(String columnAlias, String entityName, String attributePath) Description copied from interface:NativeQueryDefines a result based on a specified attribute. Differs from adding a scalar in that any conversions or other semantics defined on the attribute are automatically applied to the mapping.- Specified by:
addAttributeResultin interfaceNativeQuery<R>- Returns:
this, for method chaining
-
addAttributeResult
Description copied from interface:NativeQueryDefines a result based on a specified attribute. Differs from adding a scalar in that any conversions or other semantics defined on the attribute are automatically applied to the mapping.This form accepts the JPA Attribute mapping describing the attribute
- Specified by:
addAttributeResultin interfaceNativeQuery<R>- Returns:
this, for method chaining
-
addRoot
org.hibernate.query.results.internal.dynamic.DynamicResultBuilderEntityStandard addRoot(String tableAlias, String entityName) Description copied from interface:NativeQueryAdd a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.- Specified by:
addRootin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table alias to map to this entityentityName- The name of the entity- Returns:
- The return config object for further control.
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name.Use
NativeQuery.addRoot(String, String)if you need further control of the mapping- Specified by:
addEntityin interfaceNativeQuery<R>- Parameters:
entityName- The entity name that is the root return of the query- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity.- Specified by:
addEntityin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table aliasentityName- The entity name- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, specifying a lock mode.- Specified by:
addEntityin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table aliasentityName- The entity namelockMode- The lock mode for this return.- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, without specifying an alias. The expectation here is that the table alias is the same as the unqualified entity name.- Specified by:
addEntityin interfaceNativeQuery<R>- Parameters:
entityType- The java type of the entity to add as a root- Returns:
this, for method chaining
-
addEntity
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity.- Specified by:
addEntityin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table aliasentityType- The java type of the entity to add as a root- Returns:
this, for method chaining
-
addEntity
Description copied from interface:NativeQueryDeclare a "root" entity, specifying a lock mode.- Specified by:
addEntityin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table aliasentityClass- The entityClasslockMode- The lock mode for this return- Returns:
this, for method chaining
-
addJoin
Description copied from interface:NativeQueryDeclare a join fetch result.- Specified by:
addJoinin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetch.path- The association path of form[owner-alias].[property-name].- Returns:
this, for method chaining
-
addJoin
NativeQueryImplementor<R> addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName) Description copied from interface:NativeQueryDeclare a join fetch result.- Specified by:
addJoinin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetchownerTableAlias- Identify the table alias of the owner of this association. Should match the alias of a previously added root or fetch.joinPropertyName- The name of the property being join fetched.- Returns:
this, for method chaining
-
addJoin
Description copied from interface:NativeQueryDeclare a join fetch result, specifying a lock mode.- Specified by:
addJoinin interfaceNativeQuery<R>- Parameters:
tableAlias- The SQL table alias for the data to be mapped to this fetchpath- The association path of form[owner-alias].[property-name].lockMode- The lock mode for this return.- Returns:
this, for method chaining
-