Interface NativeQueryImplementor<R>
-
- All Superinterfaces:
CommonQueryContract,MutationQuery,NameableQuery,NativeQuery<R>,Query,Query<R>,QueryImplementor<R>,SelectionQuery<R>,SynchronizeableQuery,TypedQuery<R>
- All Known Implementing Classes:
NativeQueryImpl
@Incubating public interface NativeQueryImplementor<R> extends QueryImplementor<R>, NativeQuery<R>, NameableQuery
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.hibernate.query.NativeQuery
NativeQuery.CollectionReturn, NativeQuery.FetchReturn, NativeQuery.InstantiationResultNode<J>, NativeQuery.ResultNode, NativeQuery.ReturnableResultNode, NativeQuery.ReturnProperty, NativeQuery.RootReturn
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description NativeQueryImplementor<R>addAttributeResult(String columnAlias, SingularAttribute attribute)Defines a result based on a specified attribute.NativeQueryImplementor<R>addAttributeResult(String columnAlias, Class entityJavaType, String attributePath)Defines a result based on a specified attribute.NativeQueryImplementor<R>addAttributeResult(String columnAlias, String entityName, String attributePath)Defines a result based on a specified attribute.NativeQueryImplementor<R>addEntity(Class entityType)Declare a "root" entity, without specifying an alias.NativeQueryImplementor<R>addEntity(String entityName)Declare a "root" entity, without specifying an alias.NativeQueryImplementor<R>addEntity(String tableAlias, Class entityType)Declare a "root" entity.NativeQueryImplementor<R>addEntity(String tableAlias, Class entityClass, LockMode lockMode)Declare a "root" entity, specifying a lock mode.NativeQueryImplementor<R>addEntity(String tableAlias, String entityName)Declare a "root" entity.NativeQueryImplementor<R>addEntity(String tableAlias, String entityName, LockMode lockMode)Declare a "root" entity, specifying a lock mode.NativeQueryImplementor<R>addJoin(String tableAlias, String path)Declare a join fetch result.NativeQueryImplementor<R>addJoin(String tableAlias, String ownerTableAlias, String joinPropertyName)Declare a join fetch result.NativeQueryImplementor<R>addJoin(String tableAlias, String path, LockMode lockMode)Declare a join fetch result, specifying a lock mode.NativeQueryImplementor<R>addQueryHint(String hint)Add a database query hint to the SQL query.DynamicResultBuilderEntityStandardaddRoot(String tableAlias, String entityName)Add a new root return mapping, returning aNativeQuery.RootReturnto allow further definition.NativeQueryImplementor<R>addScalar(String columnAlias)Declare a scalar query result.NativeQueryImplementor<R>addScalar(String columnAlias, Class javaType)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.NativeQueryImplementor<R>addScalar(String columnAlias, BasicDomainType type)Declare a scalar query result.NativeQueryImplementor<R>addSynchronizedEntityClass(Class entityClass)Add all query spaces associated with the entity with the given type.NativeQueryImplementor<R>addSynchronizedEntityName(String entityName)Add all query spaces associated with the entity with the given names.NativeQueryImplementor<R>addSynchronizedQuerySpace(String querySpace)Add a query space.BooleanisSelectQuery()Best guess whether this is a select query.NativeQueryImplementor<R>setCacheable(boolean cacheable)Enable/disable second level query (result) caching for this query.NativeQueryImplementor<R>setCacheMode(CacheMode cacheMode)Set the currentCacheModein effect for this query.NativeQueryImplementor<R>setCacheRegion(String cacheRegion)Set the name of the cache region where query results should be cached (assumingSelectionQuery.isCacheable()).NativeQueryImplementor<R>setComment(String comment)Set the comment for this query.NativeQueryImplementor<R>setFetchSize(int fetchSize)Sets a JDBC fetch size hint for the query.NativeQueryImplementor<R>setFirstResult(int startPosition)Set the first row position to return from the query results.NativeQueryImplementor<R>setFlushMode(FlushModeType flushMode)Set theFlushModein to use for this query.NativeQueryImplementor<R>setHibernateFlushMode(FlushMode flushMode)Set the currentFlushModein effect for this query.NativeQueryImplementor<R>setHibernateLockMode(LockMode lockMode)Specify the rootLockModefor the queryNativeQueryImplementor<R>setHint(String hintName, Object value)Set a hint.NativeQueryImplementor<R>setLockMode(LockModeType lockMode)Specify the rootLockModeTypefor the queryNativeQueryImplementor<R>setLockMode(String alias, LockMode lockMode)Set theLockModeto use for particular alias defined in theFROMclause of the query.NativeQueryImplementor<R>setLockOptions(LockOptions lockOptions)Apply the given lock options to this query.NativeQueryImplementor<R>setMaxResults(int maxResult)Set the max number of rows requested for the query results.NativeQueryImplementor<R>setParameter(int position, Object val)Bind the given argument to an ordinal query parameter.NativeQueryImplementor<R>setParameter(int position, Instant value, TemporalType temporalType)Bind anInstantvalue to the ordinal query parameter using just the portion indicated by the givenTemporalType.NativeQueryImplementor<R>setParameter(int position, Calendar value, TemporalType temporalType)QueryoverrideNativeQueryImplementor<R>setParameter(int position, Date value, TemporalType temporalType)Queryoverride<P> NativeQueryImplementor<R>setParameter(int position, P val, Class<P> type)Bind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameter(int position, P val, BindableType<P> type)Bind the given argument to an ordinal query parameter using the givenBindableType.NativeQueryImplementor<R>setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)QueryoverrideNativeQueryImplementor<R>setParameter(Parameter<Date> param, Date value, TemporalType temporalType)Queryoverride<P> NativeQueryImplementor<R>setParameter(Parameter<P> param, P value)QueryoverrideNativeQueryImplementor<R>setParameter(String name, Object val)Bind the given argument to a named query parameter.NativeQueryImplementor<R>setParameter(String name, Instant value, TemporalType temporalType)Bind anInstantvalue to the named query parameter using just the portion indicated by the givenTemporalType.NativeQueryImplementor<R>setParameter(String name, Calendar value, TemporalType temporalType)QueryoverrideNativeQueryImplementor<R>setParameter(String name, Date value, TemporalType temporalType)Queryoverride<P> NativeQueryImplementor<R>setParameter(String name, P val, Class<P> type)Bind the given argument to a named query parameter using the given Class reference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameter(String name, P val, BindableType<P> type)Bind the given argument to a named query parameter using the givenBindableType.<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, Class<P> type)Bind an argument to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameter(QueryParameter<P> parameter, P val, BindableType<P> type)Bind an argument to the query parameter represented by the givenQueryParameterusing the givenBindableType.NativeQueryImplementor<R>setParameterList(int position, Object[] values)Bind multiple arguments to an ordinal query parameter.NativeQueryImplementor<R>setParameterList(int position, Collection values)Bind multiple arguments to an ordinal query parameter.<P> NativeQueryImplementor<R>setParameterList(int position, Collection<? extends P> values, Class<P> type)Bind multiple arguments to an ordinal query parameter using the given Class reference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameterList(int position, Collection<? extends P> values, BindableType<P> type)Bind multiple arguments to an ordinal query parameter using the givenBindableType.<P> NativeQueryImplementor<R>setParameterList(int position, P[] values, Class<P> javaType)Bind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameterList(int position, P[] values, BindableType<P> type)Bind multiple arguments to an ordinal query parameter using the givenBindableType.NativeQueryImplementor<R>setParameterList(String name, Object[] values)Bind multiple arguments to a named query parameter.NativeQueryImplementor<R>setParameterList(String name, Collection values)Bind multiple arguments to a named query parameter.<P> NativeQueryImplementor<R>setParameterList(String name, Collection<? extends P> values, Class<P> type)Bind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameterList(String name, Collection<? extends P> values, BindableType<P> type)Bind multiple arguments to a named query parameter using the givenBindableType.<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 theBindableTypeto use.<P> NativeQueryImplementor<R>setParameterList(String name, P[] values, BindableType<P> type)Bind multiple arguments to a named query parameter using the givenBindableType.<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, Class<P> javaType)Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, BindableType<P> type)Bind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theBindableType.<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, Class<P> javaType)Bind multiple arguments to the query parameter represented by the givenQueryParameterusing the givenClassreference to attempt to determine theBindableTypeto use.<P> NativeQueryImplementor<R>setParameterList(QueryParameter<P> parameter, P[] values, BindableType<P> type)Bind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theBindableType.NativeQueryImplementor<R>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.NativeQueryImplementor<R>setProperties(Map bean)Bind the values of the givenMapfor each named parameters of the query, matching key names with parameter names and mapping value types to Hibernate types using heuristics.NativeQueryImplementor<R>setReadOnly(boolean readOnly)Set the read-only/modifiable mode for entities and proxies loaded by thisQuery.NativeQueryImplementor<R>setResultListTransformer(ResultListTransformer<R> transformer)Set aResultListTransformer.default <T> NativeQueryImplementor<T>setResultTransformer(ResultTransformer<T> transformer)Deprecated.NativeQueryImplementor<R>setTimeout(int timeout)Set the query timeout in seconds.<T> NativeQueryImplementor<T>setTupleTransformer(TupleTransformer<T> transformer)Set aTupleTransformer.NamedNativeQueryMementotoMemento(String name)Convert the query into the memento-
Methods inherited from interface org.hibernate.query.CommonQueryContract
getFlushMode, getHibernateFlushMode, getTimeout
-
Methods inherited from interface org.hibernate.query.NativeQuery
addFetch, addInstantiation, addRoot, addScalar, getHibernateLockMode, getLockMode, getLockOptions, setCacheRetrieveMode, setCacheStoreMode
-
Methods inherited from interface jakarta.persistence.Query
getFirstResult, getFlushMode, getHints, getLockMode, getMaxResults, getParameter, getParameter, getParameter, getParameter, getParameters, getParameterValue, getParameterValue, getParameterValue, isBound, unwrap
-
Methods inherited from interface org.hibernate.query.Query
applyFetchGraph, applyGraph, applyLoadGraph, executeUpdate, getComment, getParameterMetadata, getQueryOptions, getQueryString, getResultList, getResultStream, getSingleResult, list, stream, uniqueResult, uniqueResultOptional
-
Methods inherited from interface org.hibernate.query.spi.QueryImplementor
getParameterBindings, getSession, scroll, scroll, setOptionalEntityName, setOptionalId, setOptionalObject
-
Methods inherited from interface org.hibernate.query.SelectionQuery
getCacheMode, getCacheRegion, getCacheRetrieveMode, getCacheStoreMode, getFetchSize, getFirstResult, getMaxResults, getSingleResultOrNull, isCacheable, isReadOnly, setAliasSpecificLockMode, setFollowOnLocking
-
Methods inherited from interface org.hibernate.query.SynchronizeableQuery
getSynchronizedQuerySpaces
-
-
-
-
Method Detail
-
isSelectQuery
Boolean isSelectQuery()
Best guess whether this is a select query.nullindicates unknown
-
setResultTransformer
@Deprecated default <T> NativeQueryImplementor<T> setResultTransformer(ResultTransformer<T> transformer)
Deprecated.- Specified by:
setResultTransformerin interfaceNativeQuery<R>- Specified by:
setResultTransformerin interfaceQuery<R>- Specified by:
setResultTransformerin interfaceQueryImplementor<R>
-
toMemento
NamedNativeQueryMemento toMemento(String name)
Description copied from interface:NameableQueryConvert the query into the memento- Specified by:
toMementoin interfaceNameableQuery
-
addScalar
NativeQueryImplementor<R> addScalar(String columnAlias)
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
NativeQueryImplementor<R> addScalar(String columnAlias, BasicDomainType type)
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
NativeQueryImplementor<R> addScalar(String columnAlias, Class javaType)
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>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>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>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>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
NativeQueryImplementor<R> addAttributeResult(String columnAlias, SingularAttribute attribute)
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
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
NativeQueryImplementor<R> addEntity(String entityName)
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(java.lang.String, java.lang.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
NativeQueryImplementor<R> addEntity(String tableAlias, String entityName)
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
NativeQueryImplementor<R> addEntity(String tableAlias, String entityName, LockMode lockMode)
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
NativeQueryImplementor<R> addEntity(Class entityType)
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
NativeQueryImplementor<R> addEntity(String tableAlias, Class entityType)
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
NativeQueryImplementor<R> addEntity(String tableAlias, Class entityClass, LockMode lockMode)
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
NativeQueryImplementor<R> addJoin(String tableAlias, String path)
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
NativeQueryImplementor<R> addJoin(String tableAlias, String path, LockMode lockMode)
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
-
addSynchronizedQuerySpace
NativeQueryImplementor<R> addSynchronizedQuerySpace(String querySpace)
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
NativeQueryImplementor<R> addSynchronizedEntityName(String entityName) throws MappingException
Description copied from interface:SynchronizeableQueryAdd all query spaces associated with the entity with the given names.Same as
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.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
NativeQueryImplementor<R> addSynchronizedEntityClass(Class entityClass) throws MappingException
Description copied from interface:SynchronizeableQueryAdd all query spaces associated with the entity with the given type.Same as
SynchronizeableQuery.addSynchronizedQuerySpace(java.lang.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
NativeQueryImplementor<R> setHint(String hintName, Object value)
Description copied from interface:CommonQueryContractSet a hint. The hints understood by Hibernate are enumerated byAvailableHints.- Specified by:
setHintin interfaceCommonQueryContract- Specified by:
setHintin interfaceMutationQuery- Specified by:
setHintin interfaceNativeQuery<R>- Specified by:
setHintin interfaceQuery- Specified by:
setHintin interfaceQuery<R>- Specified by:
setHintin interfaceSelectionQuery<R>- Specified by:
setHintin interfaceTypedQuery<R>- See Also:
HibernateHints,SpecHints
-
setHibernateFlushMode
NativeQueryImplementor<R> setHibernateFlushMode(FlushMode flushMode)
Description copied from interface:CommonQueryContractSet the currentFlushModein effect for this query.- Specified by:
setHibernateFlushModein interfaceCommonQueryContract- Specified by:
setHibernateFlushModein interfaceMutationQuery- Specified by:
setHibernateFlushModein interfaceNativeQuery<R>- Specified by:
setHibernateFlushModein interfaceQuery<R>- Specified by:
setHibernateFlushModein interfaceSelectionQuery<R>- See Also:
CommonQueryContract.getHibernateFlushMode(),Session.getHibernateFlushMode()
-
setFlushMode
NativeQueryImplementor<R> setFlushMode(FlushModeType flushMode)
Description copied from interface:CommonQueryContractSet theFlushModein to use for this query.- Specified by:
setFlushModein interfaceCommonQueryContract- Specified by:
setFlushModein interfaceMutationQuery- Specified by:
setFlushModein interfaceNativeQuery<R>- Specified by:
setFlushModein interfaceQuery- Specified by:
setFlushModein interfaceQuery<R>- Specified by:
setFlushModein interfaceSelectionQuery<R>- Specified by:
setFlushModein interfaceTypedQuery<R>- See Also:
CommonQueryContract.getHibernateFlushMode(),Session.getHibernateFlushMode()
-
setCacheMode
NativeQueryImplementor<R> setCacheMode(CacheMode cacheMode)
Description copied from interface:SelectionQuerySet the currentCacheModein effect for this query.- Specified by:
setCacheModein interfaceNativeQuery<R>- Specified by:
setCacheModein interfaceQuery<R>- Specified by:
setCacheModein interfaceSelectionQuery<R>- See Also:
SelectionQuery.getCacheMode(),Session.setCacheMode(CacheMode)
-
setCacheable
NativeQueryImplementor<R> setCacheable(boolean cacheable)
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>- See Also:
SelectionQuery.isCacheable()
-
setCacheRegion
NativeQueryImplementor<R> setCacheRegion(String cacheRegion)
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>- See Also:
SelectionQuery.getCacheRegion()
-
setTimeout
NativeQueryImplementor<R> setTimeout(int timeout)
Description copied from interface:CommonQueryContractSet the query timeout in seconds.Any value set here is eventually passed directly along to the JDBC statement, which expressly disallows negative values. So negative values should be avoided as a general rule.
A value of zero indicates no timeout.
- Specified by:
setTimeoutin interfaceCommonQueryContract- Specified by:
setTimeoutin interfaceMutationQuery- Specified by:
setTimeoutin interfaceNativeQuery<R>- Specified by:
setTimeoutin interfaceQuery<R>- Specified by:
setTimeoutin interfaceSelectionQuery<R>- Parameters:
timeout- the timeout in seconds- Returns:
this, for method chaining- See Also:
CommonQueryContract.getTimeout()
-
setFetchSize
NativeQueryImplementor<R> setFetchSize(int fetchSize)
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>- Parameters:
fetchSize- the fetch size hint- Returns:
this, for method chaining- See Also:
SelectionQuery.getFetchSize()
-
setReadOnly
NativeQueryImplementor<R> setReadOnly(boolean readOnly)
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>- 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
-
setLockOptions
NativeQueryImplementor<R> setLockOptions(LockOptions lockOptions)
Description copied from interface:QueryApply the given lock options to this query. Alias-specific lock modes in the given lock options are merged with any alias-specific lock mode which have already been set. If a lock mode has already been specified for an alias that is among the aliases in the given lock options, the lock mode specified in the given lock options overrides the lock mode that was already set.- Specified by:
setLockOptionsin interfaceNativeQuery<R>- Specified by:
setLockOptionsin interfaceQuery<R>- Parameters:
lockOptions- The lock options to apply to the query.- Returns:
this, for method chaining- See Also:
Query.getLockOptions()
-
setHibernateLockMode
NativeQueryImplementor<R> setHibernateLockMode(LockMode lockMode)
Description copied from interface:SelectionQuerySpecify the rootLockModefor the query- Specified by:
setHibernateLockModein interfaceNativeQuery<R>- Specified by:
setHibernateLockModein interfaceSelectionQuery<R>- See Also:
SelectionQuery.setLockMode(LockModeType)
-
setLockMode
NativeQueryImplementor<R> setLockMode(LockModeType lockMode)
Description copied from interface:SelectionQuerySpecify the rootLockModeTypefor the query- Specified by:
setLockModein interfaceNativeQuery<R>- Specified by:
setLockModein interfaceQuery- Specified by:
setLockModein interfaceQuery<R>- Specified by:
setLockModein interfaceSelectionQuery<R>- Specified by:
setLockModein interfaceTypedQuery<R>- See Also:
SelectionQuery.setHibernateLockMode(org.hibernate.LockMode)
-
setLockMode
NativeQueryImplementor<R> setLockMode(String alias, LockMode lockMode)
Description copied from interface:QuerySet theLockModeto use for particular alias defined in theFROMclause of the query.The alias-specific lock modes specified here are added to the
LockOptions.The effect of alias-specific locking is quite dependent on the driver and database. For maximum portability, the given lock mode should be
LockMode.PESSIMISTIC_WRITE.- Specified by:
setLockModein interfaceNativeQuery<R>- Specified by:
setLockModein interfaceQuery<R>- Specified by:
setLockModein interfaceSelectionQuery<R>- Parameters:
alias- A query aliaslockMode- The lock mode to apply- Returns:
this, for method chaining- See Also:
Query.getLockOptions()
-
setComment
NativeQueryImplementor<R> setComment(String comment)
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 interfaceMutationQuery- Specified by:
setCommentin interfaceNativeQuery<R>- Specified by:
setCommentin interfaceQuery<R>- Specified by:
setCommentin interfaceSelectionQuery<R>- Parameters:
comment- The human-readable comment- Returns:
this, for method chaining- See Also:
Query.getComment()
-
setMaxResults
NativeQueryImplementor<R> setMaxResults(int maxResult)
Description copied from interface:SelectionQuerySet the max number of rows requested for the query results. Applied to the SQL query- Specified by:
setMaxResultsin interfaceNativeQuery<R>- Specified by:
setMaxResultsin interfaceQuery- Specified by:
setMaxResultsin interfaceQuery<R>- Specified by:
setMaxResultsin interfaceSelectionQuery<R>- Specified by:
setMaxResultsin interfaceTypedQuery<R>
-
setFirstResult
NativeQueryImplementor<R> setFirstResult(int startPosition)
Description copied from interface:SelectionQuerySet the first row position to return from the query results. Applied to the SQL query- Specified by:
setFirstResultin interfaceNativeQuery<R>- Specified by:
setFirstResultin interfaceQuery- Specified by:
setFirstResultin interfaceQuery<R>- Specified by:
setFirstResultin interfaceSelectionQuery<R>- Specified by:
setFirstResultin interfaceTypedQuery<R>
-
addQueryHint
NativeQueryImplementor<R> addQueryHint(String hint)
Description copied from interface:QueryAdd a database query hint to the SQL query.A database hint is a completely different concept to a JPA hint specified using
QueryHintorQuery.getHints(). These are hints to the JPA provider.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 interfaceNativeQuery<R>- Specified by:
addQueryHintin interfaceQuery<R>- Parameters:
hint- The database specific query hint to add.
-
setTupleTransformer
<T> NativeQueryImplementor<T> setTupleTransformer(TupleTransformer<T> transformer)
Description copied from interface:QuerySet aTupleTransformer.- Specified by:
setTupleTransformerin interfaceNativeQuery<R>- Specified by:
setTupleTransformerin interfaceQuery<R>- Specified by:
setTupleTransformerin interfaceQueryImplementor<R>
-
setResultListTransformer
NativeQueryImplementor<R> setResultListTransformer(ResultListTransformer<R> transformer)
Description copied from interface:QuerySet aResultListTransformer.- Specified by:
setResultListTransformerin interfaceNativeQuery<R>- Specified by:
setResultListTransformerin interfaceQuery<R>- Specified by:
setResultListTransformerin interfaceQueryImplementor<R>
-
setParameter
NativeQueryImplementor<R> setParameter(String name, Object val)
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 forms accept a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(String, Object, Class),Query.setParameter(String, Object, BindableType)
-
setParameter
<P> NativeQueryImplementor<R> setParameter(String name, P val, BindableType<P> type)
Description copied from interface:QueryBind the given argument to a named query parameter using the givenBindableType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
<P> NativeQueryImplementor<R> setParameter(String name, P val, Class<P> type)
Description copied from interface:QueryBind the given argument to a named query parameter using the given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameter(String, Object)is used.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- See Also:
Query.setParameter(String, Object, BindableType)
-
setParameter
NativeQueryImplementor<R> setParameter(String name, Instant value, TemporalType temporalType)
Description copied from interface:QueryBind anInstantvalue to the named query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
NativeQueryImplementor<R> setParameter(String name, Date value, TemporalType temporalType)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(String, Date, TemporalType)
-
setParameter
NativeQueryImplementor<R> setParameter(String name, Calendar value, TemporalType temporalType)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(String, Calendar, TemporalType)
-
setParameter
NativeQueryImplementor<R> setParameter(int position, Object val)
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 forms which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(int, Object, Class),Query.setParameter(int, Object, BindableType)
-
setParameter
<P> NativeQueryImplementor<R> setParameter(int position, P val, Class<P> type)
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameter(int, Object)is used.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- See Also:
Query.setParameter(int, Object, BindableType)
-
setParameter
<P> NativeQueryImplementor<R> setParameter(int position, P val, BindableType<P> type)
Description copied from interface:QueryBind the given argument to an ordinal query parameter using the givenBindableType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
NativeQueryImplementor<R> setParameter(int position, Instant value, TemporalType temporalType)
Description copied from interface:QueryBind anInstantvalue to the ordinal query parameter using just the portion indicated by the givenTemporalType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>
-
setParameter
NativeQueryImplementor<R> setParameter(int position, Date value, TemporalType temporalType)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(int, Date, TemporalType)
-
setParameter
NativeQueryImplementor<R> setParameter(int position, Calendar value, TemporalType temporalType)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(int, Calendar, TemporalType)
-
setParameter
<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P val)
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 forms which accepts a "type".
- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Parameters:
parameter- the query parameter mementoval- the argument, which might be null- Returns:
this, for method chaining- See Also:
Query.setParameter(QueryParameter, Object, BindableType)
-
setParameter
<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P val, Class<P> type)
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameterusing the given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameter(QueryParameter, Object)is used- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Parameters:
parameter- the query parameter mementoval- the argument, which might be nulltype- aBindableTyperepresenting the type of the parameter- Returns:
this, for method chaining- See Also:
Query.setParameter(QueryParameter, Object, BindableType)
-
setParameter
<P> NativeQueryImplementor<R> setParameter(QueryParameter<P> parameter, P val, BindableType<P> type)
Description copied from interface:QueryBind an argument to the query parameter represented by the givenQueryParameterusing the givenBindableType.- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- Specified by:
setParameterin interfaceNativeQuery<R>- Specified by:
setParameterin interfaceQuery<R>- Specified by:
setParameterin interfaceQueryImplementor<R>- Specified by:
setParameterin interfaceSelectionQuery<R>- Parameters:
parameter- the query parameter mementoval- the argument, which might be nulltype- anBindableTyperepresenting the type of the parameter- Returns:
this, for method chaining
-
setParameter
<P> NativeQueryImplementor<R> setParameter(Parameter<P> param, P value)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(Parameter, Object)
-
setParameter
NativeQueryImplementor<R> setParameter(Parameter<Date> param, Date value, TemporalType temporalType)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(Parameter, Date, TemporalType)
-
setParameter
NativeQueryImplementor<R> setParameter(Parameter<Calendar> param, Calendar value, TemporalType temporalType)
Description copied from interface:QueryQueryoverride- Specified by:
setParameterin interfaceCommonQueryContract- Specified by:
setParameterin interfaceMutationQuery- 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 interfaceTypedQuery<R>- See Also:
Query.setParameter(Parameter, Calendar, TemporalType)
-
setParameterList
NativeQueryImplementor<R> setParameterList(String name, Collection values)
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 interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(java.lang.String, java.util.Collection, BindableType)
-
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 given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(java.lang.String, java.util.Collection, BindableType)
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(String name, Collection<? extends P> values, BindableType<P> type)
Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenBindableType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
NativeQueryImplementor<R> setParameterList(String name, Object[] values)
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 interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(String name, P[] values, Class<P> type)
Description copied from interface:QueryBind multiple arguments to a named query parameter using the given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(java.lang.String, Object[], BindableType)
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(String name, P[] values, BindableType<P> type)
Description copied from interface:QueryBind multiple arguments to a named query parameter using the givenBindableType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
NativeQueryImplementor<R> setParameterList(int position, Collection values)
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 interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<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 given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(int, Collection, BindableType)
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(int position, Collection<? extends P> values, BindableType<P> type)
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenBindableType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
NativeQueryImplementor<R> setParameterList(int position, Object[] values)
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 interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(int position, P[] values, Class<P> javaType)
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenClassreference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(int, Object[], BindableType)
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(int position, P[] values, BindableType<P> type)
Description copied from interface:QueryBind multiple arguments to an ordinal query parameter using the givenBindableType.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<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 interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<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 given Class reference to attempt to determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(QueryParameter, java.util.Collection, BindableType)
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, Collection<? extends P> values, BindableType<P> type)
Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theBindableType.The "type mapping" for the binding is inferred from the type of the first collection element.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values)
Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter.The type of the parameter is inferred between the context in which it occurs, the type associated with the QueryParameter and the type of the first given argument.
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<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 determine theBindableTypeto use. If unable to determine an appropriateBindableType,Query.setParameterList(String, Collection)is used.- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining- See Also:
Query.setParameterList(QueryParameter, Object[], BindableType)
-
setParameterList
<P> NativeQueryImplementor<R> setParameterList(QueryParameter<P> parameter, P[] values, BindableType<P> type)
Description copied from interface:QueryBind multiple arguments to the query parameter represented by the givenQueryParameter, inferring theBindableType.The "type mapping" for the binding is inferred from the type of the first collection element
- Specified by:
setParameterListin interfaceCommonQueryContract- Specified by:
setParameterListin interfaceMutationQuery- Specified by:
setParameterListin interfaceNativeQuery<R>- Specified by:
setParameterListin interfaceQuery<R>- Specified by:
setParameterListin interfaceQueryImplementor<R>- Specified by:
setParameterListin interfaceSelectionQuery<R>- Returns:
this, for method chaining
-
setProperties
NativeQueryImplementor<R> setProperties(Object bean)
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 interfaceMutationQuery- Specified by:
setPropertiesin interfaceNativeQuery<R>- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Parameters:
bean- any JavaBean or POJO- Returns:
this, for method chaining
-
setProperties
NativeQueryImplementor<R> setProperties(Map bean)
Description copied from interface:QueryBind the values of the givenMapfor each 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 interfaceMutationQuery- Specified by:
setPropertiesin interfaceNativeQuery<R>- Specified by:
setPropertiesin interfaceQuery<R>- Specified by:
setPropertiesin interfaceQueryImplementor<R>- Specified by:
setPropertiesin interfaceSelectionQuery<R>- Parameters:
bean- aMapof names to arguments- Returns:
this, for method chaining
-
-