Uses of Interface
org.hibernate.query.NativeQuery
Packages that use NativeQuery
Package
Description
This package defines some central internal SPI abstractions
used throughout the implementation of Hibernate.
Everything related to HQL/JPQL, native SQL, and criteria queries.
Implementation of the SPIs for native SQL query support.
SPIs for native SQL query support.
-
Uses of NativeQuery in org.hibernate.engine.spi
Methods in org.hibernate.engine.spi that return NativeQueryModifier and TypeMethodDescriptionSessionLazyDelegator.createNativeQuery
(String sqlString) Deprecated.SessionLazyDelegator.createNativeQuery
(String sqlString, Class resultClass) <R> NativeQuery<R>
SessionLazyDelegator.createNativeQuery
(String sqlString, Class<R> resultClass, String tableAlias) SessionLazyDelegator.createNativeQuery
(String sqlString, String resultSetMappingName) Deprecated.<R> NativeQuery<R>
SessionLazyDelegator.createNativeQuery
(String sqlString, String resultSetMappingName, Class<R> resultClass) SessionLazyDelegator.getNamedNativeQuery
(String name) Deprecated.SessionLazyDelegator.getNamedNativeQuery
(String name, String resultSetMapping) Deprecated. -
Uses of NativeQuery in org.hibernate.query
Methods in org.hibernate.query that return NativeQueryModifier and TypeMethodDescriptionNativeQuery.addAttributeResult
(String columnAlias, SingularAttribute attribute) Defines a result based on a specified attribute.NativeQuery.addAttributeResult
(String columnAlias, Class entityJavaType, String attributePath) Defines a result based on a specified attribute.NativeQuery.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.NativeQuery.addQueryHint
(String hint) Declare a scalar query result.Declare a scalar query result using the specified result type.<C> NativeQuery<T>
NativeQuery.addScalar
(String columnAlias, Class<C> relationalJavaType, AttributeConverter<?, C> converter) Declare a scalar query result with an explicit conversion.<C> NativeQuery<T>
NativeQuery.addScalar
(String columnAlias, Class<C> relationalJavaType, Class<? extends AttributeConverter<?, C>> converter) Declare a scalar query result with an explicit conversion.<O,
R> NativeQuery<T> NativeQuery.addScalar
(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, AttributeConverter<O, R> converter) Declare a scalar query result with an explicit conversion.<O,
R> NativeQuery<T> NativeQuery.addScalar
(String columnAlias, Class<O> domainJavaType, Class<R> jdbcJavaType, Class<? extends AttributeConverter<O, R>> converter) Declare a scalar query result with an explicit conversion.NativeQuery.addScalar
(String columnAlias, BasicDomainType type) Declare a scalar query result.NativeQuery.addScalar
(String columnAlias, BasicTypeReference type) Declare a scalar query result.NativeQuery.addSynchronizedEntityClass
(Class entityClass) NativeQuery.addSynchronizedEntityName
(String entityName) NativeQuery.addSynchronizedQuerySpace
(String querySpace) QueryProducer.createNativeQuery
(String sqlString) Deprecated.<R> NativeQuery<R>
QueryProducer.createNativeQuery
(String sqlString, Class<R> resultClass) Create aNativeQuery
instance for the given native SQL query using an implicit mapping to the specified Java type.<R> NativeQuery<R>
QueryProducer.createNativeQuery
(String sqlString, Class<R> resultClass, String tableAlias) Create aNativeQuery
instance for the given native SQL query using an implicit mapping to the specified Java entity type.QueryProducer.createNativeQuery
(String sqlString, String resultSetMappingName) Deprecated.<R> NativeQuery<R>
QueryProducer.createNativeQuery
(String sqlString, String resultSetMappingName, Class<R> resultClass) Create aNativeQuery
instance for the given native SQL query using an explicit mapping to the specified Java type.QueryProducer.getNamedNativeQuery
(String name) Deprecated.QueryProducer.getNamedNativeQuery
(String name, String resultSetMapping) Deprecated.NativeQuery.setCacheable
(boolean cacheable) NativeQuery.setCacheMode
(CacheMode cacheMode) NativeQuery.setCacheRegion
(String cacheRegion) NativeQuery.setCacheRetrieveMode
(CacheRetrieveMode cacheRetrieveMode) NativeQuery.setCacheStoreMode
(CacheStoreMode cacheStoreMode) NativeQuery.setComment
(String comment) NativeQuery.setFetchSize
(int fetchSize) NativeQuery.setFirstResult
(int startPosition) NativeQuery.setFlushMode
(FlushModeType flushMode) Deprecated.NativeQuery.setHibernateFlushMode
(FlushMode flushMode) Deprecated.NativeQuery.setHibernateLockMode
(LockMode lockMode) NativeQuery.setLockMode
(LockModeType lockMode) Not applicable to native SQL queries, due to an unfortunate requirement of the JPA specification.NativeQuery.setLockMode
(String alias, LockMode lockMode) Not applicable to native SQL queries.NativeQuery.setLockOptions
(LockOptions lockOptions) NativeQuery.setMaxResults
(int maxResult) NativeQuery.setParameter
(int position, Object value) NativeQuery.setParameter
(int position, Instant value, TemporalType temporalType) NativeQuery.setParameter
(int position, Calendar value, TemporalType temporalType) NativeQuery.setParameter
(int position, Date value, TemporalType temporalType) <P> NativeQuery<T>
NativeQuery.setParameter
(int position, P val, Class<P> type) <P> NativeQuery<T>
NativeQuery.setParameter
(int position, P val, BindableType<P> type) NativeQuery.setParameter
(Parameter<Calendar> param, Calendar value, TemporalType temporalType) NativeQuery.setParameter
(Parameter<Date> param, Date value, TemporalType temporalType) <P> NativeQuery<T>
NativeQuery.setParameter
(Parameter<P> param, P value) NativeQuery.setParameter
(String name, Object value) NativeQuery.setParameter
(String name, Instant value, TemporalType temporalType) NativeQuery.setParameter
(String name, Calendar value, TemporalType temporalType) NativeQuery.setParameter
(String name, Date value, TemporalType temporalType) <P> NativeQuery<T>
NativeQuery.setParameter
(String name, P val, Class<P> type) <P> NativeQuery<T>
NativeQuery.setParameter
(String name, P val, BindableType<P> type) <P> NativeQuery<T>
NativeQuery.setParameter
(QueryParameter<P> parameter, P val) <P> NativeQuery<T>
NativeQuery.setParameter
(QueryParameter<P> parameter, P val, Class<P> type) <P> NativeQuery<T>
NativeQuery.setParameter
(QueryParameter<P> parameter, P val, BindableType<P> type) NativeQuery.setParameterList
(int position, Object[] values) NativeQuery.setParameterList
(int position, Collection values) <P> NativeQuery<T>
NativeQuery.setParameterList
(int position, Collection<? extends P> values, Class<P> type) <P> NativeQuery<T>
NativeQuery.setParameterList
(int position, Collection<? extends P> values, BindableType<P> javaType) <P> NativeQuery<T>
NativeQuery.setParameterList
(int position, P[] values, Class<P> javaType) <P> NativeQuery<T>
NativeQuery.setParameterList
(int position, P[] values, BindableType<P> javaType) NativeQuery.setParameterList
(String name, Object[] values) NativeQuery.setParameterList
(String name, Collection values) <P> NativeQuery<T>
NativeQuery.setParameterList
(String name, Collection<? extends P> values, Class<P> type) <P> NativeQuery<T>
NativeQuery.setParameterList
(String name, Collection<? extends P> values, BindableType<P> type) <P> NativeQuery<T>
NativeQuery.setParameterList
(String name, P[] values, Class<P> type) <P> NativeQuery<T>
NativeQuery.setParameterList
(String name, P[] values, BindableType<P> type) <P> NativeQuery<T>
NativeQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values) <P> NativeQuery<T>
NativeQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values, Class<P> javaType) <P> NativeQuery<T>
NativeQuery.setParameterList
(QueryParameter<P> parameter, Collection<? extends P> values, BindableType<P> type) <P> NativeQuery<T>
NativeQuery.setParameterList
(QueryParameter<P> parameter, P[] values) <P> NativeQuery<T>
NativeQuery.setParameterList
(QueryParameter<P> parameter, P[] values, Class<P> javaType) <P> NativeQuery<T>
NativeQuery.setParameterList
(QueryParameter<P> parameter, P[] values, BindableType<P> type) NativeQuery.setProperties
(Object bean) NativeQuery.setProperties
(Map bean) NativeQuery.setQueryFlushMode
(QueryFlushMode queryFlushMode) NativeQuery.setReadOnly
(boolean readOnly) NativeQuery.setResultListTransformer
(ResultListTransformer<T> transformer) <S> NativeQuery<S>
NativeQuery.setResultTransformer
(ResultTransformer<S> transformer) Deprecated.NativeQuery.setTimeout
(int timeout) <R> NativeQuery<R>
NativeQuery.setTupleTransformer
(TupleTransformer<R> transformer) -
Uses of NativeQuery in org.hibernate.query.sql.internal
Classes in org.hibernate.query.sql.internal that implement NativeQueryMethods in org.hibernate.query.sql.internal that return NativeQueryModifier and TypeMethodDescriptionNativeQueryImpl.addScalar
(String columnAlias, BasicTypeReference type) -
Uses of NativeQuery in org.hibernate.query.sql.spi
Subinterfaces of NativeQuery in org.hibernate.query.sql.spi
QueryProducer.createNativeQuery(String, Class)